-
Notifications
You must be signed in to change notification settings - Fork 980
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
feat: Add the ability to manage Provisioners within the helm chart #1956
Conversation
✅ Deploy Preview for karpenter-docs-prod canceled.
|
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.
very cool!
Co-authored-by: Ellis Tarn <[email protected]>
|
||
# -- Provisioners definition | ||
provisioners: {} | ||
# - metadata: |
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.
Instead of this example, can you comment the link to the provisioner API in the website so this doesn't become obsolete? https://karpenter.sh/v0.11.1/provisioner/
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.
I modified the sample and added a helm-doc link, let me know if it suits you.
Also, how to make this link updated at each release ?
Hey @cest-pas-faux ! Thanks for this PR! There are some issues with managing resources like the In #810 we moved the "default" Provisioner to the post-install hook in Helm since Helm doesn't order the resources other than the CRDs in the I think this would be cool if helm had the proper hooks to apply resources like this :( |
Yep helm is very cool but there is some limitations that are painful to deal with. I just reminded myself that on first install, the CRD does not exists, hence the manifest validation will fail if the The dirty workaround would be to retry the deployment but that's pretty anti-pattern. EDIT: Another solution would be to check the api capabilities in the provisioner template, and run only if the crd is available. Maybe I could make another chart named |
Another helm chart is probably the way to go if we want this and maybe it would work w/ the main chart as a dependency (not sure)? I'm not sure if it adds that much value as another helm chart though rather than just applying the Provisioner manifests with kubectl. I definitely don't think we'd want to manage two helm charts right now in this repo though :) |
Fixes #
Description
This PR adds the Provisioner template to the chart to render the Provisioners along the helm release and manage their lifecycle instead of having to handle plain manifests in another part of the CI.
Included a basic sample for the documentation, the
spec
key from the array will be passed as is.How was this change tested?
Does this change impact docs?
Release Note
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.