-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add experimental helmChart support to kustomize.Directory #2471
Conversation
PR is now waiting for a maintainer to run the acceptance tests. |
Thanks for the PR @jturolla. I'm not familiar with this feature, so I'll need some more information. Do you have an example of a Kustomization that doesn't currently work with pulumi-kubernetes? We should add that to the existing Kustomize test to verify that this change fixes the issue: |
Update: The changed worked partially, the plugin seems enabled but it's not finding the helm installation. We're now facing the following error:
I tried creating an |
PR is now waiting for a maintainer to run the acceptance tests. |
After the last commit it works on my machine, helm got inflated correctly and I can see all the resources in the pulumi preview. I'm on macOS M1, helm was installed using brew. We should check how this dependency is used and how do you expect to distribute it. |
72006c6
to
caf5ac0
Compare
PR is now waiting for a maintainer to run the acceptance tests. |
/run-acceptance-tests |
PR is now waiting for a maintainer to run the acceptance tests. |
Please view the PR build: https://github.com/pulumi/pulumi-kubernetes/actions/runs/5414694027 |
As a example, this chuck of code uses helm chart with kustomize:
and then it is called in a pulumi code like this:
Let me know if the above example helps. |
PR is now waiting for a maintainer to run the acceptance tests. |
/run-acceptance-tests |
Please view the PR build: https://github.com/pulumi/pulumi-kubernetes/actions/runs/5415598418 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
Pulumi's kustomize module doesn't enable the Helm plugin by default. Enabling the Helm plugin allows Helm Charts to be expanded by a kustomization.yaml file. I'm unaware of the tradeoffs by enabling this features, as it looks like it has no backwards compatibility issues, as it's just enabling an extra feature.
This PR enables the helm plugin using the statically linked mode, it's not super clear though if that's the helm enabling API, as it seems undocumented, but the impl of the
EnabledPluginConfig
being used is as follows:Which seems to be related to helm.
Related issues (optional)
#2470