weave-gitops icon indicating copy to clipboard operation
weave-gitops copied to clipboard

Expose known clusters from the clusters-manager

Open foot opened this issue 3 years ago • 0 comments

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 config for clusters in case we need to make other kind of queries against them that the controller-runtime client does not support. For example ProxyGeting 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

foot avatar Oct 20 '22 09:10 foot