Never delete the namespace for bootstrap, but check before creating.

pull/103/head^2
Brendan Melville 10 years ago
parent 7fbbded942
commit c84b2873df

@ -42,9 +42,11 @@ $MANAGER > $LOGDIR/manager.log 2>&1 --port=8080 --expanderURL=http://localhost:8
echo echo
echo "Creating dm namespace..." echo "Creating dm namespace..."
$KUBECTL get namespace dm >/dev/null 2>/dev/null
if [ $? -ne 0 ]; then
BOOTSTRAP_PATH=$( cd $(dirname $0) ; pwd -P ) BOOTSTRAP_PATH=$( cd $(dirname $0) ; pwd -P )
$KUBECTL delete -f $BOOTSTRAP_PATH/dm-namespace.yaml
$KUBECTL create -f $BOOTSTRAP_PATH/dm-namespace.yaml $KUBECTL create -f $BOOTSTRAP_PATH/dm-namespace.yaml
fi
echo echo
echo "Starting kubectl proxy..." echo "Starting kubectl proxy..."

Loading…
Cancel
Save