From 49fab84ba3d3fe179c4354eb3767ae980a86627d Mon Sep 17 00:00:00 2001 From: Nick Hudson Date: Wed, 24 Jan 2024 12:23:27 -0600 Subject: [PATCH] make sure git sha is always a string when rendered in template --- charts/tembo-operator/Chart.yaml | 2 +- charts/tembo-operator/templates/deployment-operator.yaml | 2 +- charts/tembo-operator/templates/deployment-pod-init.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/tembo-operator/Chart.yaml b/charts/tembo-operator/Chart.yaml index 218976fcf..fcdc6e31a 100644 --- a/charts/tembo-operator/Chart.yaml +++ b/charts/tembo-operator/Chart.yaml @@ -3,7 +3,7 @@ name: tembo-operator description: 'Helm chart to deploy the tembo-operator' type: application icon: https://cloud.tembo.io/images/TemboElephant.png -version: 0.2.3 +version: 0.2.4 home: https://tembo.io sources: - https://github.com/tembo-io/tembo-stacks diff --git a/charts/tembo-operator/templates/deployment-operator.yaml b/charts/tembo-operator/templates/deployment-operator.yaml index 87e57a9ec..82cc395a8 100644 --- a/charts/tembo-operator/templates/deployment-operator.yaml +++ b/charts/tembo-operator/templates/deployment-operator.yaml @@ -29,7 +29,7 @@ spec: {{- end }} spec: containers: - - image: {{ (index .Values "controller").image.repository }}:{{ tpl (index .Values "controller").image.tag . }} + - image: {{ (index .Values "controller").image.repository }}:{{ tpl (printf "%s" (index .Values "controller").image.tag) . }} imagePullPolicy: {{ (index .Values "controller").image.pullPolicy }} name: tembo-controller {{- with (index .Values "controller").extraEnv }} diff --git a/charts/tembo-operator/templates/deployment-pod-init.yaml b/charts/tembo-operator/templates/deployment-pod-init.yaml index 31e309005..58036087a 100644 --- a/charts/tembo-operator/templates/deployment-pod-init.yaml +++ b/charts/tembo-operator/templates/deployment-pod-init.yaml @@ -31,7 +31,7 @@ spec: {{- end }} spec: containers: - - image: {{ (index .Values "pod-init").image.repository }}:{{ tpl (index .Values "pod-init").image.tag . }} + - image: {{ (index .Values "pod-init").image.repository }}:{{ tpl (printf "%s" (index .Values "pod-init").image.tag) . }} imagePullPolicy: {{ (index .Values "pod-init").image.pullPolicy }} name: pod-init env: