Commit c42fa7a7 authored by ethfoo's avatar ethfoo
Browse files

Fix: type assert panic when deleting pod recieve DeletedFinalStateUnknown objects

parent 98ae9bf3
Showing with 0 additions and 3 deletions
+0 -3
......@@ -262,9 +262,6 @@ func NewController(
controller.enqueue(new, EventPod, logconfigv1beta1.SelectorTypePod)
},
DeleteFunc: func(obj interface{}) {
po := obj.(*corev1.Pod)
log.Info("pod: %s/%s is deleting", po.Namespace, po.Name)
controller.enqueueForDelete(obj, EventPod, logconfigv1beta1.SelectorTypePod)
},
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment