Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Add general environment variables option to support PGADMIN_CONFIG_ o…
Browse files Browse the repository at this point in the history
…verrides as per the container docs (#11)

* Add general environment variables option to support PGADMIN_CONFIG_ overrides as per the container docs

Signed-off-by: Patrick Kearney <[email protected]>

* bump chart version to 0.1.10

Signed-off-by: Patrick Kearney <[email protected]>
  • Loading branch information
patkearney authored and alexnuttinck committed Oct 2, 2019
1 parent 22b8dec commit d8e4f3b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pgadmin
version: 0.1.9
version: 0.1.10
appVersion: 4.12.0
description: pgAdmin is a web based administration tool for the PostgreSQL database.
keywords:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The following table lists the configurable parameters of the pgAdmin chart and t
| `pgadmin.password` | pgAdmin admin password | `admin` |
| `pgadmin.tls` | pgAdmin admin TLS. the container will listen on port 80 for connections in plain text. If set to any value, the container will listen on port 443 for TLS connections. When TLS is enabled, a certificate and key must be provided. See [secrets file](/templates/secrets.yaml)| `false` |
| `pgadmin.scriptname` | pgAdmin ScriptName Env, See https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html | `nil` |
| `pgadmin.config` | pgAdmin configuration override(s) Env, config.py entries can be overriden by environment variables with the prefix: 'PGADMIN_CONFIG_' | `nil` |
| **Persistence** |
| `persistence.enabled` | Enable the data persistence or not | `true` |
| `persistence.existingClaim` | Provide an existing PersistentVolumeClaim, the value is evaluated as a template | `nil` |
Expand Down
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
{{- if .Values.pgadmin.scriptname }}
- name: SCRIPT_NAME
value: {{ .Values.pgadmin.scriptname }}
{{- end }}
{{- range .Values.pgadmin.config }}
- name: {{ .name | upper }}
value: {{ .value | quote }}
{{- end }}
ports:
- name: http
Expand Down
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ pgadmin:
## See https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
# scriptname: /pgadmin

## pgadmin config, Any custom environment variabls. Settings in config.py can be overriden with an environment variable using the prefix: PGADMIN_CONFIG_
## eg turn off enhanced cookie protection for default AKS, loadbalancer installation
#config:
# - name: "PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION"
# value: "False"


## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
Expand Down

0 comments on commit d8e4f3b

Please sign in to comment.