added the label multicluster-scheduler=enabled when creating namespace
This commit is contained in:
parent
063f47c87b
commit
47ed1b4562
@ -82,6 +82,9 @@ func (k *KubernetesService) CreateNamespace(ctx context.Context, ns string) erro
|
|||||||
namespace := &v1.Namespace{
|
namespace := &v1.Namespace{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: ns,
|
Name: ns,
|
||||||
|
Labels: map[string]string{
|
||||||
|
"multicluster-scheduler":"enabled",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
// Create the namespace
|
// Create the namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user