added the label multicluster-scheduler=enabled when creating namespace

This commit is contained in:
pb 2025-04-04 11:10:21 +02:00
parent 063f47c87b
commit 47ed1b4562

View File

@ -82,6 +82,9 @@ func (k *KubernetesService) CreateNamespace(ctx context.Context, ns string) erro
namespace := &v1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: ns,
Labels: map[string]string{
"multicluster-scheduler":"enabled",
},
},
}
// Create the namespace