From 893e1a8ca3178bbfc147c0571a8555bec8b44ce9 Mon Sep 17 00:00:00 2001 From: Claudio Netto Date: Wed, 19 Jul 2023 15:40:26 -0300 Subject: [PATCH] deploy-agent: append char "v" when using image tag from chart's app version --- charts/deploy-agent/Chart.yaml | 2 +- charts/deploy-agent/templates/statefulset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/deploy-agent/Chart.yaml b/charts/deploy-agent/Chart.yaml index 414a6a9..2bcf8d9 100644 --- a/charts/deploy-agent/Chart.yaml +++ b/charts/deploy-agent/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.4.1 +version: 1.4.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/deploy-agent/templates/statefulset.yaml b/charts/deploy-agent/templates/statefulset.yaml index 667120f..0b033d1 100644 --- a/charts/deploy-agent/templates/statefulset.yaml +++ b/charts/deploy-agent/templates/statefulset.yaml @@ -35,7 +35,7 @@ spec: {{- end }} containers: - name: deploy-agent - image: "{{ .Values.deployAgent.image.repository }}:{{ .Values.deployAgent.image.tag | default .Chart.AppVersion }}" + image: {{ .Values.deployAgent.image.repository }}:{{ default (printf "v%s" .Chart.AppVersion) .Values.deployAgent.image.tag }} imagePullPolicy: {{ .Values.deployAgent.image.pullPolicy }} command: - /usr/local/bin/deploy-agent