Skip to content

Commit

Permalink
[pgadmin4] Fix Helm Chart invalid empty subPath (#265)
Browse files Browse the repository at this point in the history
Fixes:
* #261
  • Loading branch information
rowanruseler authored Nov 25, 2024
1 parent 2c7e86e commit e6e2bcb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
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.33.0
version: 1.33.1
appVersion: "8.13"
keywords:
- pgadmin
Expand Down
8 changes: 4 additions & 4 deletions charts/pgadmin4/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
volumeMounts:
- name: pgadmin-data
mountPath: /var/lib/pgadmin
subPath: {{ .Values.persistentVolume.subPath | default "" }}
subPath: "{{ .Values.persistentVolume.subPath }}"
securityContext:
runAsUser: 0
resources:
Expand Down Expand Up @@ -190,7 +190,7 @@ spec:
volumeMounts:
- name: pgadmin-data
mountPath: /var/lib/pgadmin
subPath: {{ .Values.persistentVolume.subPath | default "" }}
subPath: "{{ .Values.persistentVolume.subPath }}"
{{- if and (.Values.serverDefinitions.enabled) (or (eq .Values.serverDefinitions.resourceType "ConfigMap") (eq .Values.serverDefinitions.resourceType "Secret")) -}}
{{- if or (.Values.serverDefinitions.existingConfigmap) (.Values.serverDefinitions.existingSecret) (.Values.existingSecret) (.Values.serverDefinitions.servers) }}
- name: definitions
Expand All @@ -201,13 +201,13 @@ spec:
{{- range .Values.extraConfigmapMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath | default "" }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- range .Values.extraSecretMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath | default "" }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- if .Values.extraVolumeMounts }}
Expand Down
9 changes: 6 additions & 3 deletions charts/pgadmin4/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ ingress:
extraConfigmapMounts: []
# - name: certs-configmap
# mountPath: /etc/ssl/certs
# subPath: ca-certificates.crt # (optional)
# subPath: ""
# configMap: certs-configmap
# readOnly: true

Expand Down Expand Up @@ -254,8 +254,11 @@ persistentVolume:
##
# storageClass: "-"
# existingClaim: ""
## Sub-directory of the PV to mount
# subPath: ""

## Subdirectory of pgAdmin4 Persistent Volume to mount
## Useful if the volume's root directory is not empty
##
subPath: ""

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

0 comments on commit e6e2bcb

Please sign in to comment.