Skip to content

Commit b188c64

Browse files
committed
DRY up code
1 parent 2d927ca commit b188c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kube/ikubernetes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (m *MockKubernetes) GetNamespace(namespace string) (*v1.Namespace, error) {
117117
for k, v := range ns.NamespaceObject.Labels {
118118
labels[k] = v
119119
}
120-
labels["kubernetes.io/metadata.name"] = namespace
120+
labels[DefaultNamespaceLabel] = namespace
121121
return &v1.Namespace{
122122
ObjectMeta: metav1.ObjectMeta{
123123
Name: ns.NamespaceObject.Name,

0 commit comments

Comments
 (0)