diff --git a/api/bases/keystone.openstack.org_keystoneapis.yaml b/api/bases/keystone.openstack.org_keystoneapis.yaml index bf3eb1bb..7e725f5e 100644 --- a/api/bases/keystone.openstack.org_keystoneapis.yaml +++ b/api/bases/keystone.openstack.org_keystoneapis.yaml @@ -1154,6 +1154,7 @@ spec: - volumes type: object type: array + x-kubernetes-list-type: atomic name: type: string region: diff --git a/api/v1beta1/keystoneapi_types.go b/api/v1beta1/keystoneapi_types.go index ca0509eb..fd8b670b 100644 --- a/api/v1beta1/keystoneapi_types.go +++ b/api/v1beta1/keystoneapi_types.go @@ -26,9 +26,9 @@ import ( "github.com/openstack-k8s-operators/lib-common/modules/common/tls" "github.com/openstack-k8s-operators/lib-common/modules/common/util" "github.com/openstack-k8s-operators/lib-common/modules/storage" - "k8s.io/apimachinery/pkg/util/validation/field" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/util/validation/field" ) const ( @@ -347,6 +347,7 @@ type KeystoneExtraMounts struct { // +kubebuilder:validation:Optional Region string `json:"region,omitempty"` // +kubebuilder:validation:Required + // +listType=atomic VolMounts []storage.VolMounts `json:"extraVol"` } diff --git a/config/crd/bases/keystone.openstack.org_keystoneapis.yaml b/config/crd/bases/keystone.openstack.org_keystoneapis.yaml index bf3eb1bb..7e725f5e 100644 --- a/config/crd/bases/keystone.openstack.org_keystoneapis.yaml +++ b/config/crd/bases/keystone.openstack.org_keystoneapis.yaml @@ -1154,6 +1154,7 @@ spec: - volumes type: object type: array + x-kubernetes-list-type: atomic name: type: string region: