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

feat: adding utility methods for interacting with minikube executable #160

Merged

Conversation

axel7083
Copy link
Contributor

@axel7083 axel7083 commented Oct 14, 2024

Description

Adding utility methods required by #156 and make smaller PR.

Notable changes

  • Updating installBinaryToSystem to return the path where it installed the binary
  • Adding getBinarySystemPath to have a single method deciding where the binary should be installed system-wide
  • Adding whereBinary to detect the binary if installed system wide (copied from podman-desktop#extensions/kind/src/util.ts#L97
  • Adding deleteFile which try to delete a file and if failed try with admin privilege (copy from podman-desktop#extensions/kind/src/extension.ts#L489))
  • Removing unused SpawnResult and RunOptions (could be a separate PR if this is too much)

Tests

  • Unit tests has been added

@axel7083 axel7083 requested a review from benoitf as a code owner October 14, 2024 09:39
Copy link

@gastoner gastoner left a comment

Choose a reason for hiding this comment

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

Codewise LGTM

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083 axel7083 force-pushed the feature/adding-utility-methods branch from ef2b044 to d75df34 Compare October 15, 2024 09:57
@axel7083 axel7083 enabled auto-merge (squash) October 15, 2024 09:57
@axel7083 axel7083 merged commit 98421f5 into podman-desktop:main Oct 15, 2024
5 checks passed
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.

2 participants