Cache -> store.
All checks were successful
ci/woodpecker/push/esphome Pipeline was successful

This commit is contained in:
Alex Manning 2023-06-07 21:33:37 +01:00
parent 743a9991dd
commit 83653353d7
3 changed files with 9 additions and 9 deletions

View file

@ -52,8 +52,8 @@ spec:
volumeMounts:
- name: config
mountPath: /config
- name: store
mountPath: /media/store
- name: cache
mountPath: /cache
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
@ -74,10 +74,10 @@ spec:
{{- else }}
claimName: {{ .Values.pvc.config.existingClaim }}
{{- end }}
- name: store
- name: cache
persistentVolumeClaim:
{{- if not .Values.pvc.store.existingClaim }}
claimName: {{ include "esphome.fullname" . }}-store
{{- if not .Values.pvc.cache.existingClaim }}
claimName: {{ include "esphome.fullname" . }}-cache
{{- else }}
claimName: {{ .Values.pvc.config.existingClaim }}
{{- end }}

View file

@ -19,13 +19,13 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "esphome.fullname" . }}-store
name: {{ include "esphome.fullname" . }}-cache
labels:
{{- include "esphome.labels" . | nindent 4 }}
spec:
accessModes:
- ReadWriteOnce
storageClassName: {{ .Values.pvc.store.storageClassName | quote }}
storageClassName: {{ .Values.pvc.cache.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.pvc.store.storage | quote }}
storage: {{ .Values.pvc.cache.storage | quote }}

View file

@ -52,6 +52,6 @@ pvc:
existingClaim: false
storageClassName: ""
storage: 1Gi
store:
cache:
storageClassName: ""
storage: 5Gi