kubernetes-retired / cluster-api-provider-nested

Cluster API Provider for Nested Clusters
Apache License 2.0
301 stars 67 forks source link

✨ Update CAPI VC Controller to Use a Cluster watch. #137

Closed christopherhein closed 3 years ago

christopherhein commented 3 years ago

User Story

As an operator I would like to the CAPI Controller for VC to watch the Cluster resource for updates so I don't need to poll the Cluster resource for changes.

Detailed Description

Currently in #136 this used ctrl.Result{RequeueAfter} which is polling the cache for updates to the Cluster object, this should be done by triggering a change when the Cluster changes instead making the system more efficient.

Anything else you would like to add:

Xref: #136

/kind cleanup /milestone v0.1.x