Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright 2019 Huawei Technologies Co., Ltd. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | |
| 12 | if [ "$#" -ne 1 ]; then |
| 13 | echo "Please specify module name, i.e. $0 robot" |
| 14 | exit 1 |
| 15 | fi |
| 16 | |
| 17 | module=$1 |
| 18 | deploy=dev-$1 |
| 19 | cd /root/oom/kubernetes |
| 20 | helm delete $deploy --purge |
Yang Xu | 85b3909 | 2019-04-29 00:56:07 -0400 | [diff] [blame^] | 21 | /root/integration/deployment/heat/onap-rke/scripts/cleanup.sh $module |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 22 | rm -rf /dockerdata-nfs/$deploy |
| 23 | make $module |
| 24 | make onap |
| 25 | helm deploy $deploy local/onap -f /root/oom/kubernetes/onap/resources/environments/public-cloud.yaml -f /root/integration-override.yaml --namespace onap |