-
Notifications
You must be signed in to change notification settings - Fork 480
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
Helm3 CRDs #10
Helm3 CRDs #10
Conversation
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.
Can we please update the docs in the README to document that installCRDs will not work with Helm 3?
This is similar to how https://github.com/helm/charts/pull/18721/files updates the documentation.
metadata: | ||
name: kongplugins.configuration.konghq.com | ||
labels: | ||
app.kubernetes.io/name: name |
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.
Please remove this label from all the resources.
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.
uggh, I meant to have the value be kong
. Should I just remove the entire label or replace name
with kong
?
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.
Let's just remove it because it doesn't provide any value as far as I can see.
@hbagdi good call - will do |
Thank you for your contribution! |
This provides support for Helm 3 CRDs. In Helm 3, CRDs are defined in the new
crds
folder: https://helm.sh/docs/topics/chart_best_practices/custom_resource_definitions/.This solves an issue of using Kong as a dependency (subchart) of an umbrella chart and using the CRD (for example KongPlugin). This is currently not possible (or at the very least very challenging) in Helm 2 charts; see here: (helm/helm#2994).
I have followed the strategy of this project for example helm/charts#18721 to ensure backward compatibility for helm2 by copying over the resource definitions to the templates directory as well. (See this as well: helm/charts#19008)
Note that the new
crds
directory does not evaluate templates, and so values must be hard coded. Again, I followed the path outlined in the links above.