func (o *DrainCmdOptions) onPodDeletedOrEvicted(pod *corev1.Pod, usingEviction bool) {
	var verbStr string
	if usingEviction {
		verbStr = "evicted"
	} else {
		verbStr = "deleted"
	}
	printObj, err := o.ToPrinter(verbStr)
	if err != nil {
		fmt.Fprintf(o.ErrOut, "error building printer: %v\n", err)
		fmt.Fprintf(o.Out, "pod %s/%s %s\n", pod.Namespace, pod.Name, verbStr)
	} else {
		printObj(pod, o.Out)
	}
}
// onPodDeletedOrEvicted is called by drain.Helper, when the pod has been deleted or evicted
onPodDeletedOrEvicted is called by drain.Helper, when the pod has been deleted or evicted
// onPodDeletedOrEvicted is called by drain . Helper when the pod has been deleted or evicted
func (o *DrainCmdOptions) onPodDeletedOrEvicted(pod *corev1.Pod, usingEviction bool) {
	var verbStr string
	if usingEviction {
		verbStr = "evicted"
	} else {
		verbStr = "deleted"
	}
	printObj, err := o.ToPrinter(verbStr)
	if err != nil {
		fmt.Fprintf(o.ErrOut, "error building printer: %v\n", err)
		fmt.Fprintf(o.Out, "pod %s/%s %s\n", pod.Namespace, pod.Name, verbStr)
	} else {
		printObj(pod, o.Out)
	}
}
func ( o * DrainCmdOptions ) onPodDeletedOrEvicted ( pod * corev1 . Pod , usingEviction bool ) { var verbStr string if usingEviction { verbStr = " " } else { verbStr = " " } printObj , err := o . ToPrinter ( verbStr ) if err != nil { fmt . Fprintf ( o . ErrOut , " \n " , err ) fmt . Fprintf ( o . Out , " \n " , pod . Namespace , pod . Name , verbStr ) } else { printObj ( pod , o . Out ) } }
onPodDeletedOrEvicted is called by drain.Helper, when the pod has been deleted or evicted
onPodDeletedOrEvicted is called by drain . Helper when the pod has been deleted or evicted