Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPodAvailable ¶
func IsPodAvailable(pod *corev1.Pod, minReadySeconds int32, now metav1.Time) bool
IsPodAvailable returns true if a pod is available; false otherwise. Precondition for an available pod is that it must be ready. On top of that, there are two cases when a pod can be considered available: 1. minReadySeconds == 0, or 2. LastTransitionTime (is set) + minReadySeconds < current time
func IsPodReady ¶
func IsPodReady(pod *corev1.Pod) bool
IsPodReady returns true if a pod is ready; false otherwise.
Types ¶
type ActivePods ¶
type ActivePods []*corev1.Pod
ActivePods type allows custom sorting of pods so a controller can pick the best ones to delete.
Click to show internal directories.
Click to hide internal directories.