-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
helmGlobals is not used when HelmChartInflationGenerator is used in generators field #5685
Comments
This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I had a similar problem. After checking the source code I discovered that (in my case) the folder name where my chart resides was not correct. Have a look at this: kustomize/plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go Line 343 in c1de030
|
I don't think that is actually the problem in my case, because I think I tested that, but it has been a while. I will report back in few weeks. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
What happened?
I am having trouble getting my deployments of a Helm chart to multiple sites/deployments working.
The setup
I have this structure because I need to deploy my app to multiple sites. Some
of the values need to be the same across all sites, like the application
version, for example. Some of the values need to be the same across 1 site,
like some credentials/domain names. Some of the values are specific per
deployment, like the name.
This is the contents of the
/my-app/helm
folder. It is used as the baseconfig for all deployments.
Then, per site I kustomize the
HelmChartInflationGenerator
from/my-app/helm/helm.yaml
to provide somevaluesInline
.Then in
/my-app/overlays/site1/deployments/deployment1/kustomization.yaml
I kustomize thesame
HelmChartInflationGenerator
another time to add additionalvaluesInline
values.Finally, I collect all the different deployments from the site in
/my-app/overlays/site1/deployments/kustomization.yaml
.The problem
When I try to build this kustomization I get the following:
It looks like
helmGlobals.chartHome
is not passed to theHelmChartInflationGenerator
at all. Even if I changeit to
foo
, I still get the same error. I would expect it to sayno chart found at 'foo'
then.Am I doing something wrong, or is this a bug?
What did you expect to happen?
The Helm chart is inflated multiple times, once per sites per deployment.
How can we reproduce it (as minimally and precisely as possible)?
Files
Command
Expected output
Inflated Helm Chart per site per deployment
Actual output
An error saying the Helm chart cannot be found
Kustomize version
5.3.0
Operating system
Linux
The text was updated successfully, but these errors were encountered: