Skip to content
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

✨ KCP: Move etcd leadership to newest Machine when upgrading #2695

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

vincepri
Copy link
Member

@vincepri vincepri commented Mar 17, 2020

Signed-off-by: Vince Prignano [email protected]

What this PR does / why we need it:
This PR is a follow-up to #2525. To avoid multiple leadership changes, we now use the information available to the controller to always move the leadership to the last Machine created.

/milestone v0.3.2
/priority critical-urgent
/assign @detiber @ncdc
/cc @chuckha @rudoi @sethp-nr

@k8s-ci-robot k8s-ci-robot added this to the v0.3.2 milestone Mar 17, 2020
@k8s-ci-robot k8s-ci-robot added priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 17, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 17, 2020
@k8s-ci-robot k8s-ci-robot requested review from justinsb and ncdc March 17, 2020 18:02
@vincepri vincepri changed the title ✨ Move etcd leadership to newest Machine ✨ KCP: Move etcd leadership to newest Machine when upgrading Mar 17, 2020
Copy link
Member

@detiber detiber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion around a test, otherwise lgtm

controlplane/kubeadm/internal/workload_cluster.go Outdated Show resolved Hide resolved
@vincepri vincepri force-pushed the move-leader-newest branch from 08a4fd9 to 0e35461 Compare March 17, 2020 19:31
@vincepri vincepri removed the request for review from ncdc March 17, 2020 20:47
@vincepri
Copy link
Member Author

@detiber ptal

@detiber
Copy link
Member

detiber commented Mar 17, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 17, 2020
@k8s-ci-robot k8s-ci-robot merged commit b320124 into kubernetes-sigs:master Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants