File tree Expand file tree Collapse file tree 2 files changed +486
-174
lines changed Expand file tree Collapse file tree 2 files changed +486
-174
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -eux
2
3
3
- # Sourced from: https://github.com/kubeovn/kube-ovn/blob/v1.12.21 /dist/images/cleanup.sh
4
+ # Sourced from: https://github.com/kubeovn/kube-ovn/blob/v1.13.8 /dist/images/cleanup.sh
4
5
# Changelog:
5
6
# - use microk8s.$KUBECTL instead of $KUBECTL
6
7
# - remove *-kube-ovn.conflist from $CNI_CONF_DIR
7
8
# - restart the default CNI after disabling addon
8
9
# - restart CodeDNS after disabling addon and reenabling default CNI
9
10
10
- set -eu
11
11
source $SNAP /actions/common/utils.sh
12
12
13
13
KUBECTL=" $SNAP /microk8s-kubectl.wrapper"
14
-
15
14
CNI_CONF_DIR=" /var/snap/microk8s/current/args/cni-network"
16
15
17
16
$KUBECTL delete --ignore-not-found -n kube-system ds kube-ovn-pinger
@@ -134,7 +133,6 @@ $KUBECTL delete --ignore-not-found sa vpc-dns -n kube-system
134
133
135
134
# delete CRD
136
135
$KUBECTL delete --ignore-not-found crd \
137
- htbqoses.kubeovn.io \
138
136
security-groups.kubeovn.io \
139
137
ippools.kubeovn.io \
140
138
vpc-nat-gateways.kubeovn.io \
@@ -208,6 +206,7 @@ $KUBECTL delete --ignore-not-found clusterrole system:ovn system:ovn-ovs system:
208
206
$KUBECTL delete --ignore-not-found clusterrolebinding ovn ovn ovn-ovs kube-ovn-cni kube-ovn-app
209
207
210
208
$KUBECTL delete --ignore-not-found -n kube-system lease kube-ovn-controller
209
+ $KUBECTL delete --ignore-not-found -n kube-system secret ovn-ipsec-ca
211
210
212
211
# Remove annotations in all pods of all namespaces
213
212
for ns in $( $KUBECTL get ns -o name | awk -F/ ' {print $2}' ) ; do
You can’t perform that action at this time.
0 commit comments