From 242fdd23ee83aa702c1bc653730f1b658dca231d Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Sun, 26 Nov 2023 17:18:46 +0100 Subject: [PATCH] feat: ensuring well-known label Signed-off-by: Dario Tranchitella --- controllers/tenant/namespaces.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/tenant/namespaces.go b/controllers/tenant/namespaces.go index 71e452e4..cfd96dcf 100644 --- a/controllers/tenant/namespaces.go +++ b/controllers/tenant/namespaces.go @@ -57,8 +57,8 @@ func (r *Manager) syncNamespaceMetadata(ctx context.Context, namespace string, t res, conflictErr = controllerutil.CreateOrUpdate(ctx, r.Client, ns, func() error { annotations := make(map[string]string) labels := map[string]string{ - "name": namespace, - capsuleLabel: tnt.GetName(), + "kubernetes.io/metadata.name": namespace, + capsuleLabel: tnt.GetName(), } if tnt.Spec.NamespaceOptions != nil && tnt.Spec.NamespaceOptions.AdditionalMetadata != nil {