-
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
Federation replicaset controller #29741
Federation replicaset controller #29741
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
4 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
de1e359
to
32b436a
Compare
Can we split this PR into 2 PRs:
|
replicaSetController *framework.Controller | ||
replicaSetStore cache.StoreToReplicaSetLister | ||
|
||
replicasetQueue workqueue.DelayingInterface |
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.
This is not the best structure to use. DelayingQueue pushes all updates, for example if 1000 pods changes their status we get 1000 notifications while in fact we would like to get only one after 1 min.
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.
Yeah, I know, I'll adapt it to your deliverer once I sorted the rest code.
And the planner, too.
32b436a
to
c4ebe9b
Compare
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
ok to test |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
c4ebe9b
to
66215c6
Compare
the controller code is reviewable, I'm working on the tests. e2e will be in separate PR. |
66215c6
to
7b9a9b8
Compare
This PR is not for the master branch but does not have the |
return nil | ||
} | ||
|
||
func (frsc *ReplicaSetController) reconcileNamespacesOnClusterChange() { |
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.
53617e6
to
50d1f0a
Compare
) | ||
} | ||
clusterLifecycle := fedutil.ClusterLifecycleHandlerFuncs{ | ||
ClusterAvailable: func(cluster *fedv1.Cluster) { /* no rebalancing for now */ }, |
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.
why not? Its up to the RS configuration. We must trigger on cluster addition.
Two comments, after fixing them LGTM. |
50d1f0a
to
257bda7
Compare
comments fixed |
LGTM |
GCE e2e build/test passed for commit 257bda7. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 257bda7. |
Automatic merge from submit-queue |
…ler-delay-fix Automatic merge from submit-queue fix deliverer dealy constant usage some delay constants were not correctly used #29741 @quinton-hoole @deepak-vij @kshafiee @mwielgus
TBD: integrate with the scheduler, events
@quinton-hoole @deepak-vij @kshafiee
This change is