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 <raliev@mirantis.com>
Change-Id: If9bebd27cf710e91c49c8dcf8f247990bd5acfab
This commit is contained in:
Ruslan Aliev 2024-03-08 12:12:54 -06:00
parent e85f0ccdeb
commit 99d10348dc
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ spec:
env: env:
- name: 'ARMADA_URL' - name: 'ARMADA_URL'
value: {{ tuple "armada" "internal" "api" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | quote }} 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 }} imagePullPolicy: {{ .Values.images.pull_policy }}
{{ tuple . .Values.pod.resources.test.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }} {{ 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 }} {{ dict "envAll" $envAll "application" "api_test" "container" "armada_api_test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }}

View File

@ -35,6 +35,7 @@ images:
ks_service: 'docker.io/openstackhelm/heat:newton' ks_service: 'docker.io/openstackhelm/heat:newton'
ks_user: 'docker.io/openstackhelm/heat:newton' ks_user: 'docker.io/openstackhelm/heat:newton'
image_repo_sync: docker.io/docker:17.07.0 image_repo_sync: docker.io/docker:17.07.0
test: 'curlimages/curl:8.6.0'
pull_policy: "IfNotPresent" pull_policy: "IfNotPresent"
local_registry: local_registry:
active: false active: false