fix: declare one k3s pod volume per storage entry

Mounting one storage entry at two container paths named the same pod volume twice, which Kubernetes rejects as a duplicate, so the chart never applied even though the k3s documentation offers mounting a claim "into the same app at multiple subpaths" as a supported shape. A pod now declares each entry once and binds it at each path it was mounted at. Rendering the chart in a test also surfaced that a cron schedule was emitted unquoted, so any schedule beginning with `*` produced a manifest that could not be parsed at all.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-21 23:35:25 -04:00
1 parent b612285392
commit 14bdc1b2bd
7 files changed
+387 -23

No files matched your search

+10 -1
View File
@@ -115,9 +115,18 @@ type ProcessValues struct {
Replicas int32 `yaml:"replicas"`
Resources ProcessResourcesMap `yaml:"resources,omitempty"`
Web ProcessWeb `yaml:"web,omitempty"`
Volumes []ProcessVolume `yaml:"volumes,omitempty"`
// Volumes holds one entry per container mount. The chart renders a
// volumeMounts entry for each of them and a pod volume for each distinct
// Name, so mounting one storage entry at two container paths belongs here
// twice: Kubernetes allows repeated volumeMounts names but requires pod
// volume names to be unique.
Volumes []ProcessVolume `yaml:"volumes,omitempty"`
}
// ProcessVolume is one container mount together with the source backing it.
// Entries sharing a Name must agree on their source - they describe one pod
// volume bound at several paths.
type ProcessVolume struct {
Name string `yaml:"name"`
MountPath string `yaml:"mount_path"`