diff --git a/api/v1alpha1/server_types.go b/api/v1alpha1/server_types.go index eff40f86..2b3e5b60 100644 --- a/api/v1alpha1/server_types.go +++ b/api/v1alpha1/server_types.go @@ -222,6 +222,13 @@ type ServerStatus struct { // +optional State ServerState `json:"state,omitempty"` + // NetworkCheck indicates the network configuration validation status. + // Possible values: "Pass" (all interfaces match Netbox), "Fail" (mismatches detected), "Unknown" (not yet validated). + // +kubebuilder:validation:Enum=Pass;Fail;Unknown + // +kubebuilder:default=Unknown + // +optional + NetworkCheck string `json:"networkCheck,omitempty"` + // NetworkInterfaces is a list of network interfaces associated with the server. // +optional NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"` diff --git a/config/crd/bases/metal.ironcore.dev_servers.yaml b/config/crd/bases/metal.ironcore.dev_servers.yaml index 68c276cf..832c38c1 100644 --- a/config/crd/bases/metal.ironcore.dev_servers.yaml +++ b/config/crd/bases/metal.ironcore.dev_servers.yaml @@ -383,6 +383,16 @@ spec: model: description: Model is the model of the server. type: string + networkCheck: + default: Unknown + description: |- + NetworkCheck indicates the network configuration validation status. + Possible values: "Pass" (all interfaces match Netbox), "Fail" (mismatches detected), "Unknown" (not yet validated). + enum: + - Pass + - Fail + - Unknown + type: string networkInterfaces: description: NetworkInterfaces is a list of network interfaces associated with the server.