-
Notifications
You must be signed in to change notification settings - Fork 383
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
Adds serviceaccounts,secrets and configmaps GVRs to the default Syncer sync list #680
Adds serviceaccounts,secrets and configmaps GVRs to the default Syncer sync list #680
Conversation
d394699
to
8252223
Compare
@@ -176,7 +176,7 @@ func getAllGVRs(discoveryClient discovery.DiscoveryInterface, resourcesToSync .. | |||
return nil, err | |||
} | |||
} | |||
gvrstrs := []string{"namespaces.v1."} // A syncer should always watch namespaces | |||
gvrstrs := []string{"namespaces.v1.", "serviceaccounts.v1.", "configmaps.v1.", "secrets.v1."} // A syncer should always watch namespaces, serviceaccounts, secrets and configmaps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this also mean they are synced by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes... But we can tune the scheduler to avoid that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sttts I've pushed a WIP commit, trying to solve that issue, let me know what you think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we discussed on slack, I've dropped those changes, and let's assume for now, that we sync everything by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushing the default syncing discussion into Prototype4 https://github.com/kcp-dev/kcp/issues/727
8124ae8
to
a48b537
Compare
1a48143
to
5042497
Compare
baf4ceb
to
34e0dcf
Compare
This PR adds to the default Sync list of the syncer, the GVRs of:
This means, that even if not specified via API imports, or "resources-to-sync" args, the syncer will sync those resources to the workloadclusters.
Pushing the discussion on how to improve the default syncing into Prototype4: kcp-dev/contrib-tmc#137
This is related to: #280