summaryrefslogtreecommitdiffstats
path: root/deploy/cd.sh
diff options
context:
space:
mode:
authorMichael O'Brien <michael@obrienlabs.org>2018-11-05 19:00:32 -0500
committerMichael O'Brien <michael@obrienlabs.org>2018-11-05 19:01:12 -0500
commit856169460ce5b5c2870e3cbb60e5cdc9cfa46c27 (patch)
tree1be5aa3d349a7b9aa42c8a54918c5baebb37f0bc /deploy/cd.sh
parent60de689fa4c16807d69646f5604d7ed1042f1dca (diff)
cd.sh adjust for helm deploy plugin
Change-Id: I3830dcd95296fb1914b49e556c5decc17dfef7c5 Issue-ID: LOG-326 Signed-off-by: Michael O'Brien <michael@obrienlabs.org>
Diffstat (limited to 'deploy/cd.sh')
-rwxr-xr-xdeploy/cd.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/deploy/cd.sh b/deploy/cd.sh
index 82f9a40..295ef01 100755
--- a/deploy/cd.sh
+++ b/deploy/cd.sh
@@ -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