mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-07 06:56:37 +08:00
change to helpers.tpl
This commit is contained in:
parent
01c9b01b90
commit
b5078e78d3
3 changed files with 14 additions and 3 deletions
|
@ -76,3 +76,14 @@ checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . |
|
||||||
configmap.reloader.stakater.com/reload: "{{ include "mail.fullname" . }}"
|
configmap.reloader.stakater.com/reload: "{{ include "mail.fullname" . }}"
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the secret containing HTTPS/TLS certificates
|
||||||
|
*/}}
|
||||||
|
{{- define "tls.SecretName" -}}
|
||||||
|
{{- $secretName := .Values.certs.existingSecret -}}
|
||||||
|
{{- if $secretName -}}
|
||||||
|
{{- printf "%s" (tpl $secretName .) -}} # Use '.' for context, not '$'
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s-cert" (include "smtp-relay-mail-certs" .) -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
|
@ -195,7 +195,7 @@ spec:
|
||||||
defaultMode: 0755
|
defaultMode: 0755
|
||||||
- name: certs
|
- name: certs
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ .Values.certs.name }}
|
secretName: {{ include "keycloak.tlsSecretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
# Socket directories
|
# Socket directories
|
||||||
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
|
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
|
||||||
|
|
|
@ -129,8 +129,8 @@ certs:
|
||||||
create: false
|
create: false
|
||||||
# Provide existing cert
|
# Provide existing cert
|
||||||
existing: false
|
existing: false
|
||||||
# Provide Cert Name
|
# Provide existing secret name
|
||||||
name: "smtp-relay-mail-certs"
|
existingSecret: ""
|
||||||
|
|
||||||
# Define data which should be stored in a Secret
|
# Define data which should be stored in a Secret
|
||||||
# (and shared with the pod as environment variables)
|
# (and shared with the pod as environment variables)
|
||||||
|
|
Loading…
Add table
Reference in a new issue