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

Do not auto-select Hyper-V driver if session has no privilege #9588

Merged
merged 6 commits into from
Nov 23, 2020

Conversation

blueelvis
Copy link
Contributor

@blueelvis blueelvis commented Oct 30, 2020

This checks for both of the following -

  1. If the user is a Windows Administrator
  2. If the user is a Hyper-V Administrator

Without the administrator permission, the config file is not saved and the driver is not auto selected and saved.

  1. Output without Admin privilege & Docker offline -
    image

  2. Output without Admin privilege & Docker online -
    image

  3. Output with Administrator privilege & Docker offline -
    image

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 30, 2020
@blueelvis blueelvis linked an issue Oct 30, 2020 that may be closed by this pull request
@blueelvis blueelvis added this to the v1.15.0 milestone Oct 31, 2020
@codecov-io
Copy link

codecov-io commented Oct 31, 2020

Codecov Report

Merging #9588 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9588   +/-   ##
=======================================
  Coverage   29.04%   29.05%           
=======================================
  Files         172      172           
  Lines       10499    10506    +7     
=======================================
+ Hits         3049     3052    +3     
- Misses       7025     7029    +4     
  Partials      425      425           
Impacted Files Coverage Δ
pkg/minikube/reason/reason.go 0.00% <ø> (ø)
pkg/minikube/machine/stop.go 27.77% <0.00%> (-0.80%) ⬇️
cmd/minikube/cmd/start_flags.go 47.04% <0.00%> (ø)
pkg/minikube/out/register/register.go 79.48% <0.00%> (ø)
cmd/minikube/cmd/stop.go 5.76% <0.00%> (+1.76%) ⬆️
cmd/minikube/cmd/unpause.go 7.50% <0.00%> (+2.23%) ⬆️
cmd/minikube/cmd/pause.go 8.57% <0.00%> (+2.51%) ⬆️

@sharifelgamal sharifelgamal removed this from the v1.15.0 milestone Nov 9, 2020
Copy link
Contributor

@tstromberg tstromberg left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

pkg/minikube/registry/drvs/hyperv/hyperv.go Outdated Show resolved Hide resolved
pkg/minikube/registry/drvs/hyperv/hyperv.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 14, 2020
@medyagh
Copy link
Member

medyagh commented Nov 16, 2020

@blueelvis do you mind updating the pr description with new output and also pull master

And ensure when not in admin privileges, minikube moves to the next available driver (virtualbox or whatever available) instead of exiting ?

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

thank you for fixing this @blueelvis

@medyagh medyagh merged commit 97c4856 into kubernetes:master Nov 23, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: blueelvis, medyagh

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 23, 2020
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

Do not auto-select Hyper-V driver if session has no privilege
6 participants