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

Run dashboard with internal kubectl if not in path #7299

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

afbjorklund
Copy link
Collaborator

If "kubectl" is not in the PATH, then use the same cached binary
as with the "minikube kubectl" command (version matching cluster).

Closes #7290

@k8s-ci-robot k8s-ci-robot added 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. labels Mar 28, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afbjorklund

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 Mar 28, 2020
@codecov-io
Copy link

Codecov Report

Merging #7299 into master will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7299      +/-   ##
==========================================
- Coverage   37.47%   37.43%   -0.04%     
==========================================
  Files         146      146              
  Lines        8870     8879       +9     
==========================================
  Hits         3324     3324              
- Misses       5141     5150       +9     
  Partials      405      405              
Impacted Files Coverage Δ
cmd/minikube/cmd/dashboard.go 1.96% <0.00%> (-0.11%) ⬇️
cmd/minikube/cmd/kubectl.go 0.00% <0.00%> (ø)

@tstromberg
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Mar 28, 2020
@minikube-pr-bot
Copy link

Error: running mkcmp: exit status 1

@afbjorklund
Copy link
Collaborator Author

I think the name "mustload" is quite ugly. Maybe should accept a kubernetes "version" instead ?

func KubectlCommand(co mustload.ClusterController, args ...string) (*exec.Cmd, error) {
	version := co.Config.KubernetesConfig.KubernetesVersion

If "kubectl" is not in the PATH, then use the same cached binary
as with the "minikube kubectl" command (version matching cluster).
@tstromberg tstromberg merged commit 64bd8de into kubernetes:master Apr 1, 2020
@tstromberg
Copy link
Contributor

Tested this locally and it ran great. Thank you!

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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

dashboard: fetch and run the built-in kubectl version
6 participants