cd.sh adjust for helm deploy plugin 04/71904/1
authorMichael O'Brien <michael@obrienlabs.org>
Tue, 6 Nov 2018 00:00:32 +0000 (19:00 -0500)
committerMichael O'Brien <michael@obrienlabs.org>
Tue, 6 Nov 2018 00:01:12 +0000 (19:01 -0500)
Change-Id: I3830dcd95296fb1914b49e556c5decc17dfef7c5
Issue-ID: LOG-326
Signed-off-by: Michael O'Brien <michael@obrienlabs.org>
deploy/cd.sh

index 82f9a40..295ef01 100755 (executable)
@@ -71,12 +71,11 @@ deploy_onap() {
     # wait for 0/1 before deleting
     echo "sleeping 30 sec"
     # delete potential hanging clustered pods
-    kubectl delete pod $ENVIRON-aaf-sms-vault-0 -n $ENVIRON --grace-period=0 --force
-    kubectl delete pod $ENVIRON-aai-cassandra-0 -n $ENVIRON --grace-period=0 --force
-    kubectl delete pod $ENVIRON-aai-cassandra-1 -n $ENVIRON --grace-period=0 --force
-    kubectl delete pod $ENVIRON-aai-cassandra-2 -n $ENVIRON --grace-period=0 --force
+    #kubectl delete pod $ENVIRON-aaf-sms-vault-0 -n $ENVIRON --grace-period=0 --force
     # specific to when there is no helm release
     kubectl delete pv --all
+    kubectl delete pvc --all
+    kubectl delete secrets --all
     kubectl delete clusterrolebinding --all
     # replace with watch
     # keep jenkins 120 sec timeout happy with echos
@@ -97,6 +96,8 @@ deploy_onap() {
     rm -rf oom
     echo "pull new oom"
     git clone -b $BRANCH http://gerrit.onap.org/r/oom
+    # https://wiki.onap.org/display/DW/OOM+Helm+%28un%29Deploy+plugins
+    sudo cp -R ~/oom/kubernetes/helm/plugins/ ~/.helm
   fi
 
   if [ "$BRANCH" == "amsterdam" ]; then
@@ -134,7 +135,8 @@ deploy_onap() {
     sudo make clean
     sudo make all
     sudo make $ENVIRON
-    sudo helm install local/onap -n onap --namespace $ENVIRON
+    #sudo helm install local/onap -n onap --namespace $ENVIRON
+    sudo helm deploy onap local/onap --namespace $ENVIRON
     cd ../../
   fi