2 # Copyright 2020 Huawei Technologies Co., Ltd.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 - name: Uninstall ssl config mep helm chart
20 command: helm uninstall mep-edgegallery
24 - name: Delete ssl config pg secret
25 command: kubectl delete secret pg-secret -n mep
29 - name: Delete ssl config mep ssl
30 command: kubectl delete secret mep-ssl -n mep
34 - name: Delete ssl config mep mep auth
35 command: kubectl delete secret mepauth-secret -n mep
39 - name: Delete ssl config namesapce mep
40 command: kubectl delete ns mep
44 - name: Delete network isolation multus eg sp controller
45 # yamllint disable rule:line-length
46 command: kubectl delete -f /tmp/eg_mep/deploy/edge/network-isolation/eg-sp-controller.yaml
47 # yamllint disable rule:line-length
49 chdir: /tmp/eg_mep/deploy/
53 - name: Delete network isolation multus eg sp rbac
54 # yamllint disable rule:line-length
55 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/eg-sp-rbac.yaml
56 # yamllint disable rule:line-length
58 chdir: /tmp/eg_mep/deploy/
62 - name: Delete network isolation multus
63 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/multus.yaml
65 chdir: /tmp/eg_mep/deploy/
69 - name: Delete network isolation rm host local
70 command: rm /opt/cni/bin/macvlan /opt/cni/bin/host-local
72 chdir: /tmp/remote-platform/
76 - name: Delete network isolation eg mp1
77 command: ip link set dev eg-mp1 down
79 chdir: /tmp/remote-platform/
83 - name: Delete nnetwork isolation eg mp1 link
84 command: ip link delete eg-mp1
86 chdir: /tmp/remote-platform/
90 - name: Delete network isolation eg mm5
91 command: ip link set dev eg-mm5 down
93 chdir: /tmp/remote-platform/
97 - name: Delete network isolation eg mm5 link
98 command: ip link delete eg-mm5
100 chdir: /tmp/remote-platform/
104 - name: Delete network isolation multus rm
105 command: rm /opt/cni/bin/multus
107 chdir: /tmp/remote-platform/
111 - name: Uninstall dns metallb config mep
112 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/config-map.yaml
114 chdir: /tmp/eg_mep/deploy/
118 - name: Delete dns metallb
119 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/metallb.yaml
121 chdir: /tmp/eg_mep/deploy/
125 - name: Delete dns metallb namespace
126 # yamllint disable rule:line-length
127 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/namespace.yaml
128 # yamllint disable rule:line-length
130 chdir: /tmp/eg_mep/deploy/
134 - name: Delete dns namesapce metallb
135 command: kubectl delete secret memberlist -n metallb-system