|
@@ -6,15 +6,15 @@ Render environment variable
|
|
{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "name")) -}}
|
|
{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "name")) -}}
|
|
{{- if $envVariable.valueFromSecret -}}
|
|
{{- if $envVariable.valueFromSecret -}}
|
|
{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "secretName" "secretKey")) -}}
|
|
{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "secretName" "secretKey")) -}}
|
|
-- name: {{ $envVariable.name }}
|
|
|
|
|
|
+- name: {{ $envVariable.name | quote }}
|
|
valueFrom:
|
|
valueFrom:
|
|
secretKeyRef:
|
|
secretKeyRef:
|
|
- name: {{ $envVariable.secretName }}
|
|
|
|
- key: {{ $envVariable.secretKey }}
|
|
|
|
|
|
+ name: {{ $envVariable.secretName | quote }}
|
|
|
|
+ key: {{ $envVariable.secretKey | quote }}
|
|
{{- else -}}
|
|
{{- else -}}
|
|
{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "value")) -}}
|
|
{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "value")) -}}
|
|
-- name: {{ $envVariable.name }}
|
|
|
|
- value: {{ $envVariable.value }}
|
|
|
|
|
|
+- name: {{ $envVariable.name | quote }}
|
|
|
|
+ value: {{ $envVariable.value | quote }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
|