mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
Helm Chart: Add existingClaim to persistence (#10230)
This commit is contained in:
@@ -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` |
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -88,6 +88,7 @@ persistence:
|
||||
size: 1Gi
|
||||
storageClass: ""
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
existingClaim: ""
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
@@ -179,4 +180,3 @@ containerSecurityContext:
|
||||
type: RuntimeDefault
|
||||
windowsOptions:
|
||||
hostProcess: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user