From 9f7a655f998f3e02e80c665bbbd9d7469dca850f Mon Sep 17 00:00:00 2001 From: Krzysztof Opasiak Date: Wed, 2 Sep 2020 10:18:24 +0200 Subject: [COMMON] Use proper format specifiers to printf masterPassword %s should be used instead of %d to printf strings. Even though with %d everything works perfectly fine (as we just need any string) let's fix this. Issue-ID: OOM-2328 Signed-off-by: Krzysztof Opasiak Change-Id: I338c47b0f2a82c698c44579737f698b1f19ade38 --- kubernetes/common/common/templates/_createPassword.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kubernetes/common') diff --git a/kubernetes/common/common/templates/_createPassword.tpl b/kubernetes/common/common/templates/_createPassword.tpl index bfd0999e16..4ded11f53f 100644 --- a/kubernetes/common/common/templates/_createPassword.tpl +++ b/kubernetes/common/common/templates/_createPassword.tpl @@ -24,11 +24,11 @@ */}} {{- define "common.masterPassword" -}} {{ if .Values.masterPasswordOverride }} - {{- printf "%d" .Values.masterPasswordOverride -}} + {{- printf "%s" .Values.masterPasswordOverride -}} {{ else if .Values.global.masterPassword }} - {{- printf "%d" .Values.global.masterPassword -}} + {{- printf "%s" .Values.global.masterPassword -}} {{ else if .Values.masterPassword }} - {{- printf "%d" .Values.masterPassword -}} + {{- printf "%s" .Values.masterPassword -}} {{ else if eq "testRelease" (include "common.release" .) }} {{/* Special case for chart liniting. DON"T NAME YOUR PRODUCTION RELEASE testRelease */}} {{- printf "testRelease" -}} -- cgit 1.2.3-korg