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
@flybyray thank you for reporting this. I tested kubectl, oc and odo in exactly the same environment.
oc and odo does not support proxy-url in ~/.kube/config as you mentioned above, but they do support https_proxy env variable.
kubectl supports both ways.
Workaround: set https_proxy env manually and then restart vscode.
Fix: set https_proxy env var when running oc or odo if current context has proxy-url property set.
@dgolovin thx i know such workarround but it is not applicable for all use cases, because in this case even vscode + extensions use it and hence things do not work as expected anymore.
with proxy-url the proxy will only be used selective for this specific tool.
@flybyray@mohitsuman It cannot be fixed for several reasons. I did my best to workaround what I could, but it didn't work.
Here are the problems:
Official @kubernetes/nodejs-client does not aware of proxy-url property for a cluster and when I use it to load configuration the proxy-url property is just ignored and not loaded.
I was developing workaround for it which would just search for this property through the config files, but 'oc' and 'odo' removes it during login command call.
Basically nether official javascript client nor openshift oc/odo cli are supporting this use case.
Activity
dgolovin commentedon Jun 30, 2022
@flybyray thank you for reporting this. I tested kubectl, oc and odo in exactly the same environment.
oc and odo does not support proxy-url in ~/.kube/config as you mentioned above, but they do support https_proxy env variable.
kubectl supports both ways.
Workaround: set https_proxy env manually and then restart vscode.
Fix: set https_proxy env var when running oc or odo if current context has proxy-url property set.
flybyray commentedon Jul 1, 2022
@dgolovin thx i know such workarround but it is not applicable for all use cases, because in this case even vscode + extensions use it and hence things do not work as expected anymore.
with
proxy-urlthe proxy will only be used selective for this specific tool.dgolovin commentedon Jul 3, 2022
@flybyray thank you for pointing that out. I'm setting higher priority for this issue.
mohitsuman commentedon Aug 7, 2022
Fixed by #2502
dgolovin commentedon Aug 9, 2022
@mohitsuman no it it was related to the issue, but not an actual fix.
dgolovin commentedon Aug 9, 2022
@flybyray @mohitsuman It cannot be fixed for several reasons. I did my best to workaround what I could, but it didn't work.
Here are the problems:
logincommand call.Basically nether official javascript client nor openshift oc/odo cli are supporting this use case.
flybyray commentedon Aug 10, 2022
ocsupports it see the description. I tested it.Hence i understand that this extension will not support it if it is not base on
oc.dgolovin commentedon Aug 10, 2022
@flybyray let me check latest
ocversion to confirm.25 remaining items