Skip to content

Commit

Permalink
feature: mesos存储迁移工具 TencentBlueKing#359
Browse files Browse the repository at this point in the history
  • Loading branch information
zmberg committed Feb 14, 2020
1 parent 71fde78 commit bf88be4
Show file tree
Hide file tree
Showing 5 changed files with 473 additions and 2 deletions.
8 changes: 8 additions & 0 deletions bcs-mesos/bcs-migrate-data/clean.sh
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
Loading

0 comments on commit bf88be4

Please sign in to comment.