weave-gitops
weave-gitops copied to clipboard
Expose known clusters from the clusters-manager
What changed?
- Expose the known clusters in the clusters-manager API
- We already have subscribe, this allows you to query the existing clusters if you subscribe after some have been added.
Why was this change made?
- Allows us to get the
configfor clusters in case we need to make other kind of queries against them that the controller-runtime client does not support. For exampleProxyGeting via the client-go.
How was this change implemented?
- Add a getter method to expose the internal clusters list.
How did you validate the change?
- Manually