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

Fix Handling of LaunchTemplate Versions for MixedInstancePolicy #8038

Conversation

granular-ryanbonham
Copy link
Contributor

@granular-ryanbonham granular-ryanbonham commented Dec 3, 2019

Correctly detect the version of the LaunchTemplate that should be used, handling Default, Latest, and a specified version..

Currently if you are using TF output and using mixed instances policies for your IGs, without this patch in 1.14+ the rolling update always thinks nodes need to be rolled.

TF issue caused by this PR which was to fix handling of ASG set to use default version of the Launch Template.#7445

TF is settings specific version, and not changing the default, so the logic in 7445 broke rolling updates for TF generated ASGs.

Recommend CP to 1.14, 1.15, 1.16 with new releases.

@k8s-ci-robot k8s-ci-robot added 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 Dec 3, 2019
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2019
@granular-ryanbonham
Copy link
Contributor Author

/test pull-kops-verify-gomod

@johngmyers
Copy link
Member

Not to block the PR, but is there any way we could write a test for this sort of thing? It'd probably have to be a new suite, as it's not end-to-end but it needs to run on AWS infrastructure.

I think a suite that verifies that a fi.Cloud implementation behaves according to contract would be quite useful.

@granular-ryanbonham
Copy link
Contributor Author

Agreed we need to improve testing in this area, i didn't have time to address that, and needed to get a patch out as this was impacting our upgrades. I will see if i can find some time to work on testing in this area, but would like to do that separate from this PR.

@granular-ryanbonham
Copy link
Contributor Author

Related to previous PR: #7445

@mikesplain
Copy link
Contributor

Ahh yeah, good fix @granular-ryanbonham! Lets definitely plan to CP to 1.15 and 1.16. I'm not sure 1.14 is worth it since we should be pushing people to 1.15 and beyond. I don't feel that strongly though so up to you 😉 .

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 4, 2019
@k8s-ci-robot k8s-ci-robot merged commit 5c1f09e into kubernetes:master Dec 4, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: granular-ryanbonham, mikesplain

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 [granular-ryanbonham,mikesplain]

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

@paalkr
Copy link

paalkr commented Mar 5, 2020

Will this get into the next 1.16 release?

k8s-ci-robot added a commit that referenced this pull request Mar 31, 2020
…8261-#8567-upstream-release-1.17

Automated cherry pick of #8038: Fix Handling of LaunchTemplate Versions for #8261: Fix RollingUpdate behaviour when using LaunchTemplates for #8567: Treat nil of LaunchTemplateSpecification.Version as $Default
oded7hoffman pushed a commit to spotinst/kubernetes-kops that referenced this pull request Jan 23, 2023
…k_8038_release-1.14

Cherry pick of kubernetes#8038 onto release-1.14
oded7hoffman pushed a commit to spotinst/kubernetes-kops that referenced this pull request Jan 23, 2023
…k_8038_release-1.14

Cherry pick of kubernetes#8038 onto release-1.14
oded7hoffman pushed a commit to spotinst/kubernetes-kops that referenced this pull request Jan 23, 2023
…k_8038_release-1.14

Cherry pick of kubernetes#8038 onto release-1.14
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. 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.

None yet

6 participants