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

Create separate field for disabling rolling updates #9348

Merged
merged 2 commits into from
Jul 2, 2020

Conversation

johngmyers
Copy link
Member

On further reflection, I think my idea of having rolling updates for an instancegroup be disabled by setting both maxSurge and maxUnavailable to zero is too indirect. This PR makes that behavior be controlled by a new setting.

Fixes #7685
Intended to be backported to 1.18.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/api labels Jun 12, 2020
@johngmyers johngmyers force-pushed the rollingupdate-disable branch from 587feea to 23584ba Compare June 12, 2020 06:45
@gjtempleton
Copy link
Member

/lgtm

I definitely agree with this being explicit rather than implicit.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 12, 2020
@johngmyers
Copy link
Member Author

/retest

@johngmyers
Copy link
Member Author

One issue might be naming. It doesn't disable rolling updates entirely, it just disables the drain and terminate behavior. Perhaps DrainAndDelete?

@rdrgmnzs
Copy link
Contributor

After thinking about it I actually like the current naming, I think DrainAndDelete may be even more ambivalent from a users perspective.

@johngmyers
Copy link
Member Author

/retest

@johngmyers
Copy link
Member Author

Let's just check on field naming in Office Hours
/hold

@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 Jun 18, 2020
@johngmyers johngmyers force-pushed the rollingupdate-disable branch from 23584ba to cc2b647 Compare June 20, 2020 05:19
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 20, 2020
@johngmyers
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 Jun 20, 2020
@olemarkus
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 20, 2020
@justinsb
Copy link
Member

justinsb commented Jul 1, 2020

Thanks @johngmyers ... one leftover json field name, but also if we told users to set 0/0, we might not be able to now mark that invalid, and also I think we should probably continue to honor 0/0 as meaning "off", at least for some deprecation period.

@johngmyers
Copy link
Member Author

@justinsb 0/0 hasn't been in a stable release yet, so I think we can skip a deprecation period.

@justinsb
Copy link
Member

justinsb commented Jul 1, 2020

Ah - that's good news. Fine to disallow 0/0 then :-)

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 1, 2020
@justinsb
Copy link
Member

justinsb commented Jul 2, 2020

Thanks @johngmyers - doubly important to get this in so we don't have to deprecate 0/0 :-)

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 2, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Jul 2, 2020
@k8s-ci-robot k8s-ci-robot merged commit 219147e into kubernetes:master Jul 2, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Jul 2, 2020
k8s-ci-robot added a commit that referenced this pull request Jul 2, 2020
…48-upstream-release-1.18

Automated cherry pick of #9348: Create separate field for disabling rolling updates
@johngmyers johngmyers deleted the rollingupdate-disable branch July 2, 2020 17:13
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/api area/documentation area/rolling-update 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent instance group from being managed by rolling-update
6 participants