charts/nzbhydra2/templates/config-pvc.yaml
Devin Buhl 1786410887 Add nzbhydra2 chart (#94)
* Add chart for nzbhydra2

* Update nzbhydra2 in README.md

* Update port in deployment
2019-12-10 14:32:57 -05:00

25 lines
848 B
YAML

{{- if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "nzbhydra2.fullname" . }}-config
labels:
app.kubernetes.io/name: {{ include "nzbhydra2.name" . }}
helm.sh/chart: {{ include "nzbhydra2.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
accessModes:
- {{ .Values.persistence.config.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.config.size | quote }}
{{- if .Values.persistence.config.storageClass }}
{{- if (eq "-" .Values.persistence.config.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.config.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}