Cleanup k8s jobs from test namespaces
Some tests create one-off jobs not directly with pods, but by really
starting a k8s jobs. Delete them in our cleanup paths.
@@ -1588,6 +1588,8 @@ func cleanNamespaces() {
continue
}
+ //Remove all Jobs
+ PanicOnError(virtCli.BatchV1().RESTClient().Delete().Namespace(namespace).Resource("jobs").Do().Error())
//Remove all HPA
PanicOnError(virtCli.AutoscalingV1().RESTClient().Delete().Namespace(namespace).Resource("horizontalpodautoscalers").Do().Error())
