You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the value of the password in enclosed in curly braces e.g {SuperSecretPassword} which at the end gets translated by helm to [SuperSecretPassword] (with normal braces)
I tried escaping and quoting the value in different ways, but nothing seems to work keeping the curly braces in the final value
the only way I managed to get it working was to put the password directly in the secret yaml password={SuperSecretPassword}
Any ideas how I can make helm ignore the special characters and mainly not translate {} into []?
here some of the escaping and quoting attempts that I did
password={{ .Values.secrets.SqlPassword | quote }} --> "[SuperSecretPassword]"
password={{ toString .Values.secrets.SqlPassword }} --> [SuperSecretPassword]
password="{{ .Values.secrets.SqlPassword }}" --> "[SuperSecretPassword]"
I also tried enclosing the whole ConnectionStrings__SqlServerDb value in ""
And none of the above seem to work
The text was updated successfully, but these errors were encountered:
one workaround is to base64 encode the secret when you pass it to the helm kubernetes template and decode it inside the template itself password={{ .Values.secrets.SqlPassword | b64dec }}
Output of
helm version
:version.BuildInfo{Version:"v3.12.3", GitCommit:"3a31588ad33fe3b89af5a2a54ee1d25bfe6eaa5e", GitTreeState:"clean", GoVersion:"go1.20.7"}
Output of
kubectl version
:Client Version: v1.28.2 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.28.8
Cloud Provider/Platform (AKS, GKE, Minikube etc.): N/A
I have a helm chart that creates the following kubernetes secret
the value of the password in enclosed in curly braces e.g
{SuperSecretPassword}
which at the end gets translated by helm to[SuperSecretPassword]
(with normal braces)I tried escaping and quoting the value in different ways, but nothing seems to work keeping the curly braces in the final value
the only way I managed to get it working was to put the password directly in the secret yaml
password={SuperSecretPassword}
Any ideas how I can make helm ignore the special characters and mainly not translate
{}
into[]
?here some of the escaping and quoting attempts that I did
password={{ .Values.secrets.SqlPassword | quote }} --> "[SuperSecretPassword]"
password={{ toString .Values.secrets.SqlPassword }} --> [SuperSecretPassword]
password="{{ .Values.secrets.SqlPassword }}" --> "[SuperSecretPassword]"
I also tried enclosing the whole ConnectionStrings__SqlServerDb value in ""
And none of the above seem to work
The text was updated successfully, but these errors were encountered: