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: try to search kubectl on the user path first #5248

Merged
merged 2 commits into from Dec 13, 2023

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented Dec 13, 2023

What does this PR do?

register/set version/path from existing binary first

Screenshot / video of UI

What issues does this PR fix or reference?

fixes #5216

How to test this PR?

unit test

check usecase from the issue

also check with an old binary, try to update it, without binary/cache from ~/.local/share/containers/podman-desktop/extensions-storage/

register/set version/path from existing binary first

fixes containers#5216
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf benoitf requested a review from a team as a code owner December 13, 2023 15:18
@benoitf benoitf requested review from dgolovin, lstocchi and deboer-tim and removed request for a team December 13, 2023 15:18
Copy link
Contributor

@cdrage cdrage left a comment

Choose a reason for hiding this comment

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

Tested it on Mac (was unable to test on Linux).

Used an older binary that I still had there, and now it is able to detect it / be able to find it. Shows the version totally fine as well.

LGTM

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Copy link
Collaborator

@deboer-tim deboer-tim left a comment

Choose a reason for hiding this comment

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

Works for me on M1, correctly picks up kubectl install & version.

@benoitf
Copy link
Collaborator Author

benoitf commented Dec 13, 2023

I would need a test on WIndows if possible

@benoitf benoitf mentioned this pull request Dec 13, 2023
4 tasks
@benoitf benoitf merged commit ce9073f into containers:main Dec 13, 2023
8 checks passed
@jeffmaury
Copy link
Contributor

Tested on Windows. Was able to find the kubectl I had on my PATH

@podman-desktop-bot podman-desktop-bot added this to the 1.7.0 milestone Dec 13, 2023
@slemeur slemeur mentioned this pull request Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubectl not showing correctly in CLI Tools
5 participants