canonical / cluster-api-bootstrap-provider-microk8s

This project offers a cluster API bootstrap provider controller that manages the node provision of a MicroK8s cluster.
https://microk8s.io
21 stars 14 forks source link

Support watchNamespace for controller #98

Closed jayesh-srivastava closed 1 month ago

jayesh-srivastava commented 5 months ago

What this PR does / why we need it: This PR adds support for watchNamespace flag for bootstrap-microk8s controller which will restrict the controller to watch cluster-api objects in its namespace only. This is beneficial for certain downstream use cases where there is a separation between controllers and webhooks and one controller is used per namespace.

Fixes:

94

beliaev-maksim commented 5 months ago

@jayesh-srivastava this PR is dependent on PR https://github.com/canonical/cluster-api-bootstrap-provider-microk8s/pull/101

beliaev-maksim commented 5 months ago

@jayesh-srivastava can you please merge master into your branch ?