diff --git a/hack/generate/samples/internal/go/memcached-with-customization/e2e_test_code.go b/hack/generate/samples/internal/go/memcached-with-customization/e2e_test_code.go index 010d4bdf707..01d0eef3298 100644 --- a/hack/generate/samples/internal/go/memcached-with-customization/e2e_test_code.go +++ b/hack/generate/samples/internal/go/memcached-with-customization/e2e_test_code.go @@ -4,9 +4,10 @@ import ( "os" "path/filepath" - "github.com/operator-framework/operator-sdk/hack/generate/samples/internal/pkg" log "github.com/sirupsen/logrus" kbutil "sigs.k8s.io/kubebuilder/v3/pkg/plugin/util" + + "github.com/operator-framework/operator-sdk/hack/generate/samples/internal/pkg" ) // implementingE2ETests will add e2e test for the sample @@ -302,7 +303,7 @@ var _ = Describe("memcached", Ordered, func() { By("validating that pod(s) status.phase=Running") getMemcachedPodStatus := func() error { cmd = exec.Command("kubectl", "get", - "pods", "-l", "app.kubernetes.io/name=Memcached", + "pods", "-l", "app.kubernetes.io/name=memcached-operator", "-o", "jsonpath={.items[*].status}", "-n", namespace, ) status, err := utils.Run(cmd) @@ -515,7 +516,7 @@ var _ = Describe("memcached", Ordered, func() { By("validating that pod(s) status.phase=Running") getMemcachedPodStatus := func() error { cmd = exec.Command("kubectl", "get", - "pods", "-l", "app.kubernetes.io/name=Memcached", + "pods", "-l", "app.kubernetes.io/name=memcached-operator", "-o", "jsonpath={.items[*].status}", "-n", namespace, ) status, err := utils.Run(cmd) diff --git a/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go b/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go index 0d07bc23e17..fd79961f69a 100644 --- a/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go +++ b/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go @@ -162,7 +162,7 @@ var _ = Describe("memcached", Ordered, func() { By("validating that pod(s) status.phase=Running") getMemcachedPodStatus := func() error { cmd = exec.Command("kubectl", "get", - "pods", "-l", "app.kubernetes.io/name=Memcached", + "pods", "-l", "app.kubernetes.io/name=memcached-operator", "-o", "jsonpath={.items[*].status}", "-n", namespace, ) status, err := utils.Run(cmd) diff --git a/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go b/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go index 7ecea06753b..2e3a3cfcf5b 100644 --- a/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go +++ b/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go @@ -178,7 +178,7 @@ var _ = Describe("memcached", Ordered, func() { By("validating that pod(s) status.phase=Running") getMemcachedPodStatus := func() error { cmd = exec.Command("kubectl", "get", - "pods", "-l", "app.kubernetes.io/name=Memcached", + "pods", "-l", "app.kubernetes.io/name=memcached-operator", "-o", "jsonpath={.items[*].status}", "-n", namespace, ) status, err := utils.Run(cmd)