-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Federated namespace controller #30207
Federated namespace controller #30207
Conversation
|
||
type NamespaceController struct { | ||
// For triggering single namespace reconcilation. This is used when there is an | ||
// add/update/delete operation on a namespace in ehtier federated API server or |
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.
s/ehtier/either/
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.
Done.
6b9e876
to
e5fbbb4
Compare
e5fbbb4
to
4309021
Compare
4309021
to
eaacbd7
Compare
nsClientset := federationclientset.NewForConfigOrDie(restclient.AddUserAgent(restClientCfg, "namespace-controller")) | ||
namespaceController := namespacecontroller.NewNamespaceController(nsClientset) | ||
namespaceStopChannel := make(chan struct{}) | ||
namespaceController.Run(namespaceStopChannel) |
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.
nit: we are using wait.NeverStop everywhere, so we probably also want it here (no need to create namespaceStopChannel)
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.
Done.
Just added few more minor comments. Once applied, LGTM |
734e9a9
to
74841fa
Compare
…and other minor fixes
74841fa
to
c1cbe47
Compare
@mwielgus |
LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit c1cbe47. |
Automatic merge from submit-queue |
GCE e2e build/test passed for commit c1cbe47. |
…-kube-client Automatic merge from submit-queue Federation informer use kube clientset for target This is to use kubernetes clientset as the federation informer target clientset as it's used to talking the k8s cluster. kubernetes#29939 kubernetes#30669 kubernetes#30207 @mwielgus @quinton-hoole @kshafiee @deepak-vij
Implemented based on federation common libs.
Depends on #30126.
cc: @quinton-hoole @wojtek-t @kubernetes/sig-cluster-federation
This change is