Skip to content
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

fix sudo not work expected #1197

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Conversation

yinheli
Copy link
Contributor

@yinheli yinheli commented Apr 11, 2022

While sudo package not installed, precheck not work expected.

What type of PR is this?

/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1196

Special notes for reviewers:

prepare test env:

apt remove sudo

Does this PR introduced a user-facing change?

None

@ks-ci-bot ks-ci-bot added kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 11, 2022
@@ -62,10 +70,7 @@ func (n *NodePreCheck) Execute(runtime connector.Runtime) error {
if err != nil || strings.Contains(res, "not found") {
results[software] = ""
} else {
if strings.HasPrefix(cmd, "which") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't know why should modify here. Here, the result of docker and containerd will show their version.

@24sama
Copy link
Collaborator

24sama commented Apr 12, 2022

Hi @yinheli
Thanks for your contribution. I left some comments, PTAL.

@24sama
Copy link
Collaborator

24sama commented Apr 12, 2022

Hi @yinheli Thanks again!
There is a last thing, please squash your commits, that will make the KubeKey's git commits history clearer.

@yinheli
Copy link
Contributor Author

yinheli commented Apr 12, 2022

@24sama Got

while sudo package not installed, precheck not work expected kubesphere#1196
@yinheli
Copy link
Contributor Author

yinheli commented Apr 12, 2022

@24sama Done, Thanks for your review.

@24sama
Copy link
Collaborator

24sama commented Apr 12, 2022

/lgtm
/approve

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 12, 2022
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: b105dca4932151912ae5d1927c9c0940830878f2

@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 24sama, yinheli

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ks-ci-bot ks-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 12, 2022
@ks-ci-bot ks-ci-bot merged commit 0886e69 into kubesphere:master Apr 12, 2022
@24sama
Copy link
Collaborator

24sama commented Apr 18, 2022

@all-contributors please add @yinheli for code

@allcontributors
Copy link
Contributor

@24sama

I've put up a pull request to add @yinheli! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

while sudo package not installed, precheck not work expected at 'create cluster'
3 participants