add log on specializePod error/clean up

This commit is contained in:
Soam Vasani
2017-01-06 22:16:49 -08:00
parent 3e386fb41d
commit 0fb12af4e5
+1
View File
@@ -220,6 +220,7 @@ func (gp *GenericPool) scheduleDeletePod(name string) {
// The sleep allows debugging or collecting logs from the pod before it's
// cleaned up. (We need a better solutions for both those things; log
// aggregation and storage will help.)
log.Printf("Error in pod '%v', scheduling cleanup", name)
time.Sleep(5 * time.Minute)
gp.kubernetesClient.Core().Pods(gp.namespace).Delete(name, nil)
}()