Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterPods ¶
func FilterPods(podList *corev1.PodList, predicates ...PodPredicate) *corev1.PodList
FilterPods filters a podList and returns a PodList matching the predicates
func GetPodList ¶
Get pod list on a given node matching pod predicate
Types ¶
type DeleteResult ¶
DeleteResult holds fields describing the result of a pod deletion
func DeletePods ¶
func DeletePods(c client.Client, logger logr.Logger, pl *corev1.PodList, ignoreAlreadyDeleting bool, options ...client.DeleteOption) (*DeleteResult, error)
DeletePods attempts to delete a given PodList and returns a DeleteResult and error
type PodPredicate ¶
PodPredicate is a predicate function for a given Pod
type RemoveFinalizersResult ¶
RemoveFinalizersResult is a type that describes the result of removing a finalizer
func RemoveFinalizersFromPod ¶
func RemoveFinalizersFromPod(c client.Client, logger logr.Logger, pl *corev1.PodList) (*RemoveFinalizersResult, error)
RemoveFinalizersFromPod attempts to remove the finalizers from a given PodList and returns a RemoveFinalizersResult and error
Click to show internal directories.
Click to hide internal directories.