-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
set skipPhases in Init and JoinConfiguration #3624
Conversation
@@ -117,18 +118,31 @@ func joinWorkers( | |||
|
|||
// runKubeadmJoin executes kubeadm join command | |||
func runKubeadmJoin(logger log.Logger, node nodes.Node) error { | |||
// run kubeadm join | |||
// TODO(bentheelder): this should be using the config file |
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.
@BenTheElder It seemed like this was the last missing piece for this TODO. Please let me know if there's still a gap here where this comment is still valuable.
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.
yep! thanks for fixing my ancient TODO 😅
@@ -166,6 +170,14 @@ func (c *ConfigData) Derive() { | |||
runtimeConfig = append(runtimeConfig, fmt.Sprintf("%s=%s", k, v)) | |||
} | |||
c.RuntimeConfigString = strings.Join(runtimeConfig, ",") | |||
|
|||
// skip preflight checks, as these have undesirable side effects |
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.
TODO(bentheelder): write a fairer note here. this old comment kinda reads like they're a useless feature and that's not accurate, it's just not a good match for kind (we pre-pull images ourselves, we intentionally run in environments with swap on, etc. I wouldn't skip these if running kubeadm init
directly on a linux host.
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.
(also the 1.13+ comment is now redundant, we stopped supporting Kubernetes < 1.15 in https://github.com/kubernetes-sigs/kind/releases/tag/v0.16.0)
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.
we can rewrite those old comments in a follow-up
@BenTheElder Sorry if you were still getting to this, but I took the liberty of making these changes here: #3632
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
/approve
thank you!
we can rewrite those old comments in a follow-up
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, nojnhuh 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 |
Fixes #3606.
This PR moves the
--skip-phases
flag from thekubeadm init
andkubeadm join
commands to the config file for recent versions of Kubernetes to allow users to patch them from a Cluster config. Older (< 1.23) versions of Kubernetes will still specify the--skip-phases
flag for those commands for compatibility.