Skip to content

Commit

Permalink
Handle cleanup of apiservices objects
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed Mar 8, 2018
1 parent f98e73b commit 0e2a045
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 0e2a045

Please sign in to comment.