From 01c9b01b90773ada71295f643d0a7921883a5192 Mon Sep 17 00:00:00 2001 From: mrskul <51621656+mrskul@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:49:09 +1000 Subject: [PATCH] allow change of cert secret name --- helm/mail/templates/secret-cert.yaml | 2 +- helm/mail/templates/statefulset.yaml | 2 +- helm/mail/values.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/mail/templates/secret-cert.yaml b/helm/mail/templates/secret-cert.yaml index 948aa45..d4d6aca 100644 --- a/helm/mail/templates/secret-cert.yaml +++ b/helm/mail/templates/secret-cert.yaml @@ -10,7 +10,7 @@ apiVersion: v1 kind: Secret type: kubernetes.io/tls metadata: - name: {{ $fullName }}-certs + name: {{ .Values.certs.name }} labels: {{- $labels | nindent 4 }} annotations: diff --git a/helm/mail/templates/statefulset.yaml b/helm/mail/templates/statefulset.yaml index 809eea8..1d0ebd2 100644 --- a/helm/mail/templates/statefulset.yaml +++ b/helm/mail/templates/statefulset.yaml @@ -195,7 +195,7 @@ spec: defaultMode: 0755 - name: certs secret: - secretName: {{ $fullName }}-certs + secretName: {{ .Values.certs.name }} {{- end }} # Socket directories {{- if and .Values.persistence.enabled .Values.persistence.existingClaim }} diff --git a/helm/mail/values.yaml b/helm/mail/values.yaml index a5550c6..e66ba9b 100644 --- a/helm/mail/values.yaml +++ b/helm/mail/values.yaml @@ -129,6 +129,8 @@ certs: create: false # Provide existing cert existing: false + # Provide Cert Name + name: "smtp-relay-mail-certs" # Define data which should be stored in a Secret # (and shared with the pod as environment variables)