Helm Chart: Add existingClaim to persistence (#10230)

This commit is contained in:
Martin Manka
2026-08-14 11:33:39 +01:00
committed by GitHub
parent e6e35bb4c4
commit 3cb33475ec
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -35,6 +35,7 @@ The chart should dump its version and appVersion in the Chart.yaml file every re
| `preferences.data` | Preferences to load | `{}` |
| `resources.*` | Allocated requests and limits resources | `{"requests": {...}, "limits": {...}}` |
| `persistence.enabled` | PVC resource creation | `true` |
| `persistence.existingClaim` | Provide existing PVC instead of creating one | `""` |
| `service.type` | Service type | `"ClusterIP"` |
| `service.loadBalancerIP` | Load balancer IP (Only if service.type is LoadBalancer) | `""` |
| `ingress.enabled` | Ingress resource creation | `false` |
+1 -1
View File
@@ -66,7 +66,7 @@ spec:
{{- if .Values.persistence.enabled }}
- name: data
persistentVolumeClaim:
claimName: {{ template "pgadmin4.fullname" . }}
claimName: {{ .Values.persistence.existingClaim | default (include "pgadmin4.fullname" .) }}
{{- end }}
{{- if .Values.config_local.enabled }}
- name: config-local
+2 -2
View File
@@ -1,4 +1,4 @@
{{- if .Values.persistence.enabled }}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
@@ -17,4 +17,4 @@ spec:
requests:
storage: {{ .Values.persistence.size }}
accessModes: {{ .Values.persistence.accessModes }}
{{- end }}
{{- end }}
+1 -1
View File
@@ -88,6 +88,7 @@ persistence:
size: 1Gi
storageClass: ""
accessModes: ["ReadWriteOnce"]
existingClaim: ""
service:
type: ClusterIP
@@ -179,4 +180,3 @@ containerSecurityContext:
type: RuntimeDefault
windowsOptions:
hostProcess: false