Skip to content

Only update kops-controller pods on deletion #10871

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

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

olemarkus
Copy link
Member

This will in most cases mean kops-controller is only updated when the CP node is rolled and should increase the chances of compatible controller<->CP updates

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 18, 2021
@k8s-ci-robot k8s-ci-robot added area/addons approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 18, 2021
@rifelpet rifelpet added this to the v1.20 milestone Feb 18, 2021
@hakman hakman added kind/office-hours and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 23, 2021
@olemarkus olemarkus force-pushed the kops-controller-ondelete branch from e63d2c1 to e97dd79 Compare February 27, 2021 19:41
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 27, 2021
@hakman
Copy link
Member

hakman commented Feb 27, 2021

/cc @justinsb @johngmyers

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 28, 2021
@olemarkus olemarkus force-pushed the kops-controller-ondelete branch from e97dd79 to 96c2aa5 Compare March 1, 2021 08:37
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 1, 2021
@hakman
Copy link
Member

hakman commented Mar 3, 2021

kops-controller uses leader election to decide the leader. Just noticed that the mechanism changed there from ConfigMaps locking to Lease API. Update on delete would break upgrading to the new mechanism.
kubernetes-sigs/controller-runtime#1144

Not sure what the plan is long term, but having new and old kops-controller at the same time in the cluster may generate unexpected results depending on how old the leader is and what are the tasks that it has to do.

@olemarkus
Copy link
Member Author

The only controller that kops-controller is running is node labeller. This one only does idempotent operations and can run perfectly fine in parallel. For CP nodes, it already fights with protokube.

Running rolling-update of kops-controller will result in similar conflict, only for a (much) shorter duration.

@johngmyers
Copy link
Member

The leader election method change would also be an issue for the status quo, just for the shorter amount of time that it takes for the DaemonSet controller to do its rolling update.

/lgtm
/approve
/hold for any last-minute objections

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 3, 2021
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 3, 2021
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 6, 2021
@rifelpet
Copy link
Member

@olemarkus can you rebase this?

@olemarkus olemarkus force-pushed the kops-controller-ondelete branch from 96c2aa5 to 8f2a800 Compare March 12, 2021 18:09
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 12, 2021
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 12, 2021
This will in most cases mean kops-controller is only updated when the CP node is rolled and should increase the chances of compatible controller<->CP updates
@olemarkus olemarkus force-pushed the kops-controller-ondelete branch from 8f2a800 to 06cf351 Compare March 29, 2021 07:07
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 29, 2021
@olemarkus
Copy link
Member Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 29, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 29, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johngmyers, rifelpet

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:
  • OWNERS [johngmyers,rifelpet]

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

@olemarkus
Copy link
Member Author

/retest

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. area/addons 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. 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.

5 participants