mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-08-24 23:54:18 +02:00
30 lines
867 B
YAML
30 lines
867 B
YAML
|
{{- if and .Values.persistence.enabled (not .Values.persistence.existingGiteaClaim) (not .Values.persistence.directGiteaVolumeMount) -}}
|
||
|
kind: PersistentVolumeClaim
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: {{ template "fullname" . }}
|
||
|
labels:
|
||
|
app: {{ template "fullname" . }}
|
||
|
chart: gitea
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
{{- if .Values.persistence.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.persistence.annotations | indent 4 }}
|
||
|
{{- end }}
|
||
|
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- {{ .Values.persistence.accessMode | quote }}
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.persistence.giteaSize | quote }}
|
||
|
{{- if .Values.persistence.storageClass }}
|
||
|
{{- if (eq "-" .Values.persistence.storageClass) }}
|
||
|
storageClassName: ""
|
||
|
{{- else }}
|
||
|
storageClassName: "{{ .Values.persistence.storageClass }}"
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|