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

Automatically include homebrew paths in default binary path lookup #4223

Open
josegonzalez opened this issue Jun 13, 2024 · 0 comments
Open

Comments

@josegonzalez
Copy link

Describe the enhancement you'd like to see

The kubectl tool - and tools kubectl uses to auth into a cluster - are commonly installed via homebrew on MacOS. On the newer ARM architectures, this results in binaries in /opt/homebrew/bin. Monokle looks for binaries in whatever it's default path is, which doesn't include this path, resulting in errors configuring Monokle against a cluster for MacOS ARM users.

22:06:14 - stderr]
/bin/sh: kubectl: command not found\n
[22:06:14 - exit]
Exited with code 127

Additionally, setting a custom path isn't straightforward - the error message doesn't link out to updating the PATH, and the property is hidden behind global settings (which isn't easy to know how to get to at first glance since the settings gear points to cluster settings somehow). Once you set that path, you need to completely restart the app in order to get Monokle to understand that kubectl is in another path and it can retry auth.

Ideally Monokle adds that path by default on MacOS ARM installs, auto-detects changes to the PATH to reload config, and maybe optionally has a "retry auth" button on errors.

Additional context

Discord thread here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No Status
Development

No branches or pull requests

1 participant