Chart: postgresql.existingClaim for a database volume made outside the chart
This commit is contained in:
1 parent
99778d7489
commit
d8d46266dc
4 files changed
+12
-2
No files matched your search
@@ -97,6 +97,12 @@ spec:
|
||||
volumes:
|
||||
- name: run
|
||||
emptyDir: {}
|
||||
{{- with .Values.postgresql.existingClaim }}
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ . }}
|
||||
{{- end }}
|
||||
{{- if not .Values.postgresql.existingClaim }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
||||
@@ -108,4 +114,5 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.postgresql.storage }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in new issue
Block a user