Skip to content

Commit e0da2be

Browse files
author
Jose Antonio Carmona
authored
[bitnami/phpmyadmin]Add extra environment variables (#3090)
* [bitnami/phpmyadmin] Add extra env vars Signed-off-by: joancafom <jcarmona@bitnami.com> * Chart version bump * Fix typo in README * Add extra environments via existing secret * Add extra environments via existing secret * Add missing line * Apply envFrom feedback
1 parent 693e765 commit e0da2be

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

bitnami/phpmyadmin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: phpmyadmin
3-
version: 6.2.2
3+
version: 6.3.0
44
appVersion: 5.0.2
55
description: phpMyAdmin is an mysql administration frontend
66
keywords:

bitnami/phpmyadmin/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ The following table lists the configurable parameters of the phpMyAdmin chart an
7878
| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` |
7979
| `ingress.hosts[0].tlsHosts` | Array of TLS hosts for ingress record (defaults to `ingress.hosts[0].name` if `nil`) | `nil` |
8080
| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `phpmyadmin.local-tls-secret` |
81+
| `extraEnvVars` | Any extra environment variables to be passed to the pod (evaluated as a template) | `{}` |
82+
| `extraEnvVarsCM` | Name of a Config Map containing extra environment variables to be passed to the pod (evaluated as a template) | `nil` |
83+
| `extraEnvVarsSecret` | Secret with extra environment variables | `nil` |
8184
| `podSecurityContext` | phpMyAdmin pods' Security Context | `{ fsGroup: "1001" }` |
8285
| `containerSecurityContext` | phpMyAdmin containers' Security Context | `{ runAsUser: "1001" }` |
8386
| `resources.limits` | The resources limits for the PhpMyAdmin container | `{}` |

bitnami/phpmyadmin/requirements.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ dependencies:
44
version: 0.3.1
55
- name: mariadb
66
repository: https://charts.bitnami.com/bitnami
7-
version: 7.5.2
8-
digest: sha256:9ca28a4ae468e82cc858182cd4f0ba76173b96b68a72e38bdc4b1f1a12603b00
9-
generated: "2020-06-24T08:30:55.358041592Z"
7+
version: 7.6.1
8+
digest: sha256:28cd91c08e3443ace7dc0a5a2ff9762c27045a4b66a9f52924338d2732b3a7ac
9+
generated: "2020-07-10T15:17:50.003664+02:00"

bitnami/phpmyadmin/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ spec:
100100
- name: DATABASE_SSL_VERIFY
101101
value: {{ ternary "yes" "no" .Values.db.ssl.verify | quote }}
102102
{{- end }}
103+
{{- if .Values.extraEnvVars }}
104+
{{- include "phpmyadmin.tplValue" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
105+
{{- end }}
106+
envFrom:
107+
{{- if .Values.extraEnvVarsCM }}
108+
- configMapRef:
109+
name: {{- include "phpmyadmin.tplValue" (dict "value" .Values.extraEnvVarsCM "context" $) | nindent 18 }}
110+
{{- end }}
111+
{{- if .Values.extraEnvVarsSecret }}
112+
- secretRef:
113+
name: {{- include "phpmyadmin.tplValue" (dict "value" .Values.extraEnvVarsSecret "context" $) | nindent 18 }}
114+
{{- end }}
103115
ports:
104116
- name: http
105117
containerPort: 8080

bitnami/phpmyadmin/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,21 @@ ingress:
119119
## If TLS is set to true, you must declare what secret will store the key/certificate for TLS
120120
tlsSecret: phpmyadmin.local-tls
121121

122+
## An array to add extra env vars to configure phpMyAdmin
123+
## For example:
124+
# extraEnvVars:
125+
# - name: PHP_UPLOAD_MAX_FILESIZE
126+
# value: "80M"
127+
extraEnvVars: {}
128+
129+
## Name of a ConfigMap containing extra env vars
130+
##
131+
extraEnvVarsCM:
132+
133+
## Secret with extra environment variables
134+
##
135+
extraEnvVarsSecret:
136+
122137
## phpMyAdmin pods' Security Context
123138
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
124139
##

0 commit comments

Comments
 (0)