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/edge/network-isolation/eg-sp-controller.yaml
47 chdir: /tmp/eg_mep/deploy/
51 - name: Delete network isolation multus eg sp rbac
52 # yamllint disable rule:line-length
53 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/eg-sp-rbac.yaml
55 chdir: /tmp/eg_mep/deploy/
59 - name: Delete network isolation multus
60 # yamllint disable rule:line-length
61 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/multus.yaml
63 chdir: /tmp/eg_mep/deploy/
67 - name: Delete network isolation rm host local
68 # yamllint disable rule:line-length
69 command: rm /opt/cni/bin/macvlan /opt/cni/bin/host-local
71 chdir: /tmp/remote-platform/
75 - name: Delete network isolation eg mp1
76 command: ip link set dev eg-mp1 down
78 chdir: /tmp/remote-platform/
82 - name: Delete nnetwork isolation eg mp1 link
83 command: ip link delete eg-mp1
85 chdir: /tmp/remote-platform/
89 - name: Delete network isolation eg mm5
90 command: ip link set dev eg-mm5 down
92 chdir: /tmp/remote-platform/
96 - name: Delete network isolation eg mm5 link
97 command: ip link delete eg-mm5
99 chdir: /tmp/remote-platform/
103 - name: Delete network isolation multus rm
104 command: rm /opt/cni/bin/multus
106 chdir: /tmp/remote-platform/
110 - name: Uninstall dns metallb config mep
111 # yamllint disable rule:line-length
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 # yamllint disable rule:line-length
120 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/metallb.yaml
122 chdir: /tmp/eg_mep/deploy/
126 - name: Delete dns metallb namespace
127 # yamllint disable rule:line-length
128 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/namespace.yaml
130 chdir: /tmp/eg_mep/deploy/
134 - name: Delete dns namesapce metallb
135 command: kubectl delete secret memberlist -n metallb-system