Let Flux manage Calico on RKE2

What does this MR do and why?

Tries to implement the same approach from !3101 (merged) for Calico, partially reintroducing the content of !2255 (merged).

This MR changes how Calico is installed when RKE2 is used :

  • before this MR, Calico is installed and updated by RKE2 HelmChart controller (at on each node installation, possibly even more frequently)
  • after this MR, RKE2 will install Calico on the first installation of the first node only, and then sylva-units/Flux will fully take over the lifecycle

Other changes:

  • in case of upgrade, cluster unit will depend on calico-ready because we want calico to be upgraded before the cluster;
  • in case of upgrade, calico related units will not have the full base-deps, otherwise we have circular dependencies.

Related reference(s)

This MR depends on sylva-projects/sylva-elements/helm-charts/sylva-capi-cluster!505 (merged)

Closes #409 (closed)

Closes sylva-projects/sylva-elements/helm-charts/sylva-capi-cluster#163 (closed)

Edited by Cristian Manda

Merge request reports

Loading