From 924ddfb91171de3fa4a63c00d83d6cb708c764b7 Mon Sep 17 00:00:00 2001 From: Gaelle Fournier Date: Tue, 24 Oct 2023 09:51:10 +0200 Subject: [PATCH] chore(ci): Check kind registry for kustomize --- e2e/install/kustomize/operator_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e2e/install/kustomize/operator_test.go b/e2e/install/kustomize/operator_test.go index 51cc782eaa..f0a970892b 100644 --- a/e2e/install/kustomize/operator_test.go +++ b/e2e/install/kustomize/operator_test.go @@ -69,6 +69,13 @@ func TestOperatorBasic(t *testing.T) { Expect(operatorPod.Spec.Containers[0].SecurityContext.AllowPrivilegeEscalation).To(Equal(kubernetes.DefaultOperatorSecurityContext().AllowPrivilegeEscalation)) Eventually(Platform(ns)).ShouldNot(BeNil()) + registry := os.Getenv("KIND_REGISTRY") + if registry != "" { + platform := Platform(ns)() + Expect(platform.Spec.Build.Registry).ShouldNot(BeNil()) + Expect(platform.Spec.Build.Registry.Address).To(Equal(registry)) + } + }) }