-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
Include leaderelection in client-go; #39173
Include leaderelection in client-go; #39173
Conversation
@k8s-bot bazel test this |
@mikedanese do you know why the bazel build is failing? The "Details" doesn't provide any information. |
@k8s-bot bazel test this |
leader election currently requires access to |
6362908
to
c1801fc
Compare
c1801fc
to
908ce9b
Compare
@pmorie @hongchaodeng @deads2k could you take a look? Thanks. Actually nvm, the componentconfig is not moved k8s.io/api, so the dependency cycle is still there. I'll try to workaround. |
823a3e0
to
2c2ead7
Compare
2c2ead7
to
0951384
Compare
0951384
to
65cedee
Compare
DefaultRetryPeriod = 2 * time.Second | ||
) | ||
|
||
func DefaultLeaderElectionConfiguration() componentconfig.LeaderElectionConfiguration { |
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.
I left the componentconfig part in kubernetes. Other parts are moved to client-go.
Tests passed. @pmorie @hongchaodeng @deads2k PTAL. Thanks. |
/lgtm Thanks @caesarxuchao for the work. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: caesarxuchao, hongchaodeng, smarterclayton Associated issue: 39117 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
/test pull-kubernetes-e2e-kops-aws |
@caesarxuchao: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/test pull-kubernetes-e2e-kops-aws |
Automatic merge from submit-queue (batch tested with PRs 47232, 48625, 48613, 48567, 39173) |
Fix #39117
Fix kubernetes/client-go#28
This PR: