-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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: graduate control plane prepare phase #73145
kubeadm: graduate control plane prepare phase #73145
Conversation
Hi @ereslibre. 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 Once the patch is verified, the new status will be reflected by the 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. |
Submitting for early feedback. cc/ @fabriziopandini @neolit123 |
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.
Thanks @ereslibre
/ok-to-test
/kind cleanup
/priority important-soon
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.
@ereslibre SGTM, I have added few comments.
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.
🦄
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.
@ereslibre thanks for the fast interaction.
/lgtm
/hold cancel |
/hold I want to improve this PR to treat every component as we do with |
/hold cancel I added the manifests as separate subphases so the UX is similar to Also, the panic and the type assertion will be fixed on #73348 |
Rebased on top of #73348 |
/retest |
1 similar comment
/retest |
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.
@ereslibre thanks for the PR.
added some comments.
probably the biggest topic is to move the etcd check in preflight.
we should have done that in @MalloZup 's PR.
sorry for not catching that.
func runKubeconfigPhaseLocal(c workflow.RunData) error { | ||
data, ok := c.(controlPlanePrepareData) | ||
if !ok { | ||
return errors.New("kubeconfig phase invoked with an invalid data struct") |
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.
[1]
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.
@ereslibre Thanks for this PR!
This is already a good starting point, even if an iteration is required to address some points:
- file organization (i see a different approach here and in preflight)
- the etcd check
What about trying to organize a short meeting to discuss things F2F?
@fabriziopandini @neolit123 I just reorganized the code to have everything in |
@ereslibre: 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. |
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.
@ereslibre The PR cleaned up nicely. Thanks
The last bit to be addressed before merging is the check etcd phase; I don't think this phase should be visible to the users (and in fact this fase was not included in the original list of phases).
So, considering this cannot be moved in prefilght, my proposal is to make ckeck etcd an hidden phase to be executed after control-plane prepare and before kubelet-start. Opinions?
👍 |
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'm ok with this version. Thanks @ereslibre
Might be in a follow up we should prefer checketcd
to waitetcd
(checketcd
seems more appropriate to me), but this is a nit not blocking
/approve
Leaving final lgtm to @neolit123 or someone else
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ereslibre, fabriziopandini 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 |
@fabriziopandini Renamed and squashed all commits. Thanks! |
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 looks good, thanks for the update @ereslibre
/lgtm
What this PR does / why we need it:
Graduate control plane prepare phase
Which issue(s) this PR fixes:
Refs kubernetes/kubeadm#1204
Does this PR introduce a user-facing change?:
/kind feature