Creating a Helm release from a remote chart fails with error: Chart.yaml file is missing
#2409
Labels
area/helm
area/providers
impact/quality
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
size/S
Estimated effort to complete (1-2 days).
What happened?
We try to create a new Helm release from a remote chart with:
We use
RepositoryOpts.Repo
to indicate that the chart is to be fetched from a remote registry.We get the following error:
If we increase the log level, we can see that the
datadog
chart is looked locally instead of on the remote registry:This is caused by the fact that the current working directory contains a subdirectory which has exactly the same name as the chart we want to create.
In this case, Helm tries to leverage the local directory instead of honoring the
RepositoryOpts.Repo
parameter.Expected Behavior
Have helm fetch the remote chart from the registry.
Steps to reproduce
Try to create a Helm Release with
helm.NewRelease
with aRepositoryOpts.Repo
parameter to specify the URL of the remote registry and create a folder inside the working directory with the same name as the chart.Output of
pulumi about
Additional context
If the current working directory subdirectory named with the same name as the chart is renamed to something different, the error goes away.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: