-
Notifications
You must be signed in to change notification settings - Fork 157
add the ability to wrap CRDs in a conditional #180
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
base: main
Are you sure you want to change the base?
Conversation
fe86b3b to
14741e6
Compare
b595428 to
29de8cd
Compare
29de8cd to
a84332b
Compare
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.
Looks good. Just one question: How this option works with existing --crd-dir?
If i remember it correctly, resources in crds directory are not templated, meaning that adding {{ - if ... }} will break it.
Should we validate options and return error if both options enabled?
I think this is a valid concern. Any suggestions on how/where, as it doesn't appear this scenario is handled anywhere else. |
|
I think ReadFlags() can do validation and return error |
fixes #184 this allows for optional installation of CRDs (using values, not
--skip-crds) by wrapping the entire custom resource definition in{{- if .Values.crds.enabled }}..{{- end }}-optional-crds, to enable optional CRD installation (default:false)values.yamlwith a default oftrueExamples
-optional-crds