-
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: fix a bug when dry-running with existing ca.key / ca.crt #108410
kubeadm: fix a bug when dry-running with existing ca.key / ca.crt #108410
Conversation
/assign @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 @Haleygo
i think the change is fine, added some minor comments around error output and the name of CopyFile.
other than that LGTM.
/priority backlog |
/retitle kubeadm: fix a bug when dry-running in external CA mode |
/release-note-edit
|
8ea93ca
to
dace266
Compare
@neolit123 Title maybe a little inaccurate here. It's not in external CA mode, external CA mode activates when the CA Cert is present but the CA Key is not. |
ok, that is true. updating: /retitle kubeadm: fix a bug when dry-running with existing ca.key / ca.crt |
/release-note-edit
|
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.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Haleygo, neolit123 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 |
also please update this in the description: to trigger the |
dace266
to
22c7fb3
Compare
/lgtm |
22c7fb3
to
fe104a9
Compare
fe104a9
to
3bbc257
Compare
/lgtm |
/test pull-kubernetes-e2e-kind |
…410-upstream-release-1.22 Automated cherry pick of #108410: fix dryrun when ca file exists
…410-upstream-release-1.21 Automated cherry pick of #108410: fix dryrun when ca file exists
…410-upstream-release-1.23 Automated cherry pick of #108410: fix dryrun when ca file exists
What type of PR is this?
/kind bug
What this PR does / why we need it:
Kubeadm init --dry-run doesn't work when ca.crt and ca.key provided cause they should be copied to tmp dir.
Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#2512
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: