Move Cilium CRDs to special Helm directory for auto installation upon helm install#13310
Move Cilium CRDs to special Helm directory for auto installation upon helm install#13310christarazi wants to merge 3 commits intocilium:masterfrom
helm install#13310Conversation
This directory is designated for Helm to install CRDs via `helm install`. [1] Note, that a `helm uninstall` will NOT remove the CRDs, as one may assume. [1]: https://helm.sh/docs/chart_best_practices/custom_resource_definitions/ Signed-off-by: Chris Tarazi <chris@isovalent.com>
quick-install.yaml and experimental-install.yaml because it would make them too big to be practical. The reason is because the CRDs contain validation which can be quite verbose.helm install
Following the commit to move the CRD YAMLs to a specific Helm directory, update the Makefile target accordingly, as well as code referencing the old embedded CRD bytes. Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Chris Tarazi <chris@isovalent.com>
7d45a00 to
6a234a0
Compare
|
test-me-please |
|
retest-net-next |
sayboras
left a comment
There was a problem hiding this comment.
Just one note on below flag in helm 3, I feel like we need to document somewhere saying that this flag must not be set. Keen to hear your input.
The rest is LGTM 👍
--skip-crds if set, no CRDs will be installed. By default, CRDs are installed if not already present
|
@sayboras that's a good point, how come when we are generating the template the CRDs are not created in the |
yes, I normally used the below flag to include crds in template. As far as I understand from PR description, we don't want to bundle crds in either |
|
@sayboras oh ok, I think it's fine to leave it as is because we just don't want to have a huge @christarazi did you test installing with helm on k8s 1.12? |
|
Update: This PR is failing on K8s versions below 1.15, because Helm does not know how to install v1beta1 CRDs on versions of K8s that do not understand v1. See this comment for more info. Pinning and converting to draft mode to be picked up in the future. |
|
Obsoleted by #12737 (comment) |
This PR doesn't add the CRDs to the
quick-install.yamlandexperimental-install.yamlbecause it would make them too big to be practical. The reason is because the CRDs contain validation which can be quite verbose.Manually tested by deploying the following and ensuring that
kubectl get crdsshows Cilium CRDs as soon as the Helm install begins:See commit msgs.
Updates: #12737