add ghost.smtp.from_address and ghost.smtp.secretKeys.from_address

This commit is contained in:
JesseBot 2025-09-28 20:42:54 +02:00
parent f2bcdfc575
commit 8e8a0a15a6
No known key found for this signature in database
5 changed files with 15 additions and 2 deletions

View file

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.5
version: 1.1.0
# renovate: image=docker.io/ghost
appVersion: "6.0.10"

View file

@ -1,6 +1,6 @@
# ghost
![Version: 1.0.5](https://img.shields.io/badge/Version-1.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.0.10](https://img.shields.io/badge/AppVersion-6.0.10-informational?style=flat-square)
![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.0.10](https://img.shields.io/badge/AppVersion-6.0.10-informational?style=flat-square)
A Helm chart for deploying Ghost on Kubernetes
@ -45,10 +45,12 @@ A Helm chart for deploying Ghost on Kubernetes
| ghost.enable_https | bool | `false` | enable HTTPS for the ghost blog |
| ghost.skip_bootstrap | bool | `false` | skip install of ghost at pod restart |
| ghost.smtp.existingSecret | string | `""` | existing kubernetes secret with ghost smtp credentials |
| ghost.smtp.from_address | string | `""` | smtp from address. ignored if existingSecret not "" |
| ghost.smtp.host | string | `""` | smtp hostname. ignored if existingSecret not "" |
| ghost.smtp.password | string | `""` | smtp password. ignored if existingSecret not "" |
| ghost.smtp.port | string | `""` | smtp port. ignored if existingSecret not "" |
| ghost.smtp.protocol | string | `""` | smtp protocol. ignored if existingSecret not "" |
| ghost.smtp.secretKeys.from_address | string | `""` | Key in existing Kubernetes Secret with the smtp from address. |
| ghost.smtp.secretKeys.host | string | `""` | Key in existing Kubernetes Secret with the smtp host. |
| ghost.smtp.secretKeys.password | string | `""` | Key in existing Kubernetes Secret with the smtp password. |
| ghost.smtp.secretKeys.port | string | `""` | Key in existing Kubernetes Secret with the smtp port. |

View file

@ -115,6 +115,12 @@ spec:
secretKeyRef:
name: {{ .Values.ghost.smtp.existingSecret }}
key: {{ .Values.ghost.smtp.secretKeys.protocol }}
# 11
- name: mail__from
valueFrom:
secretKeyRef:
name: {{ .Values.ghost.smtp.existingSecret }}
key: {{ .Values.ghost.smtp.secretKeys.from_address }}
- name: mail__options__auth__user
valueFrom:
secretKeyRef:

View file

@ -12,4 +12,5 @@ data:
mail__options__auth__user: {{ .Values.ghost.smtp.username | b64enc }}
mail__options__auth__pass: {{ .Values.ghost.smtp.password | b64enc }}
mail__transport: {{ .Values.ghost.smtp.protocol | b64enc }}
mail__from: {{ .Values.ghost.smtp.from_address | b64enc }}
{{- end }}

View file

@ -218,6 +218,8 @@ ghost:
password: ""
# -- smtp protocol. ignored if existingSecret not ""
protocol: ""
# -- smtp from address. ignored if existingSecret not ""
from_address: ""
# -- existing kubernetes secret with ghost smtp credentials
existingSecret: ""
# keys in existing kubernetes secret for smtp credentials
@ -232,3 +234,5 @@ ghost:
username: ""
# -- Key in existing Kubernetes Secret with the smtp password.
password: ""
# -- Key in existing Kubernetes Secret with the smtp from address.
from_address: ""