Skip to content

Commit

Permalink
[stable/ghost] Add option for external database port number (helm#6999)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
flojon authored and k8s-ci-robot committed Aug 8, 2018
1 parent aa75939 commit 1090ab0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/ghost/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions stable/ghost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
4 changes: 3 additions & 1 deletion stable/ghost/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/ghost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ externalDatabase:
## Database host
# host:

## Database port
# port:

## Database user
# user: bn_ghost

Expand Down

0 comments on commit 1090ab0

Please sign in to comment.