-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reuse node ip and mac annotation
- Loading branch information
Showing
3 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# Remove finalizers in svc | ||
kubectl patch svc -n kube-ovn ovn-nb --type='json' -p '[{"op": "replace", "path": "/metadata/finalizers", "value": []}]' | ||
kubectl patch svc -n kube-ovn ovn-sb --type='json' -p '[{"op": "replace", "path": "/metadata/finalizers", "value": []}]' | ||
|
||
# Delete Kube-OVN components | ||
kubectl delete ns kube-ovn | ||
|
||
# Remove annotations in namespaces and nodes | ||
kubectl annotate no --all ovn.kubernetes.io/cidr- | ||
kubectl annotate no --all ovn.kubernetes.io/gateway- | ||
kubectl annotate no --all ovn.kubernetes.io/ip_address- | ||
kubectl annotate no --all ovn.kubernetes.io/logical_switch- | ||
kubectl annotate no --all ovn.kubernetes.io/mac_address- | ||
kubectl annotate no --all ovn.kubernetes.io/port_name- | ||
kubectl annotate ns --all ovn.kubernetes.io/cidr- | ||
kubectl annotate ns --all ovn.kubernetes.io/exclude_ips- | ||
kubectl annotate ns --all ovn.kubernetes.io/gateway- | ||
kubectl annotate ns --all ovn.kubernetes.io/logical_switch- | ||
kubectl annotate ns --all ovn.kubernetes.io/private- | ||
kubectl annotate ns --all ovn.kubernetes.io/allow- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters