Skip to content

Commit

Permalink
#13 adjust for amsterdam branch
Browse files Browse the repository at this point in the history
  • Loading branch information
obriensystems authored and Michael O'Brien committed Feb 15, 2018
1 parent 15d3fca commit dd588a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ usage() {
cat <<EOF
Usage: $0 [PARAMs]
-u : Display usage
-b [branch] : branch = master or release-1.1.0 (required)
-b [branch] : branch = master or amsterdam (required)
EOF
}

Expand All @@ -18,8 +18,14 @@ echo "provide onap-parameters.yaml and aai-cloud-region-put.json"
sudo sysctl -w vm.max_map_count=262144
echo "remove existing oom"
source oom/kubernetes/oneclick/setenv.bash

# master/beijing only - not amsterdam
oom/kubernetes/oneclick/deleteAll.bash -n onap -y
if [ "$BRANCH" == "master" ]; then
oom/kubernetes/oneclick/deleteAll.bash -n onap -y
else
oom/kubernetes/oneclick/deleteAll.bash -n onap
fi

sleep 10
# verify
DELETED=$(kubectl get pods --all-namespaces -a | grep 0/ | wc -l)
Expand Down

0 comments on commit dd588a0

Please sign in to comment.