-
Notifications
You must be signed in to change notification settings - Fork 301
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
Import Helm Charts #65
Comments
I recently went through the manual process of converting a helm chart (MySQL) to a cdk8s construct. Not sure how you'd do it automatically unless there is a nice way of parsing go-templates... |
how is this going to be different from cluster.addChart() ? |
no helm charts support is kind of no-go in current kubernetes deployment operations, it would be great if you could prioritize it up :). |
Can you describe the use-case and how you imagine the solution might work? |
well most services that we would like to install are most conveniently installed using helm charts, cert-manager, redis, contour, etc. |
Importing helm charts, with all their templating, could be very difficult. Generally you'd likely have to rewrite any existing helm charts into constructs. I wrote up a guide when I did this for a MySQL helm chart to constructs, maybe it'll help: |
I was thinking to simply execute |
@mbonig thats gonna be a no-go, maintaining constructs for every third-party helm chart we depend on is impracticable. |
I'd love to dig into their code and see how they manage importing a helm chart. It would be a powerful feature to have in the cdk8s. |
I expect this to be something like |
I took a quick stab at this: https://github.com/mbonig/helm-chart Let me know what you think, @manast? I purposely didn't look too much at what pulumi was doing, just tried to build something simple and easy to work with. |
Looks great. Will test it next week :). |
Grafana's Also uses helm template, but has the addition of requiring you vendor the charts. |
I'm not familiar with tanka... could you offer a comparison between their method and the one I created (https://github.com/mbonig/helm-chart)? |
Looking at it, two big differences:
A minor difference is that the produced objects are named |
I'm going to change this so it works similar to the NodejsFunction in the CDK, where it'll use docker if 'helm' isn't in the PATH or just execute helm directly if it is.
I'll look into building similar functionality into it. |
Submitted a PR: #346 |
Closes #65 This introduces a new construct that can be used to include an existing Helm chart into your constructs.
No description provided.
The text was updated successfully, but these errors were encountered: