Unverified Commit cc826d3d authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub
Browse files

Merge pull request #4231 from munnerz/patch-2

Add 'name' label to created namespaces
Showing with 3 additions and 0 deletions
+3 -0
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment