From 10f07d158bbd9ee42c2dbd3cf6eb7f682e352286 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Fri, 24 Jan 2025 16:47:34 +0100 Subject: [PATCH] Revert "`MAC` field in `Endpoint` is optional (#223)" This reverts commit b705a57f5ee159073141f999d02201023a794d55. --- api/v1alpha1/endpoint_types.go | 2 +- config/crd/bases/metal.ironcore.dev_endpoints.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1alpha1/endpoint_types.go b/api/v1alpha1/endpoint_types.go index 529bf23..a699f9d 100644 --- a/api/v1alpha1/endpoint_types.go +++ b/api/v1alpha1/endpoint_types.go @@ -10,7 +10,7 @@ import ( // EndpointSpec defines the desired state of Endpoint type EndpointSpec struct { // MACAddress is the MAC address of the endpoint. - MACAddress string `json:"macAddress,omitempty"` + MACAddress string `json:"macAddress"` // IP is the IP address of the endpoint. // +kubebuilder:validation:Type=string // +kubebuilder:validation:Schemaless diff --git a/config/crd/bases/metal.ironcore.dev_endpoints.yaml b/config/crd/bases/metal.ironcore.dev_endpoints.yaml index 8822ad8..a8c53de 100644 --- a/config/crd/bases/metal.ironcore.dev_endpoints.yaml +++ b/config/crd/bases/metal.ironcore.dev_endpoints.yaml @@ -57,6 +57,7 @@ spec: type: string required: - ip + - macAddress type: object status: description: EndpointStatus defines the observed state of Endpoint