# Functions
NewDrainOptions creates a new DrainOptions struct and returns a pointer to it.
NewVolumeAttachmentHandler returns a new VolumeAttachmentHandler.
SupportEviction uses Discovery API to find out if the server support eviction subresource If support, it will return its groupVersion; Otherwise, it will return "".
# Constants
DefaultMachineDrainTimeout is the default value for MachineDrainTimeout.
EvictionKind is the kind used for eviction.
EvictionSubresource is the kind used for evicting pods.
GetPvDetailsMaxRetries is the number of max retries to get PV details.
GetPvDetailsRetryInterval is the interval in which to retry getting PV details.
Interval is the default Poll interval.
PodEvictionRetryInterval is the interval in which to retry eviction for pods.
PodsWithoutPVDrainGracePeriod defines the grace period to wait for the pods without PV during machine drain.
VolumeDetachPollInterval is the interval in which to recheck if the volume is detached from the node.
# Variables
DefaultMaxEvictRetries is the default value for MaxEvictRetries.
# Structs
Options are configurable options while draining a node before deletion.
PodVolumeInfo is the struct used to hold the PersistentVolumeID and volumeID for all the PVs attached to the pod.
VolumeAttachmentHandler is an handler used to distribute incoming VolumeAttachment requests to all listening workers.