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