Merge pull request #4231 from munnerz/patch-2

Add 'name' label to created namespaces
pull/4313/head
Matthew Fisher 6 years ago committed by GitHub
commit cc826d3d2d
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