add the ability to wrap CRDs in a conditional#180
Conversation
fe86b3b to
14741e6
Compare
b595428 to
29de8cd
Compare
29de8cd to
a84332b
Compare
There was a problem hiding this comment.
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