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

Changes kubeadm upgrade plan output & strategy #63016

Closed
wants to merge 1 commit into from

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Apr 23, 2018

kubeadm will not guess at versions of components if it is not
the same version it is guessing for.

kubeadm no longer supports upgrading patch versions of previous minor versions.

Signed-off-by: Chuck Ha ha.chuck@gmail.com

What this PR does / why we need it: This PR changes the output of kubeadm plan and encourages users to get the correct version of kubeadm for upgrading.

Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#739

Special notes for your reviewer:

This might require discussion or rewording. I'm ok if this doesn't go through, but we will want something like this in the not so distant future.

Release note:

NONE

/cc @kubernetes/sig-cluster-lifecycle-pr-reviews

kubeadm will not guess at versions of components if it is not
the same version it is guessing for.

kubeadm no longer supports upgrading patch versions of previous minor versions.

Signed-off-by: Chuck Ha <ha.chuck@gmail.com>
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 23, 2018
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 23, 2018
@k8s-ci-robot
Copy link
Contributor

Hi @chuckha. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

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.

@k8s-ci-robot
Copy link
Contributor

@chuckha: Reiterating the mentions to trigger a notification:
@kubernetes/sig-cluster-lifecycle-pr-reviews

In response to this:

kubeadm will not guess at versions of components if it is not
the same version it is guessing for.

kubeadm no longer supports upgrading patch versions of previous minor versions.

Signed-off-by: Chuck Ha ha.chuck@gmail.com

What this PR does / why we need it: This PR changes the output of kubeadm plan and encourages users to get the correct version of kubeadm for upgrading.

Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#739

Special notes for your reviewer:

This might require discussion or rewording. I'm ok if this doesn't go through, but we will want something like this in the not so distant future.

Release note:

NONE

/cc @kubernetes/sig-cluster-lifecycle-pr-reviews

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.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: chuckha
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: krousey

Assign the PR to them by writing /assign @krousey in a comment when ready.

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

@timothysc timothysc removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 23, 2018
@timothysc
Copy link
Member

/assign @timothysc

fmt.Fprintf(tabw, "Kube Proxy\t%s\t%s\n", upgrade.Before.KubeVersion, upgrade.After.KubeVersion)
if features.Enabled(featureGates, features.CoreDNS) {
fmt.Fprintf(tabw, "CoreDNS\t%s\t%s\n", upgrade.Before.DNSVersion, upgrade.After.DNSVersion)
if upgrade.Before.KubeadmVersion != upgrade.After.KubeadmVersion {
Copy link
Contributor

Choose a reason for hiding this comment

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

The upgrade guides for 1.7->1.8 and 1.8->1.9 both recommend to use the latest stable version of kubeadm for upgrades, i.e. not just the exact version you’d want to upgrade to. With that in mind this check doesn’t make sense; I would expect it to check if the kubeadm version is the same or newer.

#62568 already ensures that the major and minor versions are the same.

Copy link
Contributor Author

@chuckha chuckha Apr 24, 2018

Choose a reason for hiding this comment

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

Good feedback, thanks.

I'll need to resolve #62568 with what I'm trying to accomplish here. Generally, I don't want past versions to tell me what versions I need to upgrade to for things like KubeDNS because old versions will tell me the wrong version numbers.

@chuckha
Copy link
Contributor Author

chuckha commented Apr 26, 2018

I need to rethink this

@chuckha chuckha closed this Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. 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.

Incorrect version for kube-dns and CoreDNS
4 participants