From 39b4dde0eb61aee1fcc1c82a08376576463a9dd4 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 21 Oct 2024 12:41:24 +0200 Subject: [PATCH] mysql: fix root user creation --- packages/apps/mysql/templates/secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}