From 99d10348dc89ac20c1b16766681f6d3cdb4ebb10 Mon Sep 17 00:00:00 2001 From: Ruslan Aliev Date: Fri, 8 Mar 2024 12:12:54 -0600 Subject: [PATCH] Use designated image for chart test Armada chart currently uses the same image for testing as for deployment. The PS introduces flexible way to choose the image for tests. Signed-off-by: Ruslan Aliev Change-Id: If9bebd27cf710e91c49c8dcf8f247990bd5acfab --- charts/armada/templates/tests/test-armada-api.yaml | 2 +- charts/armada/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/armada/templates/tests/test-armada-api.yaml b/charts/armada/templates/tests/test-armada-api.yaml index a467fc9a..7c474642 100644 --- a/charts/armada/templates/tests/test-armada-api.yaml +++ b/charts/armada/templates/tests/test-armada-api.yaml @@ -39,7 +39,7 @@ spec: env: - name: 'ARMADA_URL' value: {{ tuple "armada" "internal" "api" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | quote }} - image: {{ .Values.images.tags.api }} + image: {{ .Values.images.tags.test }} imagePullPolicy: {{ .Values.images.pull_policy }} {{ tuple . .Values.pod.resources.test.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }} {{ dict "envAll" $envAll "application" "api_test" "container" "armada_api_test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }} diff --git a/charts/armada/values.yaml b/charts/armada/values.yaml index 6d8d7ffd..d5e84ea1 100644 --- a/charts/armada/values.yaml +++ b/charts/armada/values.yaml @@ -35,6 +35,7 @@ images: ks_service: 'docker.io/openstackhelm/heat:newton' ks_user: 'docker.io/openstackhelm/heat:newton' image_repo_sync: docker.io/docker:17.07.0 + test: 'curlimages/curl:8.6.0' pull_policy: "IfNotPresent" local_registry: active: false