Skip to content

Commit 4fa79e7

Browse files
committed
kube-ovn: update to v1.13.8
1 parent 434dbef commit 4fa79e7

File tree

2 files changed

+486
-174
lines changed

2 files changed

+486
-174
lines changed

addons/kube-ovn/disable

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
#!/bin/bash
2+
set -eux
23

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
45
# Changelog:
56
# - use microk8s.$KUBECTL instead of $KUBECTL
67
# - remove *-kube-ovn.conflist from $CNI_CONF_DIR
78
# - restart the default CNI after disabling addon
89
# - restart CodeDNS after disabling addon and reenabling default CNI
910

10-
set -eu
1111
source $SNAP/actions/common/utils.sh
1212

1313
KUBECTL="$SNAP/microk8s-kubectl.wrapper"
14-
1514
CNI_CONF_DIR="/var/snap/microk8s/current/args/cni-network"
1615

1716
$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
134133

135134
# delete CRD
136135
$KUBECTL delete --ignore-not-found crd \
137-
htbqoses.kubeovn.io \
138136
security-groups.kubeovn.io \
139137
ippools.kubeovn.io \
140138
vpc-nat-gateways.kubeovn.io \
@@ -208,6 +206,7 @@ $KUBECTL delete --ignore-not-found clusterrole system:ovn system:ovn-ovs system:
208206
$KUBECTL delete --ignore-not-found clusterrolebinding ovn ovn ovn-ovs kube-ovn-cni kube-ovn-app
209207

210208
$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
211210

212211
# Remove annotations in all pods of all namespaces
213212
for ns in $($KUBECTL get ns -o name | awk -F/ '{print $2}'); do

0 commit comments

Comments
 (0)