From 321ce548ea11360a272008865d2720d3ffe59fea Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Tue, 17 Mar 2026 18:41:48 -0500 Subject: [PATCH] feat(helm): add standalone PVC templates for git-store, firmware-cache, wireguard Three PVCs with configurable size and storageClass. Wireguard PVC is conditional on wireguard.enabled. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../helm/templates/pvc-firmware-cache.yaml | 15 +++++++++++++++ .../helm/templates/pvc-git-store.yaml | 15 +++++++++++++++ .../helm/templates/pvc-wireguard-config.yaml | 17 +++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 infrastructure/helm/templates/pvc-firmware-cache.yaml create mode 100644 infrastructure/helm/templates/pvc-git-store.yaml create mode 100644 infrastructure/helm/templates/pvc-wireguard-config.yaml diff --git a/infrastructure/helm/templates/pvc-firmware-cache.yaml b/infrastructure/helm/templates/pvc-firmware-cache.yaml new file mode 100644 index 0000000..7d1d42f --- /dev/null +++ b/infrastructure/helm/templates/pvc-firmware-cache.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "tod.fullname" . }}-firmware-cache + labels: + {{- include "tod.labels" . | nindent 4 }} +spec: + accessModes: + - ReadWriteOnce + {{- if .Values.storage.firmwareCache.storageClass }} + storageClassName: {{ .Values.storage.firmwareCache.storageClass | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.storage.firmwareCache.size }} diff --git a/infrastructure/helm/templates/pvc-git-store.yaml b/infrastructure/helm/templates/pvc-git-store.yaml new file mode 100644 index 0000000..4c1fc2c --- /dev/null +++ b/infrastructure/helm/templates/pvc-git-store.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "tod.fullname" . }}-git-store + labels: + {{- include "tod.labels" . | nindent 4 }} +spec: + accessModes: + - ReadWriteOnce + {{- if .Values.storage.gitStore.storageClass }} + storageClassName: {{ .Values.storage.gitStore.storageClass | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.storage.gitStore.size }} diff --git a/infrastructure/helm/templates/pvc-wireguard-config.yaml b/infrastructure/helm/templates/pvc-wireguard-config.yaml new file mode 100644 index 0000000..43e9b36 --- /dev/null +++ b/infrastructure/helm/templates/pvc-wireguard-config.yaml @@ -0,0 +1,17 @@ +{{- if .Values.wireguard.enabled }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "tod.fullname" . }}-wireguard-config + labels: + {{- include "tod.labels" . | nindent 4 }} +spec: + accessModes: + - ReadWriteOnce + {{- if .Values.wireguard.storageClass }} + storageClassName: {{ .Values.wireguard.storageClass | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.wireguard.storage }} +{{- end }}