From 1e40cf91d58e5154d7e4e3fa41316717737d02d9 Mon Sep 17 00:00:00 2001 From: Dave Wilde Date: Wed, 13 Nov 2024 08:54:44 -0600 Subject: [PATCH] Make the boolean required --- api/bases/keystone.openstack.org_keystoneapis.yaml | 1 + api/v1beta1/keystoneapi_types.go | 2 +- config/crd/bases/keystone.openstack.org_keystoneapis.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/bases/keystone.openstack.org_keystoneapis.yaml b/api/bases/keystone.openstack.org_keystoneapis.yaml index d987197a..c955d4f7 100644 --- a/api/bases/keystone.openstack.org_keystoneapis.yaml +++ b/api/bases/keystone.openstack.org_keystoneapis.yaml @@ -522,6 +522,7 @@ spec: required: - containerImage - databaseInstance + - enableFederation - enableInsecureDebug - enableKeystoneDebug - memcachedInstance diff --git a/api/v1beta1/keystoneapi_types.go b/api/v1beta1/keystoneapi_types.go index 6d97aa4c..3ffa4aa3 100644 --- a/api/v1beta1/keystoneapi_types.go +++ b/api/v1beta1/keystoneapi_types.go @@ -181,7 +181,7 @@ type KeystoneAPISpecCore struct { // TLS - Parameters related to the TLS TLS tls.API `json:"tls,omitempty"` - // +kubebuilder:validation:Optional + // +kubebuilder:validation:Required // +kubebuilder:default=false // Enablement of Federation configuration EnableFederation bool `json:"enableFederation"` diff --git a/config/crd/bases/keystone.openstack.org_keystoneapis.yaml b/config/crd/bases/keystone.openstack.org_keystoneapis.yaml index d987197a..c955d4f7 100644 --- a/config/crd/bases/keystone.openstack.org_keystoneapis.yaml +++ b/config/crd/bases/keystone.openstack.org_keystoneapis.yaml @@ -522,6 +522,7 @@ spec: required: - containerImage - databaseInstance + - enableFederation - enableInsecureDebug - enableKeystoneDebug - memcachedInstance