blob: b262402688cb6949c3556bbccc0b7164934bebdb [file] [log] [blame]
{{- if not .Values.gitRepositoryStorage.externalPVC.use }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Release.Name }}-git-repositories-pvc
labels:
app.kubernetes.io/component: gerrit
app.kubernetes.io/instance: {{ .Release.Name }}
chart: {{ template "gerrit.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
{{- if .Values.additionalLabels }}
{{ toYaml .Values.additionalLabels | indent 4 }}
{{- end }}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: {{ .Values.gitRepositoryStorage.size }}
storageClassName: {{ .Values.storageClasses.shared.name }}
{{- end }}
{{- if and .Values.logStorage.enabled (not .Values.logStorage.externalPVC.use) }}
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Release.Name }}-log-pvc
labels:
app.kubernetes.io/component: gerrit
app.kubernetes.io/instance: {{ .Release.Name }}
chart: {{ template "gerrit.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
{{- if .Values.additionalLabels }}
{{ toYaml .Values.additionalLabels | indent 4 }}
{{- end }}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: {{ .Values.logStorage.size }}
storageClassName: {{ .Values.storageClasses.shared.name }}
{{- end }}