fix(helm): use tag if defined

The previous code was ignoring `.Values.image.tag` and always using
`.Char.AppVersion`.
This commit is contained in:
Thales Macedo Garitezi 2022-04-28 14:58:35 -03:00
parent e415425780
commit 315bfa0385
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 1 additions and 1 deletions

View File

@ -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