Versions in this module Expand all Collapse all v0 v0.22.3 Sep 17, 2021 Changes in this version + const EvictionKind + const EvictionSubresource + const PodDeleteStatusTypeError + const PodDeleteStatusTypeOkay + const PodDeleteStatusTypeSkip + const PodDeleteStatusTypeWarning + func CheckEvictionSupport(clientset kubernetes.Interface) (schema.GroupVersion, error) + func RunCordonOrUncordon(drainer *Helper, node *corev1.Node, desired bool) error + func RunNodeDrain(drainer *Helper, nodeName string) error + type CordonHelper struct + func NewCordonHelper(node *corev1.Node) *CordonHelper + func NewCordonHelperFromRuntimeObject(nodeObject runtime.Object, scheme *runtime.Scheme, gvk schema.GroupVersionKind) (*CordonHelper, error) + func (c *CordonHelper) PatchOrReplace(clientset kubernetes.Interface, serverDryRun bool) (error, error) + func (c *CordonHelper) PatchOrReplaceWithContext(clientCtx context.Context, clientset kubernetes.Interface, serverDryRun bool) (error, error) + func (c *CordonHelper) UpdateIfRequired(desired bool) bool + type Helper struct + AdditionalFilters []PodFilter + ChunkSize int64 + Client kubernetes.Interface + Ctx context.Context + DeleteEmptyDirData bool + DisableEviction bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.DryRunVerifier + ErrOut io.Writer + Force bool + GracePeriodSeconds int + IgnoreAllDaemonSets bool + IgnoreErrors bool + OnPodDeletedOrEvicted func(pod *corev1.Pod, usingEviction bool) + Out io.Writer + PodSelector string + Selector string + SkipWaitForDeleteTimeoutSeconds int + Timeout time.Duration + func (d *Helper) DeleteOrEvictPods(pods []corev1.Pod) error + func (d *Helper) DeletePod(pod corev1.Pod) error + func (d *Helper) EvictPod(pod corev1.Pod, evictionGroupVersion schema.GroupVersion) error + func (d *Helper) GetPodsForDeletion(nodeName string) (*PodDeleteList, []error) + type PodDelete struct + Pod corev1.Pod + Status PodDeleteStatus + type PodDeleteList struct + func (l *PodDeleteList) Pods() []corev1.Pod + func (l *PodDeleteList) Warnings() string + type PodDeleteStatus struct + Delete bool + Message string + Reason string + func MakePodDeleteStatusOkay() PodDeleteStatus + func MakePodDeleteStatusSkip() PodDeleteStatus + func MakePodDeleteStatusWithError(message string) PodDeleteStatus + func MakePodDeleteStatusWithWarning(delete bool, message string) PodDeleteStatus + type PodFilter func(corev1.Pod) PodDeleteStatus