You've already forked athens-proxy-charts
fix(deployment): remove leading v of the container image tag
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
{{- $registry := .Values.deployment.athensProxy.image.registry -}}
|
{{- $registry := .Values.deployment.athensProxy.image.registry -}}
|
||||||
{{- $repository := .Values.deployment.athensProxy.image.repository -}}
|
{{- $repository := .Values.deployment.athensProxy.image.repository -}}
|
||||||
{{- $tag := default .Chart.AppVersion .Values.deployment.athensProxy.image.tag -}}
|
{{- $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 -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/* labels */}}
|
{{/* labels */}}
|
||||||
|
@@ -61,7 +61,7 @@ tests:
|
|||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/athens-proxy/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
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
|
template: templates/athens-proxy/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].imagePullPolicy
|
path: spec.template.spec.containers[0].imagePullPolicy
|
||||||
@@ -206,7 +206,7 @@ tests:
|
|||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
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
|
template: templates/athens-proxy/deployment.yaml
|
||||||
|
|
||||||
- it: Test custom imagePullPolicy
|
- it: Test custom imagePullPolicy
|
||||||
@@ -463,4 +463,3 @@ tests:
|
|||||||
- name: data
|
- name: data
|
||||||
mountPath: /usr/lib/athens-proxy/data
|
mountPath: /usr/lib/athens-proxy/data
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/athens-proxy/deployment.yaml
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user