You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SearchFiles finds no manifests on Windows: manifest-directory charts render empty #222
On Windows, a release whose chart is a directory of plain manifests (no Chart.yaml, e.g. *.yaml / *.yaml.gotmpl files) is turned into a chart without templates, so it renders nothing.
With chartify v0.27.0 (helmfile 1.7.0) the render stops with: assertion failed: unexpected dir entry "" it must be the abs path to the output directory
Since Fix crash on empty helm render: treat no-output chart as no-op #207 (v0.30.0, helmfile 1.8.3 / 1.8.4) the empty render is treated as a no-op: the command succeeds, but every manifest-directory release is silently empty. Installing with it deploys empty releases.
The same helmfile on Linux renders everything.
Cause
SearchFiles keeps a file only if its path contains matchSubPath + "/":
r.Walk is filepath.Walk, which on Windows returns paths with backslashes, so no path ever contains / and no manifest (nor .gotmpl file) is found. The generated chart has an empty templates/.
Reproduction (Windows)
Any helmfile release whose chart is a local directory of manifests, e.g.
releases:
- name: nschart: ./manifests # manifests/namespace.yaml.gotmpl, no Chart.yaml
Observed on a helmfile of about 30 releases, most of them manifest directories, helmfile template on Windows:
helmfile 1.7.0: fails with the assertion above;
helmfile 1.8.4: exits 0, but only the releases from remote charts have resources — none of the manifest-directory releases renders anything.
Fix
Match on forward slashes (filepath.ToSlash-equivalent) — one line in SearchFiles. With the change, helmfile 1.7.0 rebuilt with chartify v0.27.0 + the fix renders on Windows exactly what Linux renders for the same input (306 resources). PR to follow.
Activity
fix: SearchFiles matches Windows paths