projectsveltos / addon-controller

Sveltos Kubernetes add-on controller programmatically deploys add-ons and applications in tens of clusters. Support for ClusterAPI powered clusters, Helm charts, kustomize ,YAMLs. Sveltos has built-in support for multi-tenancy.
https://projectsveltos.github.io/sveltos/
Apache License 2.0
252 stars 17 forks source link

Watch resources listed in TemplateResourceRefs #560

Closed gianlucam76 closed 4 months ago

gianlucam76 commented 4 months ago

Profiles can use resources in the management cluster to instantiate the templates representing the add-ons/applications to deploy in the matching managed clusters.

Those resources are listed in the TemplateResourceRefs.

When one of those resources change, corresponding ClusterSummary instances need to be requeued again. Templates need to be re-instantiated again.

This PR starts and stop watchers for TemplateResourceRefs.

Closes #93