Handle cleanup of apiservices objects
@@ -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'
