Skip to content

Commit

Permalink
[pgadmin4] Add support for envVarsExtra (#246)
Browse files Browse the repository at this point in the history
* Add support for envVarsExtra
* Bump Helm Chart version

---------

Signed-off-by: Stephan Austermühle <au@hcsd.de>
  • Loading branch information
stephan2012 committed Mar 11, 2024
1 parent 10adb6d commit 6b93df6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/pgadmin4/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: pgAdmin4 is a web based administration tool for PostgreSQL database
name: pgadmin4
version: 1.23.4
version: 1.24.0
appVersion: "8.4"
keywords:
- pgadmin
Expand Down
1 change: 1 addition & 0 deletions charts/pgadmin4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ The command removes nearly all the Kubernetes components associated with the cha
| `env.contextPath` | Context path for accessing pgadmin (optional) | `` |
| `envVarsFromConfigMaps` | Array of ConfigMap names to load as environment variables | `[]` |
| `envVarsFromSecrets` | Array of Secret names to load as environment variables | `[]` |
| `envVarsExtra` | Array of arbitrary environment variable definitions (e.g., for fetching from Kubernetes Secrets) | `[]` |
| `persistentVolume.enabled` | If true, pgAdmin4 will create a Persistent Volume Claim | `true` |
| `persistentVolume.accessMode` | Persistent Volume access Mode | `ReadWriteOnce` |
| `persistentVolume.size` | Persistent Volume size | `10Gi` |
Expand Down
3 changes: 3 additions & 0 deletions charts/pgadmin4/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ spec:
{{- .Values.readinessProbe | toYaml | nindent 12 }}
{{- end }}
env:
{{- with .Values.envVarsExtra }}
{{- toYaml . | nindent 12 }}
{{- end }}
- name: PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION
value: {{ .Values.env.enhanced_cookie_protection | quote }}
- name: PGADMIN_DEFAULT_EMAIL
Expand Down
13 changes: 13 additions & 0 deletions charts/pgadmin4/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,19 @@ envVarsFromSecrets: []
# - array-of
# - secret-names

## Additional environment variables
envVarsExtra: []
# - name: POSTGRES_USERNAME
# valueFrom:
# secretKeyRef:
# name: pgadmin.pgadmin-db.credentials.postgresql.acid.zalan.do
# key: username
# - name: POSTGRES_PASSWORD
# valueFrom:
# secretKeyRef:
# name: pgadmin.pgadmin-db.credentials.postgresql.acid.zalan.do
# key: password

persistentVolume:
## If true, pgAdmin4 will create/use a Persistent Volume Claim
## If false, use emptyDir
Expand Down

0 comments on commit 6b93df6

Please sign in to comment.