diff --git a/packages/apps/mysql/templates/secret.yaml b/packages/apps/mysql/templates/secret.yaml index 4a613f57..aa2bd50e 100644 --- a/packages/apps/mysql/templates/secret.yaml +++ b/packages/apps/mysql/templates/secret.yaml @@ -8,7 +8,7 @@ {{- end }} {{- $usersWithRoot := .Values.users }} -{{- if (and .Values.users.root .Values.users.root.password) }} +{{- if not (and .Values.users.root .Values.users.root.password) }} {{- $_ := set $usersWithRoot "root" dict }} {{- end }}