Unverified Commit 5041d741 authored by James Munnelly's avatar James Munnelly Committed by GitHub

Add 'name' label to created namespaces

parent 572743d5
......@@ -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)
......
Markdown is supported
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