(MacOS) - Unable to execute kubectl
commands inside wails app
#3961
Unanswered
abhijith-darshan
asked this question in
Q&A
Replies: 3 comments 3 replies
-
I'm not sure what this could be, but it's not a Wails bug. Moving to Q & A. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I meet the same problem it worked on dev stage on production , the applicaiton seems like can not get the os.Env func (a *App)OpenProject(filePath string){
cwd := filepath.Dir(filePath)
var cmd *exec.Cmd = exec.Command("marscode", "./")
cmd.Dir = cwd
cmd.Env = append(cmd.Env, os.Environ()...)
cmd.Run()
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
@leaanthony - it has been a while do you have any recommendations here?? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
In my application I am trying to use kubernetes
client-go
, which works in dev mode when the kubeconfig has oidc enabled. But when packaged the application doesn't seem to have access tokubectl
binary.However when i run the app using
sudo open /path/to/app
on the terminal, it seems to have access tokubectl
binary and client-go successfully initiates the oidc flow.To Reproduce
...
Expected behaviour
Packaged App should behave exactly like in dev mode
Screenshots
No response
Attempted Fixes
sudo open /path/to/app
System Details
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions