-
Notifications
You must be signed in to change notification settings - Fork 539
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
aws-iam-authenticator not found when kube config contains exec env variables #243
Comments
The environment variable setup here: https://github.com/kubernetes-client/javascript/blob/master/src/exec_auth.ts#L58 Can you add more details about the bug? Thanks! |
And I think that the error indicates that the |
First of all, excuse me for repeating myself, but I think I didn't get the point across in my previous comment: The bug is probably in the way Transforming the below:
Into:
Allows Environment variables should NOT be passed as the second variable to https://github.com/shelljs/shelljs#execcommand--options--callback |
Also to replicate add
|
Ah, ok, I think I see. The problem is that we should duplicate the existing environment variables before we pass them to exec. As far as I can read the docs, the way that we are passing environment variables is correct, but because there is no PATH present in the env it isn't present. I'm pretty sure I see the right way to fix this, I will send a PR. |
Sent a PR with the fix. |
I am getting an
aws-iam-authenticator not found
error with the following kube config snippet:Looks like this is due to a bug in
exec_auth.ts
:javascript/src/exec_auth.ts
Line 60 in e5ec945
shelljs.exec
second parameter is defined below:https://github.com/shelljs/shelljs#execcommand--options--callback
Maybe this could be solved using something like:
The text was updated successfully, but these errors were encountered: