From 315bfa03854574ea00af679b8397d0267ef4ba2f Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 28 Apr 2022 14:58:35 -0300 Subject: [PATCH] fix(helm): use tag if defined The previous code was ignoring `.Values.image.tag` and always using `.Char.AppVersion`. --- deploy/charts/emqx/templates/StatefulSet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/charts/emqx/templates/StatefulSet.yaml b/deploy/charts/emqx/templates/StatefulSet.yaml index c0f4e85ad..fc798bbe5 100644 --- a/deploy/charts/emqx/templates/StatefulSet.yaml +++ b/deploy/charts/emqx/templates/StatefulSet.yaml @@ -5,7 +5,7 @@ {{ $configData := printf "%s\n%s\n%s\n%s" $cfgEnv $cfgAcl $cfgPlugins $cfgModules}} ## Compatible with previous misspellings {{ $licenseSecretName := coalesce .Values.emqxLicenseSecretName .Values.emqxLicneseSecretName }} -{{ $image := printf "%s:%s" .Values.image.repository (default .Values.image.tag .Chart.AppVersion) }} +{{ $image := printf "%s:%s" .Values.image.repository (.Values.image.tag | default .Chart.AppVersion) }} apiVersion: apps/v1 kind: StatefulSet