oc-cluster-wrapper icon indicating copy to clipboard operation
oc-cluster-wrapper copied to clipboard

--http-proxy, --https-proxy, --no-proxy doesn't really do anything

Open michalkutyla opened this issue 7 years ago • 2 comments

Hi, nice project Jorg!

Maybe I'm missing something but it looks like proxy parameters are parsed and then ignored. I patched it on my machine by adding

if [ ! -z $__PARM_OC_HTTP_PROXY ]; then CMDLINE+=" --http-proxy=$__PARM_OC_HTTP_PROXY" fi if [ ! -z $__PARM_OC_HTTPS_PROXY ]; then CMDLINE+=" --https-proxy=$__PARM_OC_HTTPS_PROXY" fi if [ ! -z $__PARM_OC_NO_PROXY ]; then CMDLINE+=" --no-proxy=$__PARM_OC_NO_PROXY" fi

If you like it, I will submit a pull request.

Cheers, Michal

michalkutyla avatar Nov 03 '17 12:11 michalkutyla

Please do. I introduce these commands before the feature was available on oc cluster up, and nobody reminded me about it, and I forgot, since I don't use a proxy.

jorgemoralespou avatar Nov 03 '17 12:11 jorgemoralespou

Hello, and thanks for this project/tool. This is very useful.

For anyone else running into docker proxy issues (on MACOS/OSX), it appears as though recent versions (a few months ago) have added a proxy that cannot be disabled and this is causing workflows to break, etc.

Details, workarounds and related/open issues: https://github.com/openshift/origin/issues/18596

Thanks, -cmcc

cmcconnell1 avatar May 30 '18 18:05 cmcconnell1