Skip to content

Commit

Permalink
[pgadmin4] Added subPath to persistentVolume in deployment.yaml (#229)
Browse files Browse the repository at this point in the history
* Add subPath to persistentVolume in deployment.yaml
* Update pgadmin4 version to 1.18.5
* Documented variable
---------

Signed-off-by: Zohair-coder <[email protected]>
Co-authored-by: Rowan Ruseler <[email protected]>
  • Loading branch information
Zohair-coder and rowanruseler authored Nov 20, 2023
1 parent f425b41 commit 9b970b2
Show file tree
Hide file tree
Showing 4 changed files with 6 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.18.4
version: 1.18.5
appVersion: "7.8"
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 @@ -93,6 +93,7 @@ The command removes nearly all the Kubernetes components associated with the cha
| `persistentVolume.size` | Persistent Volume size | `10Gi` |
| `persistentVolume.storageClass` | Persistent Volume Storage Class | `unset` |
| `persistentVolume.existingClaim` | Persistent Volume existing claim name | | `unset` |
| `persistentVolume.subPath` | Subdirectory of the volume to mount at | `unset` |
| `securityContext` | Custom [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for pgAdmin4 pod | `` |
| `containerSecurityContext` | Custom [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for pgAdmin4 container | `` |
| `livenessProbe` | [liveness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) initial delay and timeout | `` |
Expand Down
2 changes: 2 additions & 0 deletions charts/pgadmin4/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
volumeMounts:
- name: pgadmin-data
mountPath: /var/lib/pgadmin
subPath: {{ .Values.persistentVolume.subPath | default "" }}
securityContext:
runAsUser: 0
resources:
Expand Down Expand Up @@ -163,6 +164,7 @@ spec:
volumeMounts:
- name: pgadmin-data
mountPath: /var/lib/pgadmin
subPath: {{ .Values.persistentVolume.subPath | default "" }}
{{- if .Values.serverDefinitions.enabled }}
- name: definitions
mountPath: /pgadmin4/servers.json
Expand Down
2 changes: 2 additions & 0 deletions charts/pgadmin4/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ persistentVolume:
##
# storageClass: "-"
# existingClaim: ""
## Sub-directory of the PV to mount
# subPath: ""

## Additional volumes to be added to the deployment
##
Expand Down

0 comments on commit 9b970b2

Please sign in to comment.