charts/charts/esphome/templates/pvc.yaml
Alex Manning 931ef940d4
All checks were successful
ci/woodpecker/push/esphome Pipeline was successful
ci/woodpecker/push/mastodon Pipeline was successful
Add esphome.
2023-02-28 20:42:51 +00:00

17 lines
446 B
YAML

{{- if not .Values.pvc.existingClaim -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "esphome.fullname" . }}-config
labels:
{{- include "esphome.labels" . | nindent 4 }}
annotations:
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
storageClassName: {{ .Values.pvc.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.pvc.storage | quote }}
{{- end }}