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: Demote --self-hosted to master config file. #41991
kubeadm: Demote --self-hosted to master config file. #41991
Conversation
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.
This seems like a better idea. lgtm
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, but one nit needs fixing
cmd/kubeadm/app/cmd/init.go
Outdated
// Temporary control plane is up, now we create our self hosted control | ||
// plane components and remove the static manifests: | ||
fmt.Println("[init] Creating self-hosted control plane...") | ||
if err := kubemaster.CreateSelfHostedControlPlane(i.cfg, client); err != nil { | ||
return err | ||
} | ||
} else { | ||
fmt.Println("[init] ############ NOT SELF-HOSTED") |
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.
please remove this, it would be very confusing for end users
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.
Damnit sorry that was purely debug purposes.
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.
Updated.
a1c9bba
to
943feb0
Compare
/lgtm |
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.
So much cleaner!
@@ -40,6 +40,7 @@ type MasterConfiguration struct { | |||
KubernetesVersion string | |||
CloudProvider string | |||
AuthorizationMode string | |||
SelfHosted bool |
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 should start documenting these types. Can you add a description here and mark this as alpha?
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.
I expect nearly everything here will be completely rewritten in future releases -- in line with my phases proposal for example. Let's discuss the proposed, long-term goals there and then implement that for future releases
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.
Added a comment, is there a way to mark this field specifically as alpha? (or just mention it in comment?)
@k8s-bot test this seems like some tests failed to start |
@k8s-bot test this |
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're adding flags for other stuff like CA file path but self-hosted (alpha) can't be a flag?
Other than my doubts about the rationale behind this decision, the code lgtm.
@pires We're aiming to make the kubeadm init/join/reset UX beta in v1.6, which basically says we shouldn't change it much after that. The node CA path flag for join you're referring to is essential for the secure communication configuration we're aiming for in v1.6. Further, given our plans to enable selfhosting by default, it's awkward to pass |
@k8s-bot bazel test this |
I'm not arguing this isn't important but it is part of the API, yes? So why a flag too? Or have you removed it by this time? |
943feb0
to
cf793e7
Compare
[APPROVALNOTIFIER] This PR is APPROVED The following people have approved this PR: dgoodwin, luxas Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@k8s-bot test this |
Automatic merge from submit-queue (batch tested with PRs 41857, 41864, 40522, 41835, 41991) |
What this PR does / why we need it:
kubeadm init --self-hosted was meant to be a short lived hack to enable self-hosted deployments until we're ready to make them the default. Rather than shipping this in 1.6 (for the first time) we will move this to the config file as it is presently only an advanced feature, leaving us with more well supported ways to remove it in the future.
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:
CC @luxas @pires @errordeveloper @dmmcquay
Release note: