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 dns namesapce metallb
39 command: kubectl delete secret memberlist -n metallb-system
43 - name: Delete ssl config namesapce mep
44 command: kubectl delete ns mep
48 - name: Delete network isolation multus eg sp controller
49 # yamllint disable rule:line-length
50 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/eg-sp-controller.yaml
54 - name: Delete network isolation multus eg sp rbac
55 # yamllint disable rule:line-length
56 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/eg-sp-rbac.yaml
60 - name: Delete network isolation multus
61 # yamllint disable rule:line-length
62 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/network-isolation/multus.yaml
66 - name: Delete network isolation eg mp1
67 command: ip link set dev eg-mp1 down
71 - name: Delete nnetwork isolation eg mp1 link
72 command: ip link delete eg-mp1
76 - name: Delete network isolation eg mm5
77 command: ip link set dev eg-mm5 down
81 - name: Delete network isolation eg mm5 link
82 command: ip link delete eg-mm5
86 - name: Delete network isolation multus rm
87 command: rm -rf /opt/cni/bin/multus
91 - name: Uninstall dns metallb config mep
92 # yamllint disable rule:line-length
93 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/config-map.yaml
97 - name: Delete dns metallb
98 # yamllint disable rule:line-length
99 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/metallb.yaml
103 - name: Delete dns metallb namespace
104 # yamllint disable rule:line-length
105 command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/namespace.yaml