diff --git a/charts/ghost/Chart.yaml b/charts/ghost/Chart.yaml index a663387a3447ea1b4deaec38b228098a04de71d8..31a647aabb52974fafafa99a5e1afacce2783732 100644 --- a/charts/ghost/Chart.yaml +++ b/charts/ghost/Chart.yaml @@ -7,7 +7,7 @@ type: application maintainers: - name: groundhog2k -version: 0.2.6 +version: 0.2.7 appVersion: "3.40.2" diff --git a/charts/ghost/README.md b/charts/ghost/README.md index 79ca05f389f6fcfcaccc6dfbd56af6a1cb1022ad..1030898793a956fcdbaeb4e8c38e0b6389a315d2 100644 --- a/charts/ghost/README.md +++ b/charts/ghost/README.md @@ -1,6 +1,6 @@ # Ghost -   +   A Helm chart for Ghost blog on Kubernetes @@ -123,3 +123,10 @@ $ helm uninstall my-release | externalDatabase.password | string | `nil` | External database password | | settings.mode | string | `"production"` | Ghost mode (production or development) | | settings.url | string | `nil` | URL of Ghost blog | +| settings.mail.from | string | `nil` | Mail from address | +| settings.mail.transport | string | `SMTP` | Mail transport type (SMTP, Sendmail, Direct) | +| settings.mail.host | string | `nil` | Mail host for transport | +| settings.mail.port | int | `nil` | Mail port for transport | +| settings.mail.service | string | `nil` | Service for mail transport (Mailgun, Sendgrid, Gmail, SES) | +| settings.mail.user | string | `nil` | Mail auth user | +| settings.mail.passwort | string | `nil` | Mail auth password | diff --git a/charts/ghost/templates/deployment.yaml b/charts/ghost/templates/deployment.yaml index d4384d5493a0b6418f2e8f5a00a4a811c6c9f0b8..90224fb86efe6b74692c61bb2ee6705379b237e6 100644 --- a/charts/ghost/templates/deployment.yaml +++ b/charts/ghost/templates/deployment.yaml @@ -47,6 +47,30 @@ spec: - name: url value: {{ .Values.settings.url }} {{- end }} + {{- if .Values.settings.mail.from }} + - name: mail__from + value: {{ .Values.settings.mail.from | quote }} + {{- end }} + {{- if .Values.settings.mail.transport }} + - name: mail__transport + value: {{ .Values.settings.mail.transport | quote }} + {{- end }} + {{- if .Values.settings.mail.host }} + - name: mail__options__host + value: {{ .Values.settings.mail.host | quote }} + {{- end }} + {{- if .Values.settings.mail.port }} + - name: mail__options__port + value: {{ .Values.settings.mail.port | quote }} + {{- end }} + {{- if .Values.settings.mail.service }} + - name: mail__options__service + value: {{ .Values.settings.mail.service | quote }} + {{- end }} + {{- if .Values.settings.mail.user }} + - name: mail__options__auth__user + value: {{ .Values.settings.mail.user | quote }} + {{- end }} {{- with .Values.env }} {{- toYaml . | nindent 12 }} {{- end }} diff --git a/charts/ghost/templates/secureconfig.yaml b/charts/ghost/templates/secureconfig.yaml index 3fcdd3fcf8aa67a6684b1402aa17f115c1e53fdb..904269663b1345d2c89688d92bcec9f5f5ed8e16 100644 --- a/charts/ghost/templates/secureconfig.yaml +++ b/charts/ghost/templates/secureconfig.yaml @@ -27,4 +27,7 @@ stringData: database__client: "sqlite3" {{- end }} {{- end }} +{{- end }} +{{- if .Values.settings.mail.password }} + mail__options__auth__pass: {{ .Values.settings.mail.password }} {{- end }} \ No newline at end of file diff --git a/charts/ghost/values.yaml b/charts/ghost/values.yaml index 8baaf95216b77f0ee8bbc753fcd26fe2d7918dc4..02ca11be91808a994e1bdf2c152d8b152483aea1 100644 --- a/charts/ghost/values.yaml +++ b/charts/ghost/values.yaml @@ -136,6 +136,16 @@ settings: ## Environment mode (development or production - default: production) mode: production + ## SMTP connection details + mail: + from: + transport: SMTP + host: + port: + service: + user: + password: + ## Storage parameters storage: ## Set persistentVolumenClaimName to reference an existing PVC