Skip to content

Conversation

ozamosi
Copy link
Contributor

@ozamosi ozamosi commented Nov 25, 2022

This builds on weaveworks/weave-gitops#3062.

This changes the multi fetcher to be a pure gitops cluster fetcher (named because it fetches objects of the kind GitopsCluster, other suggestions accepted) - instead of just using this fetcher to the cluster manager, this now uses both this fetcher and core's single (constant) cluster fetcher.

Then, it adds a second cluster fetcher for gitops run created vcluster instances. This looks a lot like the gitops cluster fetcher, except it pulls the clusters out of a statefulset instead of a CRD.

The result is that the automation shows up in the source and automation views, but not in the cluster view.

There's no rbac enabled in these clusters - it would really be preferable if the fetcher ran as the user in question so that they could only see the clusters in namespaces they had access to, but that would take another major refactoring of the cluster manager.

This extra cluster fetcher sits behind the same feature flag as the UI - it's on in tilt, off in releases.

@ozamosi ozamosi force-pushed the run-sessions branch 2 times, most recently from 4cdb816 to 6821007 Compare November 25, 2022 11:31
@ozamosi ozamosi added the enhancement New feature or request label Nov 25, 2022
@ozamosi ozamosi requested review from foot and a team November 25, 2022 11:44
@ozamosi ozamosi marked this pull request as ready for review November 25, 2022 11:45
@ozamosi ozamosi force-pushed the run-sessions branch 2 times, most recently from b007d1a to 9d1853f Compare November 25, 2022 15:14
Robin Sonefors added 2 commits November 28, 2022 11:40
The application now grabs the management cluster from the single
cluster fetcher from core, while the former multi-cluster now ignores
the management cluster and instead just returns the gitopsclusters.

I want to add another cluster fetcher that isn't tied to this fetcher,
and this way they could be turned on and off independently from each
other with feature flags.
This adds gitops run sessions as another source of available clusters.

The clusters do not show up in the cluster tab, but their resources do
show up in the applications/sources tabs.
@ozamosi ozamosi merged commit af9f73a into main Nov 28, 2022
@ozamosi ozamosi deleted the run-sessions branch November 28, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants