Add 'name' label to created namespaces

pull/4231/head
James Munnelly 6 years ago committed by GitHub
parent 572743d5d6
commit 5041d74187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,9 @@ func createNamespace(client internalclientset.Interface, namespace string) error
ns := &core.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: namespace,
Labels: map[string]string{
"name": namespace,
},
},
}
_, err := client.Core().Namespaces().Create(ns)

Loading…
Cancel
Save