Skip to content

Commit

Permalink
Moved privacy policy related env declarations outside {{if}} block an…
Browse files Browse the repository at this point in the history
…d simplified expressions using {{with}}
  • Loading branch information
ianroberts committed Mar 2, 2023
1 parent a0f56a6 commit 004d41a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions gate-teamware/templates/deployment-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,23 +132,25 @@ spec:
key: refresh-token
{{- end }}{{/* if backend gmail */}}
{{- end }}{{/* with .Values.email */}}
{{- with .extraEnv }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if and $.Values.email.smtp.security $.Values.email.smtp.clientCertSecret }}
{{- with $.Values.privacyPolicy }}
# Privacy Policy Settings
- name: PP_HOST_NAME
value: {{ $.Values.privacyPolicy.host.name | quote }}
value: {{ .host.name | quote }}
- name: PP_HOST_ADDRESS
value: {{ $.Values.privacyPolicy.host.address | quote }}
value: {{ .host.address | quote }}
- name: PP_HOST_CONTACT
value: {{ $.Values.privacyPolicy.host.contact | quote }}
value: {{ .host.contact | quote }}
- name: PP_ADMIN_NAME
value: {{ $.Values.privacyPolicy.admin.name | quote }}
value: {{ .admin.name | quote }}
- name: PP_ADMIN_ADDRESS
value: {{ $.Values.privacyPolicy.admin.address | quote }}
value: {{ .admin.address | quote }}
- name: PP_ADMIN_CONTACT
value: {{ $.Values.privacyPolicy.admin.contact | quote }}
value: {{ .admin.contact | quote }}
{{- end }}
{{- with .extraEnv }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if and $.Values.email.smtp.security $.Values.email.smtp.clientCertSecret }}
volumeMounts:
- name: email-client-cert
mountPath: /email-client-cert
Expand Down

0 comments on commit 004d41a

Please sign in to comment.