code: func SplitByAvailablePods(minReadySeconds int32, pods []*v1.Pod) ([]*v1.Pod, []*v1.Pod) {
  	unavailablePods := []*v1.Pod{}
  	availablePods := []*v1.Pod{}
  	for _, pod := range pods {
  		if podutil.IsPodAvailable(pod, minReadySeconds, metav1.Now()) {
  			availablePods = append(availablePods, pod)
  		} else {
  			unavailablePods = append(unavailablePods, pod)
  		}
  	}
  	return availablePods, unavailablePods
  }
docs: // SplitByAvailablePods splits provided daemon set pods by availability