log the succussful forceful deletion

This commit is contained in:
Chao Xu 2016-03-02 11:18:55 -08:00
parent 436c96527f
commit f8dd7fe1de

View File

@ -368,7 +368,11 @@ func (nc *NodeController) maybeDeleteTerminatingPod(obj interface{}) {
func forcefullyDeletePod(c clientset.Interface, pod *api.Pod) error {
var zero int64
return c.Core().Pods(pod.Namespace).Delete(pod.Name, &api.DeleteOptions{GracePeriodSeconds: &zero})
err := c.Core().Pods(pod.Namespace).Delete(pod.Name, &api.DeleteOptions{GracePeriodSeconds: &zero})
if err == nil {
glog.V(2).Infof("forceful deletion of %s succeeded", pod.Name)
}
return err
}
// monitorNodeStatus verifies node status are constantly updated by kubelet, and if not,