forked from TencentBlueKing/bk-bcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: mesos存储迁移工具 TencentBlueKing#359
- Loading branch information
Showing
5 changed files
with
473 additions
and
2 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,8 @@ | ||
#!/bin/bash | ||
objects=("versions" "admissionwebhookconfigurations" "agents" "agentschedinfos" "applications" "bcsclusteragentsettings" "bcscommandinfos" "bcsconfigmaps" "bcsendpoints" "bcssecrets" "bcsservices" "deployments" "frameworks" "taskgroups" "tasks") | ||
|
||
for o in ${objects[@]}; | ||
do | ||
ns=`kubectl get $o.v2.bkbcs.tencent.com --all-namespaces |grep -v NAMESPACE |awk '{print $1}'` | ||
for i in $ns; do kubectl delete $o.v2.bkbcs.tencent.com --all -n $i; done | ||
done |
Oops, something went wrong.