# helm_charts_testlink-pvc.yaml
{{- if .Values.persistence.enabled -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: {{ template "testlink.fullname" . }}-testlink
  labels:
    app: "{{ template "testlink.fullname" . }}"
    chart: "{{ template "testlink.chart" . }}"
    release: {{ .Release.Name | quote }}
    heritage: {{ .Release.Name | quote }}
spec:
  accessModes:
    - {{ .Values.persistence.testlink.accessMode | quote }}
  resources:
    requests:
      storage: {{ .Values.persistence.testlink.size | quote }}
  {{ include "testlink.storageClass" . }}
{{- end -}}