Fix kubecfg.sh

This commit is contained in:
Brendan Burns 2014-08-13 14:11:43 -07:00
parent aeea1b1e06
commit 34b240f17a

View File

@ -26,6 +26,9 @@ if [ ! -x $CLOUDCFG ]; then
fi
detect-master > /dev/null
export KUBERNETES_MASTER=https://${KUBE_MASTER_IP}
if [ "$KUBE_MASTER_IP" != "" ] && [ "$KUBERNETES_MASTER" == "" ]; then
echo "Setting master to: https://${KUBE_MASTER_IP}"
export KUBERNETES_MASTER=https://${KUBE_MASTER_IP}
fi
$CLOUDCFG $@