[COMMON] Use proper format specifiers to printf masterPassword 31/112031/9
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 2 Sep 2020 08:18:24 +0000 (10:18 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 13 Apr 2021 15:30:46 +0000 (15:30 +0000)
%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 <k.opasiak@samsung.com>
Change-Id: I338c47b0f2a82c698c44579737f698b1f19ade38

kubernetes/common/common/templates/_createPassword.tpl

index bfd0999..4ded11f 100644 (file)
 */}}
 {{- 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" -}}