From 9022948b45a790992b34be7a06816c3e90f0c472 Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Wed, 1 Feb 2023 14:09:34 +0100 Subject: [PATCH] Remove admin endpoint creation it was deprecated in rocky and removed in train See https://bugs.launchpad.net/keystone/+bug/1829453 --- api/bases/keystone.openstack.org_keystoneapis.yaml | 1 - api/v1beta1/keystoneapi_types.go | 2 +- config/crd/bases/keystone.openstack.org_keystoneapis.yaml | 1 - controllers/keystoneapi_controller.go | 3 --- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/api/bases/keystone.openstack.org_keystoneapis.yaml b/api/bases/keystone.openstack.org_keystoneapis.yaml index 469df527d..82c04df01 100644 --- a/api/bases/keystone.openstack.org_keystoneapis.yaml +++ b/api/bases/keystone.openstack.org_keystoneapis.yaml @@ -119,7 +119,6 @@ spec: description: Endpoint, OpenStack endpoint this service maps to enum: - - admin - internal - public type: string diff --git a/api/v1beta1/keystoneapi_types.go b/api/v1beta1/keystoneapi_types.go index b62ca99c8..3d20af98f 100644 --- a/api/v1beta1/keystoneapi_types.go +++ b/api/v1beta1/keystoneapi_types.go @@ -138,7 +138,7 @@ type KeystoneAPISpec struct { // MetalLBConfig to configure the MetalLB loadbalancer service type MetalLBConfig struct { // +kubebuilder:validation:Optional - // +kubebuilder:validation:Enum=admin;internal;public + // +kubebuilder:validation:Enum=internal;public // Endpoint, OpenStack endpoint this service maps to Endpoint endpoint.Endpoint `json:"endpoint"` diff --git a/config/crd/bases/keystone.openstack.org_keystoneapis.yaml b/config/crd/bases/keystone.openstack.org_keystoneapis.yaml index 469df527d..82c04df01 100644 --- a/config/crd/bases/keystone.openstack.org_keystoneapis.yaml +++ b/config/crd/bases/keystone.openstack.org_keystoneapis.yaml @@ -119,7 +119,6 @@ spec: description: Endpoint, OpenStack endpoint this service maps to enum: - - admin - internal - public type: string diff --git a/controllers/keystoneapi_controller.go b/controllers/keystoneapi_controller.go index 303cc5845..865b9e6c9 100644 --- a/controllers/keystoneapi_controller.go +++ b/controllers/keystoneapi_controller.go @@ -338,9 +338,6 @@ func (r *KeystoneAPIReconciler) reconcileInit( endpoint.EndpointInternal: endpoint.Data{ Port: keystone.KeystoneInternalPort, }, - endpoint.EndpointAdmin: endpoint.Data{ - Port: keystone.KeystoneAdminPort, - }, } for _, metallbcfg := range instance.Spec.ExternalEndpoints {