aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-rke/scripts/redeploy-module.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-03-26 13:08:29 -0700
committerGary Wu <gary.i.wu@huawei.com>2019-03-26 14:55:16 -0700
commit950a3237302a9cc5040354083099bce42e8f2436 (patch)
tree27a60f3dcd083193ec66700689624de8c4461829 /deployment/heat/onap-rke/scripts/redeploy-module.sh
parent54a0cae5a7d672285a02c64e1f98baa9b221a6f7 (diff)
First draft of k8s deployment using RKE
Change-Id: Ifa0eb52b64438df64692aaf58b9ef8e5dd7fd32c Issue-ID: INT-993 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-rke/scripts/redeploy-module.sh')
-rw-r--r--deployment/heat/onap-rke/scripts/redeploy-module.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/deployment/heat/onap-rke/scripts/redeploy-module.sh b/deployment/heat/onap-rke/scripts/redeploy-module.sh
new file mode 100644
index 000000000..ab528314a
--- /dev/null
+++ b/deployment/heat/onap-rke/scripts/redeploy-module.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+if [ "$#" -ne 1 ]; then
+ echo "Please specify module name, i.e. $0 robot"
+ exit 1
+fi
+
+module=$1
+deploy=dev-$1
+cd /root/oom/kubernetes
+helm delete $deploy --purge
+/root/integration/deployment/heat/onap-oom/scripts/cleanup.sh $module
+rm -rf /dockerdata-nfs/$deploy
+make $module
+make onap
+helm deploy $deploy local/onap -f /root/oom/kubernetes/onap/resources/environments/public-cloud.yaml -f /root/integration-override.yaml --namespace onap