1 # Copyright 2020 Huawei Technologies Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 - name: Uninstall ssl config mep helm chart
19 command: helm uninstall mep-edgegallery
23 - name: Delete ssl config pg secret
24 command: kubectl delete secret pg-secret -n mep
28 - name: Delete ssl config mep ssl
29 command: kubectl delete secret mep-ssl -n mep
33 - name: Delete ssl config mep mep auth
34 command: kubectl delete secret mepauth-secret -n mep
38 - name: Delete ssl config namesapce mep
39 command: kubectl delete ns mep
43 - name: Delete network isolation multus eg sp controller
44 # yamllint disable rule:line-length
45 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/eg-sp-controller.yaml
49 - name: Delete network isolation multus eg sp rbac
50 # yamllint disable rule:line-length
51 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/eg-sp-rbac.yaml
55 - name: Delete network isolation multus
56 # yamllint disable rule:line-length
57 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/multus.yaml
61 - name: Delete network isolation eg mp1
62 command: ip link set dev eg-mp1 down
66 - name: Delete nnetwork isolation eg mp1 link
67 command: ip link delete eg-mp1
71 - name: Delete network isolation eg mm5
72 command: ip link set dev eg-mm5 down
76 - name: Delete network isolation eg mm5 link
77 command: ip link delete eg-mm5
81 - name: Delete network isolation multus rm
82 command: rm -rf /opt/cni/bin/multus
86 - name: Uninstall dns metallb config mep
87 # yamllint disable rule:line-length
88 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/config-map.yaml
92 - name: Delete dns metallb
93 # yamllint disable rule:line-length
94 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/metallb.yaml
98 - name: Delete dns metallb namespace
99 # yamllint disable rule:line-length
100 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/namespace.yaml
104 - name: Delete dns namesapce metallb
105 command: kubectl delete secret memberlist -n metallb-system