From c83b5ef946859606d2dd4b5e6c2b843673b8cbcf Mon Sep 17 00:00:00 2001 From: Michal Kutyla Date: Sun, 5 Nov 2017 23:08:35 +0100 Subject: [PATCH] Fixes #82. Append --http_proxy, --https_proxy and --no_proxy parameters to oc cluster up. --- oc-cluster | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/oc-cluster b/oc-cluster index 59e8f98..59ae5dd 100755 --- a/oc-cluster +++ b/oc-cluster @@ -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