package
0.99.0-nabarun.1
Repository: https://github.com/palnabarun/kubectl.git
Documentation: pkg.go.dev

# Functions

CheckEvictionSupport uses Discovery API to find out if the server support eviction subresource If support, it will return its groupVersion; Otherwise, it will return an empty GroupVersion.
MakePodDeleteStatusOkay is a helper method to return the corresponding PodDeleteStatus.
MakePodDeleteStatusSkip is a helper method to return the corresponding PodDeleteStatus.
MakePodDeleteStatusWithError is a helper method to return the corresponding PodDeleteStatus.
MakePodDeleteStatusWithWarning is a helper method to return the corresponding PodDeleteStatus.
NewCordonHelper returns a new CordonHelper.
NewCordonHelperFromRuntimeObject returns a new CordonHelper, or an error if given object is not a node or cannot be encoded as JSON.
RunCordonOrUncordon demonstrates the canonical way to cordon or uncordon a Node.
RunNodeDrain shows the canonical way to drain a node.

# Constants

EvictionKind represents the kind of evictions object.
EvictionSubresource represents the kind of evictions object as pod's subresource.
PodDeleteStatusTypeError is "Error".
PodDeleteStatusTypeOkay is "Okay".
PodDeleteStatusTypeSkip is "Skip".
PodDeleteStatusTypeWarning is "Warning".

# Structs

CordonHelper wraps functionality to cordon/uncordon nodes.
Helper contains the parameters to control the behaviour of drainer.
PodDelete informs filtering logic whether a pod should be deleted or not.
PodDeleteList is a wrapper around []PodDelete.
PodDeleteStatus informs filters if a pod should be deleted.

# Type aliases

PodFilter takes a pod and returns a PodDeleteStatus.