Documentation ¶
Index ¶
- func FilterPodWithMaxEvictionCost(pod *corev1.Pod) bool
- func GetCondition(status *sev1alpha1.PodMigrationJobStatus, ...) (int, *sev1alpha1.PodMigrationJobCondition)
- func GetMaxMigrating(replicas int, intOrPercent *intstr.IntOrString) (int, error)
- func GetMaxUnavailable(replicas int, intOrPercent *intstr.IntOrString) (int, error)
- func IsMigratePendingPod(reservationObj reservation.Object) bool
- func UpdateCondition(status *sev1alpha1.PodMigrationJobStatus, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterPodWithMaxEvictionCost ¶ added in v1.1.1
FilterPodWithMaxEvictionCost rejects if pod's eviction cost is math.MaxInt32
func GetCondition ¶
func GetCondition(status *sev1alpha1.PodMigrationJobStatus, conditionType sev1alpha1.PodMigrationJobConditionType) (int, *sev1alpha1.PodMigrationJobCondition)
func GetMaxMigrating ¶ added in v0.7.0
func GetMaxMigrating(replicas int, intOrPercent *intstr.IntOrString) (int, error)
func GetMaxUnavailable ¶ added in v0.7.0
func GetMaxUnavailable(replicas int, intOrPercent *intstr.IntOrString) (int, error)
func IsMigratePendingPod ¶
func IsMigratePendingPod(reservationObj reservation.Object) bool
func UpdateCondition ¶
func UpdateCondition(status *sev1alpha1.PodMigrationJobStatus, condition *sev1alpha1.PodMigrationJobCondition) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.