Skip to content

Commit

Permalink
Merge pull request kubevirt#800 from davidvossel/crd-apiservice-fix
Browse files Browse the repository at this point in the history
cleanup of apiservices objects
  • Loading branch information
davidvossel authored Mar 9, 2018
2 parents ee26cda + 0e2a045 commit d6b8115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ _kubectl delete pods -n ${namespace} -l="kubevirt.io=virt-handler" --force --gra
# Delete all traces of kubevirt
namespaces=(default ${namespace})
for i in ${namespaces[@]}; do
_kubectl -n ${i} delete apiservices -l 'kubevirt.io'
_kubectl -n ${i} delete deployment -l 'kubevirt.io'
_kubectl -n ${i} delete rs -l 'kubevirt.io'
_kubectl -n ${i} delete services -l 'kubevirt.io'
_kubectl -n ${i} delete pv -l 'kubevirt.io'
_kubectl -n ${i} delete pvc -l 'kubevirt.io'
_kubectl -n ${i} delete ds -l 'kubevirt.io'
_kubectl -n ${i} delete crd -l 'kubevirt.io'
_kubectl -n ${i} delete customresourcedefinitions -l 'kubevirt.io'
_kubectl -n ${i} delete pods -l 'kubevirt.io'
_kubectl -n ${i} delete clusterrolebinding -l 'kubevirt.io'
_kubectl -n ${i} delete clusterroles -l 'kubevirt.io'
Expand Down

0 comments on commit d6b8115

Please sign in to comment.