From 1090ab0e516f04d1e3891f19837e9ffbf2e77c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Flod=C3=A9n?= Date: Wed, 8 Aug 2018 13:02:18 +0200 Subject: [PATCH] [stable/ghost] Add option for external database port number (#6999) * Add option for external database port number * [stable/ghost] Only set MARIADB_PORT_NUMBER when externalDatabase.port is defined and internal database is disabled * [stable/ghost] Bump version to 4.0.13 --- stable/ghost/Chart.yaml | 2 +- stable/ghost/README.md | 1 + stable/ghost/templates/deployment.yaml | 4 +++- stable/ghost/values.yaml | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stable/ghost/Chart.yaml b/stable/ghost/Chart.yaml index 18af31bf048b..6101bc169451 100644 --- a/stable/ghost/Chart.yaml +++ b/stable/ghost/Chart.yaml @@ -1,5 +1,5 @@ name: ghost -version: 4.0.12 +version: 4.0.13 appVersion: 1.25.3 description: A simple, powerful publishing platform that allows you to share your stories with the world diff --git a/stable/ghost/README.md b/stable/ghost/README.md index 4fc286d05c72..369de25405c7 100644 --- a/stable/ghost/README.md +++ b/stable/ghost/README.md @@ -62,6 +62,7 @@ The following table lists the configurable parameters of the Ghost chart and the | `ghostBlogTitle` | Ghost Blog name | `User's Blog` | | `allowEmptyPassword` | Allow DB blank passwords | `yes` | | `externalDatabase.host` | Host of the external database | `nil` | +| `externalDatabase.port` | Port of the external database | `nil` | | `externalDatabase.user` | Existing username in the external db | `bn_ghost` | | `externalDatabase.password` | Password for the above username | `nil` | | `externalDatabase.database` | Name of the existing database | `bitnami_ghost` | diff --git a/stable/ghost/templates/deployment.yaml b/stable/ghost/templates/deployment.yaml index 0c3f8d8f4ca4..f263a7897b1c 100644 --- a/stable/ghost/templates/deployment.yaml +++ b/stable/ghost/templates/deployment.yaml @@ -48,8 +48,10 @@ spec: {{- else }} value: {{ .Values.externalDatabase.host | quote }} {{- end }} + {{- if and (not .Values.mariadb.enabled) .Values.externalDatabase.port }} - name: MARIADB_PORT_NUMBER - value: "3306" + value: {{ .Values.externalDatabase.port | quote }} + {{- end }} - name: GHOST_DATABASE_NAME {{- if .Values.mariadb.enabled }} value: {{ .Values.mariadb.db.name | quote }} diff --git a/stable/ghost/values.yaml b/stable/ghost/values.yaml index bbfdd160b2bb..7ba1cd67e929 100644 --- a/stable/ghost/values.yaml +++ b/stable/ghost/values.yaml @@ -82,6 +82,9 @@ externalDatabase: ## Database host # host: + ## Database port + # port: + ## Database user # user: bn_ghost