update Readme and set cert name as ${mail.fullname}

This commit is contained in:
mrskul 2025-05-28 15:43:27 +10:00 committed by GitHub
parent c131bdae37
commit 2c94e4fe0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -639,7 +639,9 @@ Chart configuration is as follows:
| `nodeSelector` | `{}` | Standard Kubernetes stuff |
| `tolerations` | `[]` | Standard Kubernetes stuff |
| `affinity` | `{}` | Standard Kubernetes stuff |
| `certs.create` | `{}` | Auto generate TLS certificates for Postfix |
| `certs.create` | `false` | Auto generate TLS certificates for Postfix |
| `certs.existing` | `false` | Use existing TLS certificates for Postfix |
| `certs.existingSecret` | `""` | Existing secret containing the TLS certificates for Postfix |
| `extraVolumes` | `[]` | Append any extra volumes to the pod |
| `extraVolumeMounts` | `[]` | Append any extra volume mounts to the postfix container |
| `extraInitContainers` | `[]` | Execute any extra init containers on startup |

View file

@ -84,6 +84,6 @@ Return the secret containing HTTPS/TLS certificates
{{- if $secretName -}}
{{- printf "%s" (tpl $secretName .) -}}
{{- else -}}
{{- printf "smtp-relay-mail-certs" -}}
{{- printf "%s-certs" (include "mail.fullname" .) -}}
{{- end -}}
{{- end -}}

View file

@ -0,0 +1,3 @@
certs:
existing: true
existingSecret: "example-tls"