-
Notifications
You must be signed in to change notification settings - Fork 35
✨ Cluster registry - an extention that allows you to track connected cluster names #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: m-szalik The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Welcome @m-szalik! |
e8fcb78 to
a002c37
Compare
|
Theres already Maybe add a type Registry struct {
Clusters
}
func (r *Registry) Engage(ctx context.Context, name string, cl cluster.Cluster) error {
return cr.Add(ctx, name, cl, nil)
}And adjust the example for Edit: Might be better to not reuse |
What
Why
If you want to synchronize resource between clusters you need to connect to each cluster and create/update or delete the
resource on each cluster. To be able to get k8s client for the cluster you need to know it's name.
This extension allows you to get list of names of connected clusters.
Changes
Extension added.