-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
kubeadm: Upgrade Bootstrap Tokens to beta when upgrading to v1.8 #51956
kubeadm: Upgrade Bootstrap Tokens to beta when upgrading to v1.8 #51956
Conversation
/lgtm |
@jbeda - this needs a |
/retest |
@luxas looks like gofmt problems in verify. PTAL |
90484b8
to
311d748
Compare
@jbeda PTAL. cc @mattmoyer |
@@ -123,8 +123,7 @@ const ( | |||
KubeConfigVolumeName = "kubeconfig" | |||
|
|||
// NodeBootstrapTokenAuthGroup specifies which group a Node Bootstrap Token should be authenticated in | |||
// TODO: This should be changed in the v1.8 dev cycle to a node-BT-specific group instead of the generic Bootstrap Token group that is used now | |||
NodeBootstrapTokenAuthGroup = "system:bootstrappers" | |||
NodeBootstrapTokenAuthGroup = "system:bootstrappers:kubeadm:default-node-token" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if you use a kubeadm 1.8 version to deploy a 1.7 cluster will this work?
/approve no-issue Please address comment from Tim before lgtm. |
Please make sure kubeadm released with 1.8 still supports deploying 1.7 clusters as they are done today (e.g. with the same token names). |
311d748
to
a455f99
Compare
/retest @mattmoyer @timothysc PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jbeda, luxas, timothysc Associated issue requirement bypassed by: jbeda The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@luxas: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Automatic merge from submit-queue (batch tested with PRs 51956, 50708) |
Automatic merge from submit-queue kubeadm: Set the new BT auth group on the init token **What this PR does / why we need it**: What I forgot to do in #51956 😅 When we now have the new group, we should also set it on the token, otherwise nodes can't be joined On the good side, our CI testing broke https://k8s-testgrid.appspot.com/sig-cluster-lifecycle#kubeadm-gce Great to see that it actually works :) **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` @kubernetes/sig-cluster-lifecycle-pr-reviews
What this PR does / why we need it:
Makes sure the v1.7 -> v1.8 upgrade works regarding the Bootstrap Token alpha -> beta graduation.
Not much have to be done, but some LoC are needed to preserve the behaivor
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note:
@kubernetes/sig-cluster-lifecycle-pr-reviews