Skip to content

Commit d15eedc

Browse files
committed
If a given privacyPolicy.*.* setting is not provided, leave the corresponding env var completely unset rather than explicitly setting it to an empty string value.
1 parent 004d41a commit d15eedc

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

gate-teamware/templates/deployment-backend.yaml

+22-7
Original file line numberDiff line numberDiff line change
@@ -132,24 +132,39 @@ spec:
132132
key: refresh-token
133133
{{- end }}{{/* if backend gmail */}}
134134
{{- end }}{{/* with .Values.email */}}
135+
135136
{{- with $.Values.privacyPolicy }}
136137
# Privacy Policy Settings
138+
{{- with .host.name }}
137139
- name: PP_HOST_NAME
138-
value: {{ .host.name | quote }}
140+
value: {{ . | quote }}
141+
{{- end }}
142+
{{- with .host.address }}
139143
- name: PP_HOST_ADDRESS
140-
value: {{ .host.address | quote }}
144+
value: {{ . | quote }}
145+
{{- end }}
146+
{{- with .host.contact }}
141147
- name: PP_HOST_CONTACT
142-
value: {{ .host.contact | quote }}
148+
value: {{ . | quote }}
149+
{{- end }}
150+
{{- with .admin.name }}
143151
- name: PP_ADMIN_NAME
144-
value: {{ .admin.name | quote }}
152+
value: {{ . | quote }}
153+
{{- end }}
154+
{{- with .admin.address }}
145155
- name: PP_ADMIN_ADDRESS
146-
value: {{ .admin.address | quote }}
147-
- name: PP_ADMIN_CONTACT
148-
value: {{ .admin.contact | quote }}
156+
value: {{ . | quote }}
149157
{{- end }}
158+
{{- with .admin.contact }}
159+
- name: PP_ADMIN_CONTACT
160+
value: {{ . | quote }}
161+
{{- end }}{{/* with .admin.contact */}}
162+
{{- end }}{{/* with $.Values.privacyPolicy */}}
163+
150164
{{- with .extraEnv }}
151165
{{- toYaml . | nindent 10 }}
152166
{{- end }}
167+
153168
{{- if and $.Values.email.smtp.security $.Values.email.smtp.clientCertSecret }}
154169
volumeMounts:
155170
- name: email-client-cert

0 commit comments

Comments
 (0)