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
Other helmfile operations seem to work as expected (I tested sync).
Analysis
After some investigation, this is probably related to a wrong working directory, for the LintRelease() function as isLocalChart() (a simple os.Stat() with no root dir decoration) called from LintReleases() returns false for a relative path.
If I change the chart: path in local-chart-helmfile.yaml to be rooted at the working directory, linting completes without error. But this is not a viable solution because other helmfile operations (sync) treat relative paths relative to the helmfile.yaml (or helmfile.d/).
If I change the working directory to helmfile.d/ and issue helmfile -f . lint this also completes without error, which is a temporary workaround.
Note that helmfile -f helmfile.d/ sync works as intended as the chart can be reached relative to manifest file, as stated in the README documentation.
`helmfile lint` works with relative chart reference (roboll#252)
The tempalte function `readFile` accepts the path relative to helmfile.yaml
Resolvesroboll#246Fixesroboll#252
`helmfile lint` works with relative chart reference (#252)
The tempalte function `readFile` accepts the path relative to helmfile.yaml
Resolves#246Fixes#252
Problem
When a local chart is referenced in the state file,
helmfile lint
tries to fetch the chart anyway.This can be observed by using this simple helmfile (local-chart-helmfile.yaml):
Here is the file layout to reproduce the problem:
Other helmfile operations seem to work as expected (I tested sync).
Analysis
After some investigation, this is probably related to a wrong working directory, for the
LintRelease()
function asisLocalChart()
(a simple os.Stat() with no root dir decoration) called from LintReleases() returns false for a relative path.If I change the
chart:
path in local-chart-helmfile.yaml to be rooted at the working directory, linting completes without error. But this is not a viable solution because other helmfile operations (sync) treat relative paths relative to the helmfile.yaml (or helmfile.d/).If I change the working directory to
helmfile.d/
and issuehelmfile -f . lint
this also completes without error, which is a temporary workaround.Note that
helmfile -f helmfile.d/ sync
works as intended as the chart can be reached relative to manifest file, as stated in the README documentation.Related issue #246
I think a concept of root dir as determined by the
-f
argument, and propagated to every command would solve this problem.The text was updated successfully, but these errors were encountered: