From a301925eea3e3f91f2a118b0256fda611c072d0b Mon Sep 17 00:00:00 2001 From: Dmitrii Kanatnikov Date: Thu, 21 Nov 2024 18:07:36 +0300 Subject: [PATCH] fix .Chart.AppVersion No description --- Pull Request resolved: https://github.com/doublecloud/transfer/pull/112 commit_hash:025c65460a798085838573588440428568ea435a --- helm/transfer/Chart.yaml | 2 +- helm/transfer/templates/_replication-statefulset.tpl | 2 +- helm/transfer/templates/_snapshot-job.tpl | 2 +- helm/transfer/templates/_snapshot-regular-cronjob.tpl | 2 +- helm/transfer/templates/_transfer_spec.tpl | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helm/transfer/Chart.yaml b/helm/transfer/Chart.yaml index 3e66d37b..47f3c3d3 100644 --- a/helm/transfer/Chart.yaml +++ b/helm/transfer/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: 0.0.2 +version: 0.0.3 # 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/helm/transfer/templates/_replication-statefulset.tpl b/helm/transfer/templates/_replication-statefulset.tpl index 3922d057..0a308487 100644 --- a/helm/transfer/templates/_replication-statefulset.tpl +++ b/helm/transfer/templates/_replication-statefulset.tpl @@ -22,5 +22,5 @@ spec: {{- .Values.podAnnotations | toYaml | nindent 8 }} {{- end }} spec: - {{- include "transfer.spec" (dict "commandType" "replicate" "Values" .Values "Release" .Release) | nindent 6 }} + {{- include "transfer.spec" (dict "commandType" "replicate" "Values" .Values "Release" .Release "Chart" .Chart) | nindent 6 }} {{- end }} diff --git a/helm/transfer/templates/_snapshot-job.tpl b/helm/transfer/templates/_snapshot-job.tpl index 1ad1c22a..0c038453 100644 --- a/helm/transfer/templates/_snapshot-job.tpl +++ b/helm/transfer/templates/_snapshot-job.tpl @@ -22,5 +22,5 @@ spec: {{- end }} spec: restartPolicy: Never - {{- include "transfer.spec" (dict "commandType" "activate" "Values" .Values "Release" .Release) | nindent 6 }} + {{- include "transfer.spec" (dict "commandType" "activate" "Values" .Values "Release" .Release "Chart" .Chart) | nindent 6 }} {{- end }} diff --git a/helm/transfer/templates/_snapshot-regular-cronjob.tpl b/helm/transfer/templates/_snapshot-regular-cronjob.tpl index 873c85fd..b2164a42 100644 --- a/helm/transfer/templates/_snapshot-regular-cronjob.tpl +++ b/helm/transfer/templates/_snapshot-regular-cronjob.tpl @@ -30,5 +30,5 @@ spec: {{- end }} spec: restartPolicy: Never - {{- include "transfer.spec" (dict "commandType" "activate" "Values" .Values "Release" .Release) | nindent 10 }} + {{- include "transfer.spec" (dict "commandType" "activate" "Values" .Values "Release" .Release "Chart" .Chart) | nindent 10 }} {{- end }} diff --git a/helm/transfer/templates/_transfer_spec.tpl b/helm/transfer/templates/_transfer_spec.tpl index ae6b6ef1..f6b315ae 100644 --- a/helm/transfer/templates/_transfer_spec.tpl +++ b/helm/transfer/templates/_transfer_spec.tpl @@ -2,7 +2,7 @@ serviceAccountName: {{ .Values.serviceAccount.externalName | default $.Release.Name }} containers: - name: transfer - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default $.Chart.AppVersion }}" command: - "/usr/local/bin/trcli" - "{{ .commandType }}"