-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Exit if uid=0, add --force flag to override #5179
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tstromberg 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 |
@minikube-bot OK to test |
} | ||
|
||
if d == constants.DriverNone || u.Uid != "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.
Wouldn't this always exit, for driver none ? Or maybe that is the "happy path" of validateUser
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.
Never mind, the return will just go the same place as before (the checks were reversed)
This might lead to some support issues, since configuration is unreadable (owned by root) |
Good point. Let me add something to detect if there is an existing config and offer up a solution. |
New behavior:
or:
Closes #3138
Obsoletes #5179