mirror of
https://github.com/Thumbscrew/k8s-charts.git
synced 2024-11-14 01:50:03 +00:00
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
{{- if .Values.persistence.enabled -}}
|
|
{{- if not .Values.persistence.existingClaim -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "pgadmin.fullname" . }}-pvc
|
|
labels:
|
|
{{- include "pgadmin.labels" . | nindent 4 }}
|
|
# app.kubernetes.io/name: {{ include "pgadmin.name" . }}
|
|
# helm.sh/chart: {{ include "pgadmin.chart" . }}
|
|
# app.kubernetes.io/instance: {{ .Release.Name }}
|
|
# app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
# app.kubernetes.io/component: app
|
|
{{- if .Values.persistence.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.persistence.annotations | indent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.persistence.accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{- if .Values.persistence.storageClass }}
|
|
{{- if (eq "-" .Values.persistence.storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ .Values.persistence.storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- end -}} |