You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
exec_auth.ts getCredential function mutates entire nodejs process.env when run #954
It's not really necessary to do this, instead we can pass a copy of the process.env with the appended env array from the KUBECONFIG to the child_process.
** Client Version **
e.g. 0.18.0
** Server Version **
e.g. 1.23.0
To Reproduce
Steps to reproduce the behavior:
Run the code with the env specified in the KUBECONFIG:
...
constk8sApi=kc.makeApiClient(k8s.CoreV1Api);console.log(`how come ${process.env.teddy} is not set?`)constnodes=awaitk8sApi.listNode();console.log(`how come ${process.env.teddy} is set?`)
Expected behavior
Entire process.env should not be mutated (unknowingly depending on what is stored in env of the KUBECONFIG).
Environment (please complete the following information):
Activity
edify42 commentedon Jan 5, 2023
Fixed pending release/publish of new version -> #955