From 135f9516fd695aa8c2aee56771f51ea1afebd296 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 d616e418..73473d9b 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 f7e5716e..d41dfda5 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 d616e418..73473d9b 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 adfb6c72..6a60c2ad 100644 --- a/controllers/keystoneapi_controller.go +++ b/controllers/keystoneapi_controller.go @@ -336,9 +336,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 {