mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
terminal: set NO_PROXY env for localhost communication
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
9702c645b4
commit
e1e3a4695a
@ -283,6 +283,7 @@ export class Kubectl {
|
|||||||
bashScript += "fi\n"
|
bashScript += "fi\n"
|
||||||
bashScript += `export PATH="${helmPath}:${kubectlPath}:$PATH"\n`
|
bashScript += `export PATH="${helmPath}:${kubectlPath}:$PATH"\n`
|
||||||
bashScript += "export KUBECONFIG=\"$tempkubeconfig\"\n"
|
bashScript += "export KUBECONFIG=\"$tempkubeconfig\"\n"
|
||||||
|
bashScript += "export NO_PROXY=localhost,127.0.0.1,$NO_PROXY\n"
|
||||||
bashScript += "unset tempkubeconfig\n"
|
bashScript += "unset tempkubeconfig\n"
|
||||||
await fsPromises.writeFile(bashScriptPath, bashScript.toString(), { mode: 0o644 })
|
await fsPromises.writeFile(bashScriptPath, bashScript.toString(), { mode: 0o644 })
|
||||||
|
|
||||||
@ -308,6 +309,7 @@ export class Kubectl {
|
|||||||
zshScript += "d=${d/#:/}\n"
|
zshScript += "d=${d/#:/}\n"
|
||||||
zshScript += "export PATH=\"$helmpath:$kubectlpath:${d/%:/}\"\n"
|
zshScript += "export PATH=\"$helmpath:$kubectlpath:${d/%:/}\"\n"
|
||||||
zshScript += "export KUBECONFIG=\"$tempkubeconfig\"\n"
|
zshScript += "export KUBECONFIG=\"$tempkubeconfig\"\n"
|
||||||
|
zshScript += "export NO_PROXY=localhost,127.0.0.1,$NO_PROXY\n"
|
||||||
zshScript += "unset tempkubeconfig\n"
|
zshScript += "unset tempkubeconfig\n"
|
||||||
zshScript += "unset OLD_ZDOTDIR\n"
|
zshScript += "unset OLD_ZDOTDIR\n"
|
||||||
await fsPromises.writeFile(zshScriptPath, zshScript.toString(), { mode: 0o644 })
|
await fsPromises.writeFile(zshScriptPath, zshScript.toString(), { mode: 0o644 })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user