Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/wordpress] Add externalDatabase.ssl to add client flag --ssl-mode=REQUIRED #29554

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bitnami/wordpress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 23.1.16 (2024-09-20)
## 23.2.0 (2024-09-20)

* [bitnami/wordpress] Release 23.1.16 ([#29544](https://github.com/bitnami/charts/pull/29544))
* [bitnami/wordpress] Add externalDatabase.ssl to add client flag --ssl-mode=REQUIRED ([#29554](https://github.com/bitnami/charts/pull/29554))

## <small>23.1.16 (2024-09-20)</small>

* [bitnami/wordpress] Release 23.1.16 (#29544) ([043b978](https://github.com/bitnami/charts/commit/043b9781e1aca676b68abec414763eeb88978a80)), closes [#29544](https://github.com/bitnami/charts/issues/29544)

## <small>23.1.15 (2024-09-19)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/wordpress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ maintainers:
name: wordpress
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/wordpress
version: 23.1.16
version: 23.2.0
1 change: 1 addition & 0 deletions bitnami/wordpress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ As an alternative, use one of the preset configurations for pod affinity, pod an
| `externalDatabase.user` | External Database username | `bn_wordpress` |
| `externalDatabase.password` | External Database user password | `""` |
| `externalDatabase.database` | External Database database name | `bitnami_wordpress` |
| `externalDatabase.ssl` | If set to true, configures the database client to add --ssl-mode=REQUIRED | `false` |
| `externalDatabase.existingSecret` | The name of an existing secret with database credentials. Evaluated as a template | `""` |
| `memcached.enabled` | Deploy a Memcached server for caching database queries | `false` |
| `memcached.auth.enabled` | Enable Memcached authentication | `false` |
Expand Down
5 changes: 5 additions & 0 deletions bitnami/wordpress/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ spec:
secretKeyRef:
name: {{ include "wordpress.databaseSecretName" . }}
key: mariadb-password
{{- if .Values.externalDatabase.ssl }}
- name: "MYSQL_CLIENT_ENABLE_SSL"
value: true
{{- end }}
- name: WORDPRESS_USERNAME
value: {{ .Values.wordpressUsername | quote }}
- name: WORDPRESS_PASSWORD
Expand Down Expand Up @@ -282,6 +286,7 @@ spec:
value: {{ .Values.containerPorts.http | quote }}
- name: APACHE_HTTPS_PORT_NUMBER
value: {{ .Values.containerPorts.https | quote }}

{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions bitnami/wordpress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,9 @@ externalDatabase:
## @param externalDatabase.database External Database database name
##
database: bitnami_wordpress
## @param externalDatabase.ssl If set to true, configures the database client to add --ssl-mode=REQUIRED
##
ssl: false
## @param externalDatabase.existingSecret The name of an existing secret with database credentials. Evaluated as a template
## NOTE: Must contain key `mariadb-password`
## NOTE: When it's set, the `externalDatabase.password` parameter is ignored
Expand Down
Loading