File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,15 @@ Create the name of the service account to use
57
57
{ {- else } }
58
58
{ {- default " default" .Values.serviceAccount.name } }
59
59
{ {- end } }
60
- { {- end } }
60
+ { {- end } }
61
+
62
+ { {/*
63
+ Render env var value based on type
64
+ */} }
65
+ { {- define " stac-auth-proxy.envValue" -} }
66
+ { {- if kindIs " string" . -} }
67
+ { {- . | quote -} }
68
+ { {- else -} }
69
+ { {- . | toJson | quote -} }
70
+ { {- end -} }
71
+ { {- end -} }
Original file line number Diff line number Diff line change 32
32
env :
33
33
{{- range $key, $value := .Values.env }}
34
34
- name : {{ $key }}
35
- value : {{ $value | toJson | quote }}
35
+ value : {{ include "stac-auth-proxy.envValue" $value }}
36
36
{{- end }}
37
37
38
38
{{- with .Values.nodeSelector }}
46
46
{{- with .Values.tolerations }}
47
47
tolerations :
48
48
{{- toYaml . | nindent 8 }}
49
- {{- end }}
49
+ {{- end }}
You can’t perform that action at this time.
0 commit comments