From 02035d82772893a1035abc331a15c4a571bc6b19 Mon Sep 17 00:00:00 2001 From: Zadkiel AHARONIAN Date: Thu, 30 Jul 2026 13:14:40 +0200 Subject: [PATCH 1/2] chore(chart): use example-registry placeholder in tests and CI Signed-off-by: Zadkiel AHARONIAN --- .github/workflows/ci.yaml | 2 +- application/ci/values.yaml | 10 +-- .../tests/__snapshot__/common_test.yaml.snap | 10 +-- application/tests/cronjob_test.yaml | 72 +++++++++---------- application/tests/deployment_test.yaml | 22 +++--- application/tests/job_test.yaml | 72 +++++++++---------- renovate.json | 5 +- 7 files changed, 98 insertions(+), 95 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7a4ae6b8..7a794a23 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -127,7 +127,7 @@ jobs: args=() if [ -z "$VALUES" ]; then args+=( - "--set" "deployment.image.repository=registry/example-image" + "--set" "deployment.image.repository=example-registry/example-image" "--set" "deployment.image.tag=example-tag" ) else diff --git a/application/ci/values.yaml b/application/ci/values.yaml index 5e162128..81f920ab 100644 --- a/application/ci/values.yaml +++ b/application/ci/values.yaml @@ -28,7 +28,7 @@ deployment: - bar.remote initContainers: init-container: - image: registry/example-image:example-tag + image: example-registry/example-image:example-tag imagePullPolicy: IfNotPresent command: ["/bin/sh"] resources: @@ -115,7 +115,7 @@ deployment: - ssd automountServiceAccountToken: false image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag pullPolicy: IfNotPresent startupProbe: @@ -173,7 +173,7 @@ deployment: enabled: false additionalContainers: - name: sidecar-container - image: registry/example-image:example-tag + image: example-registry/example-image:example-tag imagePullPolicy: IfNotPresent command: ["/bin/sh", "-c", "sleep 3600"] securityContext: @@ -413,7 +413,7 @@ cronJob: imagePullSecrets: - name: nexus-secret image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag env: KEY: @@ -466,7 +466,7 @@ job: imagePullSecrets: - name: nexus-secret image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag@sha256:example-digest env: KEY: diff --git a/application/tests/__snapshot__/common_test.yaml.snap b/application/tests/__snapshot__/common_test.yaml.snap index 83156863..acaf57d1 100644 --- a/application/tests/__snapshot__/common_test.yaml.snap +++ b/application/tests/__snapshot__/common_test.yaml.snap @@ -282,7 +282,7 @@ should match snapshot: - secretRef: name: my-existing-secret optional: false - image: registry/example-image:example-tag + image: example-registry/example-image:example-tag name: db-migration resources: limits: @@ -421,7 +421,7 @@ should match snapshot: - configMapRef: name: application-my-configmap optional: false - image: registry/example-image:example-tag + image: example-registry/example-image:example-tag imagePullPolicy: IfNotPresent lifecycle: preStop: @@ -492,7 +492,7 @@ should match snapshot: - /bin/sh - -c - sleep 3600 - image: registry/example-image:example-tag + image: example-registry/example-image:example-tag imagePullPolicy: IfNotPresent livenessProbe: exec: @@ -539,7 +539,7 @@ should match snapshot: initContainers: - command: - /bin/sh - image: registry/example-image:example-tag + image: example-registry/example-image:example-tag imagePullPolicy: IfNotPresent name: init-container resources: @@ -1405,7 +1405,7 @@ should match snapshot: - secretRef: name: my-existing-secret optional: false - image: registry/example-image:example-tag@sha256:example-digest + image: example-registry/example-image:example-tag@sha256:example-digest name: db-migration resources: limits: diff --git a/application/tests/cronjob_test.yaml b/application/tests/cronjob_test.yaml index 99c401fa..6186be47 100644 --- a/application/tests/cronjob_test.yaml +++ b/application/tests/cronjob_test.yaml @@ -11,13 +11,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: "" digest: "" asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: registry/example-image + value: example-registry/example-image - it: fails rendering when job image repository is not given set: @@ -40,13 +40,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: "" asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: registry/example-image:example-tag + value: example-registry/example-image:example-tag - it: uses digest when defined set: @@ -55,13 +55,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: "" digest: sha256:example-digest asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: registry/example-image@sha256:example-digest + value: example-registry/example-image@sha256:example-digest - it: uses both tag and digest when given both set: @@ -70,13 +70,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: sha256:example-digest asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: registry/example-image:example-tag@sha256:example-digest + value: example-registry/example-image:example-tag@sha256:example-digest - it: applies the annotations correctly to the cronjob set: @@ -85,7 +85,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: sha256:example-digest annotations: @@ -105,7 +105,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: sha256:example-digest additionalPodAnnotations: @@ -123,7 +123,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag activeDeadlineSeconds: 0 asserts: @@ -140,7 +140,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag startingDeadlineSeconds: 0 asserts: @@ -157,7 +157,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag activeDeadlineSeconds: 0 startingDeadlineSeconds: 0 @@ -180,7 +180,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag activeDeadlineSeconds: 300 asserts: @@ -197,7 +197,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag initContainers: example1: @@ -231,7 +231,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag applicationName: my-app asserts: @@ -246,7 +246,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag applicationName: my-app asserts: @@ -337,12 +337,12 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: registry/example-image:example-tag + value: example-registry/example-image:example-tag - notMatchRegex: path: spec.jobTemplate.spec.template.spec.containers[0].image pattern: "@null" @@ -355,7 +355,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag rbac.serviceAccount.create: false asserts: @@ -371,7 +371,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag rbac.serviceAccount.create: true rbac.serviceAccount.name: example-sa @@ -389,7 +389,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag rbac.serviceAccount.create: true rbac.serviceAccount.name: "" @@ -405,7 +405,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - notExists: @@ -424,7 +424,7 @@ tests: drop: - ALL image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -443,7 +443,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -458,7 +458,7 @@ tests: example: automountServiceAccountToken: true image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -472,7 +472,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - notExists: @@ -485,7 +485,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag securityContext: fsGroup: 20000 @@ -506,7 +506,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - notExists: @@ -520,7 +520,7 @@ tests: example: enableServiceLinks: true image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -535,7 +535,7 @@ tests: example: enableServiceLinks: false image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -550,7 +550,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: chart-secret: @@ -573,7 +573,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: chart-configmap: @@ -596,7 +596,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: external-secret: @@ -618,7 +618,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: external-configmap: @@ -640,7 +640,7 @@ tests: example: schedule: "0 * * * *" image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: optional-secret: diff --git a/application/tests/deployment_test.yaml b/application/tests/deployment_test.yaml index 1d1f795c..cc21407c 100644 --- a/application/tests/deployment_test.yaml +++ b/application/tests/deployment_test.yaml @@ -4,7 +4,7 @@ templates: - deployment.yaml set: - deployment.image.repository: registry/example-image + deployment.image.repository: example-registry/example-image deployment.image.tag: example-tag tests: @@ -30,13 +30,13 @@ tests: - it: does not fail to render when image tag and digest are not given set: - deployment.image.repository: registry/example-image + deployment.image.repository: example-registry/example-image deployment.image.tag: "" deployment.image.digest: "" asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image + value: example-registry/example-image - it: fails to render when image repository is not present set: @@ -47,13 +47,13 @@ tests: - it: uses image tag when given set: - deployment.image.repository: registry/example-image + deployment.image.repository: example-registry/example-image deployment.image.tag: example-tag deployment.image.digest: "" asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image:example-tag + value: example-registry/example-image:example-tag - equal: path: metadata.labels["app.kubernetes.io/version"] value: example-tag @@ -68,34 +68,34 @@ tests: - it: uses image digest when given set: - deployment.image.repository: registry/example-image + deployment.image.repository: example-registry/example-image deployment.image.tag: "" deployment.image.digest: sha256:example-digest asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image@sha256:example-digest + value: example-registry/example-image@sha256:example-digest - isNull: path: metadata.labels["app.kubernetes.io/version"] - it: uses both image digest and tag when given both set: - deployment.image.repository: registry/example-image + deployment.image.repository: example-registry/example-image deployment.image.tag: example-tag deployment.image.digest: sha256:example-digest asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image:example-tag@sha256:example-digest + value: example-registry/example-image:example-tag@sha256:example-digest - it: does not render @null when digest field is omitted set: - deployment.image.repository: registry/example-image + deployment.image.repository: example-registry/example-image deployment.image.tag: example-tag asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image:example-tag + value: example-registry/example-image:example-tag - notMatchRegex: path: spec.template.spec.containers[0].image pattern: "@null" diff --git a/application/tests/job_test.yaml b/application/tests/job_test.yaml index f2e5994b..ae0d39c9 100644 --- a/application/tests/job_test.yaml +++ b/application/tests/job_test.yaml @@ -11,13 +11,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: "" digest: "" asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image + value: example-registry/example-image - it: fails rendering when job image repository is not given set: @@ -40,13 +40,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: "" asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image:example-tag + value: example-registry/example-image:example-tag - it: uses digest when defined set: @@ -55,13 +55,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: "" digest: sha256:example-digest asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image@sha256:example-digest + value: example-registry/example-image@sha256:example-digest - it: uses both tag and digest when given both set: @@ -70,13 +70,13 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: sha256:example-digest asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image:example-tag@sha256:example-digest + value: example-registry/example-image:example-tag@sha256:example-digest - it: applies the annotations correctly on the job set: @@ -85,7 +85,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: sha256:example-digest annotations: @@ -105,7 +105,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag digest: sha256:example-digest additionalPodAnnotations: @@ -123,7 +123,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag activeDeadlineSeconds: 0 asserts: @@ -140,7 +140,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag startingDeadlineSeconds: 0 asserts: @@ -157,7 +157,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag activeDeadlineSeconds: 0 startingDeadlineSeconds: 0 @@ -180,7 +180,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag activeDeadlineSeconds: 300 asserts: @@ -197,7 +197,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag initContainers: example1: @@ -231,7 +231,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag applicationName: my-app asserts: @@ -246,7 +246,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag applicationName: my-app asserts: @@ -336,12 +336,12 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: path: spec.template.spec.containers[0].image - value: registry/example-image:example-tag + value: example-registry/example-image:example-tag - notMatchRegex: path: spec.template.spec.containers[0].image pattern: "@null" @@ -353,7 +353,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag rbac.serviceAccount.create: false asserts: @@ -368,7 +368,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag rbac.serviceAccount.create: true rbac.serviceAccount.name: example-sa @@ -385,7 +385,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag rbac.serviceAccount.create: true rbac.serviceAccount.name: "" @@ -401,7 +401,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - notExists: @@ -420,7 +420,7 @@ tests: drop: - ALL image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -439,7 +439,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -454,7 +454,7 @@ tests: example: automountServiceAccountToken: true image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -468,7 +468,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - notExists: @@ -481,7 +481,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag securityContext: fsGroup: 20000 @@ -502,7 +502,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - notExists: @@ -516,7 +516,7 @@ tests: example: enableServiceLinks: true image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -531,7 +531,7 @@ tests: example: enableServiceLinks: false image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag asserts: - equal: @@ -545,7 +545,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: chart-secret: @@ -567,7 +567,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: chart-configmap: @@ -589,7 +589,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: external-secret: @@ -610,7 +610,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: external-configmap: @@ -631,7 +631,7 @@ tests: jobs: example: image: - repository: registry/example-image + repository: example-registry/example-image tag: example-tag envFrom: optional-secret: diff --git a/renovate.json b/renovate.json index dc0ae519..c07a8cfb 100644 --- a/renovate.json +++ b/renovate.json @@ -10,7 +10,10 @@ "enabled": true }, "ignoreDeps": [ - "registry/example-image" + "example-registry/example-image", + "example-registry/another-example-image", + "another-example-registry/example-image", + "another-example-registry/another-example-image" ], "customManagers": [ { From 9c158454b76e4b2452a185f86977769dc955adf3 Mon Sep 17 00:00:00 2001 From: Zadkiel AHARONIAN Date: Thu, 30 Jul 2026 13:23:02 +0200 Subject: [PATCH 2/2] chore(chart): use another-example placeholders for secondary images Signed-off-by: Zadkiel AHARONIAN --- application/tests/cronjob_test.yaml | 34 +++++++++++++------------- application/tests/deployment_test.yaml | 24 +++++++++--------- application/tests/job_test.yaml | 34 +++++++++++++------------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/application/tests/cronjob_test.yaml b/application/tests/cronjob_test.yaml index 6186be47..58e644c2 100644 --- a/application/tests/cronjob_test.yaml +++ b/application/tests/cronjob_test.yaml @@ -202,9 +202,9 @@ tests: initContainers: example1: name: shouldnotmatter - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag example2: - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag asserts: - isNotNull: path: spec.jobTemplate.spec.template.spec.initContainers @@ -212,17 +212,17 @@ tests: path: spec.jobTemplate.spec.template.spec.initContainers content: name: example1 - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag - contains: path: spec.jobTemplate.spec.template.spec.initContainers content: name: example2 - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag - notContains: path: spec.jobTemplate.spec.template.spec.initContainers content: name: shouldnotmatter - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag - it: includes app.kubernetes.io/name label in pod template set: @@ -258,9 +258,9 @@ tests: set: custom: image: - repository: custom-image - tag: custom-tag - digest: sha256:custom-digest + repository: another-example-registry/another-example-image + tag: another-example-tag + digest: sha256:another-example-digest cronJob: enabled: true jobs: @@ -272,14 +272,14 @@ tests: asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: custom-image:custom-tag@sha256:custom-digest + value: another-example-registry/another-example-image:another-example-tag@sha256:another-example-digest - it: uses image templating (without tag) set: custom: image: - repository: custom-image - digest: sha256:custom-digest + repository: another-example-registry/another-example-image + digest: sha256:another-example-digest cronJob: enabled: true jobs: @@ -291,14 +291,14 @@ tests: asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: custom-image@sha256:custom-digest + value: another-example-registry/another-example-image@sha256:another-example-digest - it: uses image templating (without digest) set: custom: image: - repository: custom-image - tag: custom-tag + repository: another-example-registry/another-example-image + tag: another-example-tag cronJob: enabled: true jobs: @@ -310,13 +310,13 @@ tests: asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: custom-image:custom-tag + value: another-example-registry/another-example-image:another-example-tag - it: uses image templating (without tag and digest) set: custom: image: - repository: custom-image + repository: another-example-registry/another-example-image cronJob: enabled: true jobs: @@ -328,7 +328,7 @@ tests: asserts: - equal: path: spec.jobTemplate.spec.template.spec.containers[0].image - value: custom-image + value: another-example-registry/another-example-image - it: does not render @null when digest field is omitted set: diff --git a/application/tests/deployment_test.yaml b/application/tests/deployment_test.yaml index cc21407c..8ae50da7 100644 --- a/application/tests/deployment_test.yaml +++ b/application/tests/deployment_test.yaml @@ -248,9 +248,9 @@ tests: set: custom: image: - repository: custom-image - tag: custom-tag - digest: sha256:custom-digest + repository: another-example-registry/another-example-image + tag: another-example-tag + digest: sha256:another-example-digest deployment: image: repository: "{{ .Values.custom.image.repository }}" @@ -259,14 +259,14 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image:custom-tag@sha256:custom-digest + value: another-example-registry/another-example-image:another-example-tag@sha256:another-example-digest - it: uses image templating (without tag) set: custom: image: - repository: custom-image - digest: sha256:custom-digest + repository: another-example-registry/another-example-image + digest: sha256:another-example-digest deployment: image: repository: "{{ .Values.custom.image.repository }}" @@ -275,14 +275,14 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image@sha256:custom-digest + value: another-example-registry/another-example-image@sha256:another-example-digest - it: uses image templating (without digest) set: custom: image: - repository: custom-image - tag: custom-tag + repository: another-example-registry/another-example-image + tag: another-example-tag deployment: image: repository: "{{ .Values.custom.image.repository }}" @@ -291,13 +291,13 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image:custom-tag + value: another-example-registry/another-example-image:another-example-tag - it: uses image templating (without tag and digest) set: custom: image: - repository: custom-image + repository: another-example-registry/another-example-image deployment: image: repository: "{{ .Values.custom.image.repository }}" @@ -306,4 +306,4 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image + value: another-example-registry/another-example-image diff --git a/application/tests/job_test.yaml b/application/tests/job_test.yaml index ae0d39c9..1593408e 100644 --- a/application/tests/job_test.yaml +++ b/application/tests/job_test.yaml @@ -202,9 +202,9 @@ tests: initContainers: example1: name: shouldnotmatter - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag example2: - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag asserts: - isNotNull: path: spec.template.spec.initContainers @@ -212,17 +212,17 @@ tests: path: spec.template.spec.initContainers content: name: example1 - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag - contains: path: spec.template.spec.initContainers content: name: example2 - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag - notContains: path: spec.template.spec.initContainers content: name: shouldnotmatter - image: example-image:example-tag + image: another-example-registry/another-example-image:another-example-tag - it: includes app.kubernetes.io/name label in pod template set: @@ -258,9 +258,9 @@ tests: set: custom: image: - repository: custom-image - tag: custom-tag - digest: sha256:custom-digest + repository: another-example-registry/another-example-image + tag: another-example-tag + digest: sha256:another-example-digest job: enabled: true jobs: @@ -272,13 +272,13 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image:custom-tag@sha256:custom-digest + value: another-example-registry/another-example-image:another-example-tag@sha256:another-example-digest - it: uses image templating (without tag) set: custom: image: - repository: custom-image - digest: sha256:custom-digest + repository: another-example-registry/another-example-image + digest: sha256:another-example-digest job: enabled: true jobs: @@ -290,14 +290,14 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image@sha256:custom-digest + value: another-example-registry/another-example-image@sha256:another-example-digest - it: uses image templating (without digest) set: custom: image: - repository: custom-image - tag: custom-tag + repository: another-example-registry/another-example-image + tag: another-example-tag job: enabled: true jobs: @@ -309,13 +309,13 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image:custom-tag + value: another-example-registry/another-example-image:another-example-tag - it: uses image templating (without tag and digest) set: custom: image: - repository: custom-image + repository: another-example-registry/another-example-image job: enabled: true jobs: @@ -327,7 +327,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: custom-image + value: another-example-registry/another-example-image - it: does not render @null when digest field is omitted set: