Documentation
¶
Index ¶
- Constants
- func IsCreated(pod *corev1.Pod) bool
- func IsFailed(pod *corev1.Pod) bool
- func IsHealthy(pod *corev1.Pod) bool
- func IsPending(pod *corev1.Pod) bool
- func IsPodCondemned(pod *corev1.Pod) bool
- func IsPodCondemnedSettled(pod *corev1.Pod, now time.Time) bool
- func IsPodCordon(pod *corev1.Pod) bool
- func IsPodCordonRequested(pod *corev1.Pod) bool
- func IsRunning(pod *corev1.Pod) bool
- func IsRunningAndAvailable(pod *corev1.Pod, minReadySeconds int32) bool
- func IsRunningAndReady(pod *corev1.Pod) bool
- func IsSucceeded(pod *corev1.Pod) bool
- func IsTerminating(pod *corev1.Pod) bool
Constants ¶
const CondemnSettleWindow = 1 * time.Minute
CondemnSettleWindow is the minimum duration a newly condemned pod must remain condemned before its drained deadline is trusted for candidate evaluation.
This value needs to be greater than or equal to the async cache refresh frequency.
Variables ¶
This section is empty.
Functions ¶
func IsPodCondemned ¶ added in v1.3.0
IsPodCondemned returns true if the pod is marked as a scale-in / rolling-update deletion candidate (either as a boolean "true" or as an RFC3339 timestamp).
func IsPodCondemnedSettled ¶ added in v1.3.0
IsPodCondemnedSettled returns true if the pod is condemned and at least CondemnSettleWindow has elapsed since it was condemned (or the annotation is set to "true").
func IsPodCordon ¶
IsPodCordon returns true if and only if the cordon annotation is set to true.
func IsPodCordonRequested ¶ added in v1.3.0
IsPodCordonRequested returns true if and only if the cordon-requested annotation is set to true.
func IsRunningAndAvailable ¶
func IsRunningAndReady ¶
isRunningAndReady returns true if pod is in the PodRunning Phase, if it has a condition of PodReady.
func IsSucceeded ¶
isSucceeded returns true if pod has a Phase of PodSucceeded
func IsTerminating ¶
isTerminating returns true if pod's DeletionTimestamp has been set
Types ¶
This section is empty.