aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/aks/create_onap.sh
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2020-01-29 17:01:48 -0800
committerBrian Freeman <bf1936@att.com>2020-02-07 20:42:02 +0000
commit0e1117113e33d27e3e10c6e0bd745ff0747be555 (patch)
treec86372ae762c076236c37cbf348f696a6d59f161 /deployment/aks/create_onap.sh
parent157b14a23b18b26fe829dce02233696e19e5a7a9 (diff)
[VVP] parameterizing devstack branch for install
- Also modifying default storage class override logic Issue-ID: INT-1424 Signed-off-by: stark, steven <steven.stark@att.com> Change-Id: If8981f3a59437e21617edb30a6bca06ee6fa36a2
Diffstat (limited to 'deployment/aks/create_onap.sh')
-rwxr-xr-xdeployment/aks/create_onap.sh14
1 files changed, 2 insertions, 12 deletions
diff --git a/deployment/aks/create_onap.sh b/deployment/aks/create_onap.sh
index 4f3a673bb..9a494df2c 100755
--- a/deployment/aks/create_onap.sh
+++ b/deployment/aks/create_onap.sh
@@ -29,13 +29,10 @@ cd $BUILD_DIR
export KUBECONFIG="$KUBECONFIG"
kubectl get nodes
-COUNTER=0
-until [ $COUNTER -ge 10 ]; do
-
echo "overriding default storage class for AKS"
kubectl delete sc default
sleep 1
-cat <<EOF | kubectl apply -f -
+cat > "$BUILD_DIR/tmp-sc.yaml" <<EOF
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
@@ -49,14 +46,7 @@ reclaimPolicy: Delete
volumeBindingMode: Immediate
EOF
-if [ $? -eq 0 ]; then
- COUNTER=10
-else
- COUNTER=$((COUNTER +1))
-fi
-
-sleep 5
-done
+kubectl replace -f "$BUILD_DIR/tmp-sc.yaml" --force
git clone -b "$OOM_BRANCH" http://gerrit.onap.org/r/oom --recurse-submodules