mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
log the succussful forceful deletion
This commit is contained in:
parent
436c96527f
commit
f8dd7fe1de
@ -368,7 +368,11 @@ func (nc *NodeController) maybeDeleteTerminatingPod(obj interface{}) {
|
|||||||
|
|
||||||
func forcefullyDeletePod(c clientset.Interface, pod *api.Pod) error {
|
func forcefullyDeletePod(c clientset.Interface, pod *api.Pod) error {
|
||||||
var zero int64
|
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,
|
// monitorNodeStatus verifies node status are constantly updated by kubelet, and if not,
|
||||||
|
Loading…
Reference in New Issue
Block a user