diff --git a/e2e/globaltenantresource_test.go b/e2e/globaltenantresource_test.go index 0f34419b..cd75772a 100644 --- a/e2e/globaltenantresource_test.go +++ b/e2e/globaltenantresource_test.go @@ -249,7 +249,7 @@ var _ = Describe("Creating a GlobalTenantResource object", func() { gtr.Spec.Resources[0].NamespaceSelector = &metav1.LabelSelector{ MatchLabels: map[string]string{ - "name": "solar-three", + "kubernetes.io/metadata.name": "solar-three", }, } diff --git a/e2e/tenantresource_test.go b/e2e/tenantresource_test.go index 99c94c00..416e3d50 100644 --- a/e2e/tenantresource_test.go +++ b/e2e/tenantresource_test.go @@ -249,7 +249,7 @@ var _ = Describe("Creating a TenantResource object", func() { tr.Spec.Resources[0].NamespaceSelector = &metav1.LabelSelector{ MatchLabels: map[string]string{ - "name": "solar-three", + "kubernetes.io/metadata.name": "solar-three", }, }