From 417ff6aea9a47195ffe2b51cc1a466a136d2dd2d Mon Sep 17 00:00:00 2001 From: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> Date: Sat, 28 May 2022 15:01:43 -0700 Subject: [PATCH] Have tests use non-existing docker image Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --- testing/common.sh | 6 +++--- testing/dev/deployment.yaml | 2 +- testing/helm/values.yaml | 4 ++-- testing/tenant/tenant.yaml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/testing/common.sh b/testing/common.sh index a3e5d41060e..9aa081b75e7 100644 --- a/testing/common.sh +++ b/testing/common.sh @@ -47,16 +47,16 @@ function install_operator() { # To compile current branch echo "Compiling Current Branch Operator" - (cd "${SCRIPT_DIR}/.." && make docker) # will not change your shell's current directory + (cd "${SCRIPT_DIR}/.." && TAG=minio/operator:noop make docker) # will not change your shell's current directory echo 'start - load compiled image so we can use it later on' - kind load docker-image docker.io/minio/operator:dev + kind load docker-image minio/operator:noop echo 'end - load compiled image so we can use it later on' if [ "$1" = "helm" ]; then echo "Change the version accordingly for image to be found within the cluster" - yq -i '.operator.image.tag = "dev"' "${SCRIPT_DIR}/../helm/operator/values.yaml" + yq -i '.operator.image.tag = "noop"' "${SCRIPT_DIR}/../helm/operator/values.yaml" echo "Installing Current Operator via HELM" helm install \ diff --git a/testing/dev/deployment.yaml b/testing/dev/deployment.yaml index 8310b3d8719..318a8883e31 100644 --- a/testing/dev/deployment.yaml +++ b/testing/dev/deployment.yaml @@ -16,7 +16,7 @@ spec: serviceAccountName: minio-operator containers: - name: minio-operator - image: minio/operator:dev + image: minio/operator:noop imagePullPolicy: IfNotPresent securityContext: runAsUser: 1000 diff --git a/testing/helm/values.yaml b/testing/helm/values.yaml index 1467264ef26..67a63a568d2 100644 --- a/testing/helm/values.yaml +++ b/testing/helm/values.yaml @@ -1,5 +1,5 @@ operator: image: - repository: miniodev/operator - tag: dev + repository: minio/operator + tag: noop pullPolicy: IfNotPresent \ No newline at end of file diff --git a/testing/tenant/tenant.yaml b/testing/tenant/tenant.yaml index 6887af7a6a5..9f42c5fea8e 100644 --- a/testing/tenant/tenant.yaml +++ b/testing/tenant/tenant.yaml @@ -5,4 +5,4 @@ metadata: namespace: minio-tenant spec: log: - image: minio/operator:dev + image: minio/operator:noop