Skip to content

Commit 370b869

Browse files
authored
Introduce env variable to modify ns in metrics tests (#489)
1 parent a5af0ce commit 370b869

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/e2e_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ var _ = ginkgo.Describe("leaderWorkerSet e2e tests", func() {
314314
serviceAccountName := "lws-controller-manager"
315315
metricsServiceName := "lws-controller-manager-metrics-service"
316316
namespace := "lws-system"
317+
if ns := os.Getenv("LWS_NAMESPACE"); ns != "" {
318+
namespace = ns
319+
}
317320
var controllerPodName string
318321

319322
ginkgo.It("should ensure the metrics endpoint is serving metrics", func() {

0 commit comments

Comments
 (0)