Files
dokku/plugins/scheduler-k3s/templates/storage-chart/templates/persistent-volume-claim.yaml
T
Jose Diaz-Gonzalez cfb7da8ec0 feat: scheduler-k3s renders pvc-backed volumes from storage attachments
Adds a per-entry storage helm chart that owns the PVC and (when host_path is set) the PV, and three triggers for the storage plugin to drive: storage-create installs/upgrades the chart with storage-class existence validation, storage-destroy uninstalls it, storage-status reports the PVC phase. App deployment and cron-job charts now consume storage-app-mounts and reference each PVC by name; the // todo: implement volumes blocks are gone. ProcessVolume gained sub_path, read_only, and persistent_claim fields and the deployment/cron-job templates render them.
2026-04-29 14:49:15 -04:00

30 lines
867 B
YAML

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.global.entry_name }}
namespace: {{ .Values.global.namespace }}
labels:
app.kubernetes.io/name: {{ .Values.global.entry_name }}
app.kubernetes.io/managed-by: dokku
{{- range $k, $v := .Values.global.labels }}
{{ $k }}: {{ $v | quote }}
{{- end }}
annotations:
dokku.com/managed: "true"
{{- range $k, $v := .Values.global.annotations }}
{{ $k }}: {{ $v | quote }}
{{- end }}
spec:
accessModes:
- {{ .Values.global.access_mode | default "ReadWriteOnce" }}
resources:
requests:
storage: {{ .Values.global.size }}
{{- if .Values.global.storage_class }}
storageClassName: {{ .Values.global.storage_class }}
{{- end }}
{{- if .Values.global.host_path }}
volumeName: {{ .Values.global.entry_name }}
storageClassName: ""
{{- end }}