plugin-barman-cloud
plugin-barman-cloud copied to clipboard
Adding command line option to watch a single namespace
Currently barman-cloud-plugin wants to watch resources cluster-wide. I would like it to allow for more restrictive rbac, like allowing it to only watch the target namespace where Clusters are actually provisioned.
This PR adds the --watch-namespace command line option which restricts the reconciler to a single namespace.
Tested this change in a development cluster. I am happy to write some integration test if somebody points me on how I should do that.
This is my first time contributing, if this submission is missing something feel free to comment