feat: mark created namespaces as managed by dokku
This commit is contained in:
@@ -101,6 +101,12 @@ func createKubernetesNamespace(ctx context.Context, namespaceName string) error
|
||||
namespace := &corev1.Namespace{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: namespaceName,
|
||||
Annotations: map[string]string{
|
||||
"dokku.com/managed": "true",
|
||||
},
|
||||
Labels: map[string]string{
|
||||
"dokku.com/managed": "true",
|
||||
},
|
||||
},
|
||||
}
|
||||
_, err = clientset.Client.CoreV1().Namespaces().Create(ctx, namespace, metav1.CreateOptions{})
|
||||
|
||||
Reference in New Issue
Block a user