diff --git a/api/v1alpha1/oob_types.go b/api/v1alpha1/oob_types.go index 0bac375d..0b32899d 100644 --- a/api/v1alpha1/oob_types.go +++ b/api/v1alpha1/oob_types.go @@ -20,9 +20,11 @@ type OOBSpec struct { EndpointRef v1.LocalObjectReference `json:"endpointRef"` - SecretRef v1.LocalObjectReference `json:"secretRef"` + //+optional + SecretRef v1.LocalObjectReference `json:"secretRef,omitempty"` - Protocol Protocol `json:"protocol"` + //+optional + Protocol Protocol `json:"protocol,omitempty"` //+optional Flags map[string]string `json:"flags,omitempty"` diff --git a/client/openapi/zz_generated.openapi.go b/client/openapi/zz_generated.openapi.go index f1749ea4..099fb97d 100644 --- a/client/openapi/zz_generated.openapi.go +++ b/client/openapi/zz_generated.openapi.go @@ -1148,7 +1148,7 @@ func schema_ironcore_dev_metal_api_v1alpha1_OOBSpec(ref common.ReferenceCallback }, }, }, - Required: []string{"macAddress", "endpointRef", "secretRef", "protocol"}, + Required: []string{"macAddress", "endpointRef"}, }, }, Dependencies: []string{ diff --git a/config/crd/bases/metal.ironcore.dev_oobs.yaml b/config/crd/bases/metal.ironcore.dev_oobs.yaml index f66aa777..75949da4 100644 --- a/config/crd/bases/metal.ironcore.dev_oobs.yaml +++ b/config/crd/bases/metal.ironcore.dev_oobs.yaml @@ -125,8 +125,6 @@ spec: required: - endpointRef - macAddress - - protocol - - secretRef type: object status: description: OOBStatus defines the observed state of OOB