Skip to content

Commit

Permalink
Fixes openshift-evangelists#82. Append --http_proxy, --https_proxy an…
Browse files Browse the repository at this point in the history
…d --no_proxy parameters to oc cluster up.
  • Loading branch information
michalkutyla committed Nov 5, 2017
1 parent 5e0d866 commit c83b5ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions oc-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,17 @@ function up {
if supports pv; then
CMDLINE+=" --host-pv-dir $OPENSHIFT_HOST_PV_DIR"
fi

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

CMDLINE+=" --use-existing-config"
CMDLINE+=" -e TZ=$OC_CLUSTER_TZ"
# Add Self signed certificates to the profile
Expand Down

0 comments on commit c83b5ef

Please sign in to comment.