From 619d53a436ebbf1f9770260fb82845a80f49c6f8 Mon Sep 17 00:00:00 2001 From: Matt Beckett Date: Tue, 23 May 2023 23:51:29 +0100 Subject: [PATCH] Extend e2e to build images --- Makefile | 1 + internal/it/suite_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f9fc010a..a5917aaf 100644 --- a/Makefile +++ b/Makefile @@ -142,6 +142,7 @@ docker-load-kind: kind load docker-image ${AGENT_IMAGE} ${SIDECAR_IMAGE} ${MANAGER_IMAGE} run-e2e: + ${MAKE} docker-build-all SIDECAR_IMAGE=${SIDECAR_IMAGE} AGENT_IMAGE=${AGENT_IMAGE} $(MAKE) update-agent-and-sidecar-image MANAGER_IMAGE=${MANAGER_IMAGE} $(MAKE) update-manager-image $(KUSTOMIZE) build config/default > release_it.yaml diff --git a/internal/it/suite_test.go b/internal/it/suite_test.go index 2dd282c6..7760575d 100644 --- a/internal/it/suite_test.go +++ b/internal/it/suite_test.go @@ -118,6 +118,7 @@ func KubectlApply(resource string, namespace string) (string, error) { var _ = BeforeSuite(func() { releasePath = os.Getenv("WIREGUARD_OPERATOR_RELEASE_PATH") agentImage = os.Getenv("AGENT_IMAGE") + sidecarImage = os.Getenv("SIDECAR_IMAGE") managerImage = os.Getenv("MANAGER_IMAGE") kindBinary = os.Getenv("KIND_BIN") kubeConfigPath = os.Getenv("KUBE_CONFIG")