package
0.0.0-20201214220738-9d39b5393368
Repository: https://github.com/planetlabs/draino.git
Documentation: pkg.go.dev

# Functions

BuildConfigFromFlags is clientcmd.BuildConfigFromFlags with no annoying dependencies on glog.
ConvertLabelsToFilterExpr Convert old list labels into new expression syntax.
EvictionHeadroom configures an amount of time to wait in addition to the MaxGracePeriod for the API server to report a pod deleted.
No description provided by the author
No description provided by the author
No description provided by the author
IsTimeout returns true if the supplied error was caused by a timeout.
LocalStoragePodFilter returns true if the supplied pod does not have local storage, i.e.
MaxGracePeriod configures the maximum time to wait for a pod eviction.
MirrorPodFilter returns true if the supplied pod is not a mirror pod, i.e.
No description provided by the author
NewAPICordonDrainer returns a CordonDrainer that cordons and drains nodes via the Kubernetes API.
NewDaemonSetPodFilter returns a FilterFunc that returns true if the supplied pod is not managed by an extant DaemonSet.
NewDrainingResourceEventHandler returns a new DrainingResourceEventHandler.
No description provided by the author
NewEventRecorder returns a new record.EventRecorder for the given client.
NewNodeLabelFilter returns a filter that returns true if the supplied node satisfies the boolean expression.
NewNodeProcessed returns a new node processed filter.
NewNodeWatch creates a watch on node resources.
NewPodFilters returns a FilterFunc that returns true if all of the supplied FilterFuncs return true.
NewStatefulSetPodFilter returns a FilterFunc that returns true if the supplied pod is not managed by an extant StatefulSet.
ParseConditions can parse the string array of conditions to a list of SuppliedContion to support particular status value and duration.
No description provided by the author
UnprotectedPodFilter returns a FilterFunc that returns true if the supplied pod does not have any of the user-specified annotations for protection from eviction.
UnreplicatedPodFilter returns true if the pod is replicated, i.e.
WithAPICordonDrainerLogger configures a APICordonDrainer to use the supplied logger.
WithConditionsFilter configures which conditions should be handled.
WithDrainBuffer configures the minimum time between scheduled drains.
WithLogger configures a DrainingResourceEventHandler to use the supplied logger.
WithPodFilter configures a filter that may be used to exclude certain pods from eviction when draining.
WithDrain determines if we're actually going to drain nodes.

# Constants

Component is the name of this application.
Default pod eviction settings.
DefaultDrainBuffer is the default minimum time between node drains.
Default pod eviction settings.
Default pod eviction settings.
Default pod eviction settings.
No description provided by the author
No description provided by the author

# Variables

Opencensus measurements.
Opencensus measurements.
Opencensus measurements.
Opencensus measurements.
Opencensus measurements.
Opencensus measurements.

# Structs

No description provided by the author
APICordonDrainer drains Kubernetes nodes via the Kubernetes API.
A DrainingResourceEventHandler cordons and drains any added or updated nodes.
No description provided by the author
An NodeWatch is a cache of node resources that notifies registered handlers when its contents change.
A NoopCordonDrainer does nothing.
SuppliedCondition defines the condition will be watched.

# Interfaces

A CordonDrainer both cordons and drains nodes!.
A Cordoner cordons nodes.
A Drainer drains nodes.
No description provided by the author
An NodeStore is a cache of node resources.

# Type aliases

APICordonDrainerOption configures an APICordonDrainer.
DrainingResourceEventHandlerOption configures an DrainingResourceEventHandler.
NodeProcessed tracks whether nodes have been processed before using a map.
A PodFilterFunc returns true if the supplied pod passes the filter.