fix(deployment): remove leading v of the container image tag
All checks were successful
Helm / helm-lint (push) Successful in 21s
Helm / helm-unittest (push) Successful in 17s

This commit is contained in:
2025-10-12 16:49:43 +02:00
parent 2005fb8e05
commit 85a38e7d22
2 changed files with 3 additions and 4 deletions

View File

@@ -42,7 +42,7 @@
{{- $registry := .Values.deployment.athensProxy.image.registry -}}
{{- $repository := .Values.deployment.athensProxy.image.repository -}}
{{- $tag := default .Chart.AppVersion .Values.deployment.athensProxy.image.tag -}}
{{- printf "%s/%s:v%s" $registry $repository $tag -}}
{{- printf "%s/%s:%s" $registry $repository $tag -}}
{{- end -}}
{{/* labels */}}

View File

@@ -61,7 +61,7 @@ tests:
template: templates/athens-proxy/deployment.yaml
- equal:
path: spec.template.spec.containers[0].image
value: docker.io/gomods/athens:v0.1.0
value: docker.io/gomods/athens:0.1.0
template: templates/athens-proxy/deployment.yaml
- equal:
path: spec.template.spec.containers[0].imagePullPolicy
@@ -206,7 +206,7 @@ tests:
asserts:
- equal:
path: spec.template.spec.containers[0].image
value: registry.example.local/path/special/athens-proxy:v0.1.0
value: registry.example.local/path/special/athens-proxy:0.1.0
template: templates/athens-proxy/deployment.yaml
- it: Test custom imagePullPolicy
@@ -463,4 +463,3 @@ tests:
- name: data
mountPath: /usr/lib/athens-proxy/data
template: templates/athens-proxy/deployment.yaml