-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local dependencies not working in release definition #1762
Comments
Helmfile has been providing a feature called "adhoc chart dependency" that basially enabled you to add Chart.yaml `dependencies` entry adhocly without forking or modifying the chart. It was missing the support for using a local chart as the adhoc dependency. This patch adds that. Usage: `releases[].dependencies[].chart` is enhanced to accept the fs path to the local chart: ``` releases: - name: foo chart: ./path/to/foo dependencies: - chart: ./path/to/bar ``` Resolves #1762
@marianogg9 Hey! Please see helmfile/chartify@c9b4508 and #1765. I was pretty confused initially but I managed to make it work. First of all, Helmfile's
Until now
Neither repositories[].url nor releases[].dependencies[].chart had support for local file URLs(with a #1765 enhanced the latter, So,
results in Helmfile internally generating Chart.yaml containing:
@marianogg9 WDYT? Does this resolve your issue? |
Thank you @mumoshu, that looks good! If it accepts a local FS path for a chart, then it is fixed. |
Helmfile has been providing a feature called "adhoc chart dependency" that basially enabled you to add Chart.yaml `dependencies` entry adhocly without forking or modifying the chart. It was missing the support for using a local chart as the adhoc dependency. This patch adds that. Usage: `releases[].dependencies[].chart` is enhanced to accept the fs path to the local chart: ``` releases: - name: foo chart: ./path/to/foo dependencies: - chart: ./path/to/bar ``` Resolves #1762
@marianogg9 Thanks for confirming! #1765 has been merged with a brand new documentation about adding ad-hoc dendendencies https://github.com/roboll/helmfile/blob/master/docs/advanced-features.md#adding-dependencies-without-forking-the-chart |
This is still an issue, as the dependencies need a proper version constraint, but with a local kustomization chart, that doesn't work. |
Confirming this does not work
Getting the following error:
|
Why is there no namespace field for dependencies 😬 it's the whole reason I started using helmfile in the first place, so that I could deploy subcharts to different namespaces. |
Hi all.
I am facing an issue with local
dependencies
declaration part of arelease
, as follows:The above will throw this error when trying to render/diff templates:
But if declared in
Charts.yaml
withinfoo_example
directory, it works just fine and loads/rendersdep_chart
along withfoo_example
as expected.Thank you.
The text was updated successfully, but these errors were encountered: