From d6b108b098f3b42d7e7599b07394d4caff3ef714 Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Wed, 5 Jun 2024 16:13:08 +0200 Subject: [PATCH] fix: missing label "opendatahub.io/generated-namespace" on auth (#1038) Signed-off-by: Wen Zhou --- pkg/feature/servicemesh/conditions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/feature/servicemesh/conditions.go b/pkg/feature/servicemesh/conditions.go index 75c85220ef5..482540990bf 100644 --- a/pkg/feature/servicemesh/conditions.go +++ b/pkg/feature/servicemesh/conditions.go @@ -14,6 +14,7 @@ import ( "github.com/opendatahub-io/opendatahub-operator/v2/pkg/cluster" "github.com/opendatahub-io/opendatahub-operator/v2/pkg/cluster/gvk" "github.com/opendatahub-io/opendatahub-operator/v2/pkg/feature" + "github.com/opendatahub-io/opendatahub-operator/v2/pkg/metadata/labels" ) const ( @@ -27,7 +28,7 @@ func EnsureAuthNamespaceExists(f *feature.Feature) error { return resolveNsErr } - _, err := cluster.CreateNamespace(context.TODO(), f.Client, f.Spec.Auth.Namespace, feature.OwnedBy(f)) + _, err := cluster.CreateNamespace(context.TODO(), f.Client, f.Spec.Auth.Namespace, feature.OwnedBy(f), cluster.WithLabels(labels.ODH.OwnedNamespace, "true")) return err }