package
0.13.1
Repository: https://github.com/moshloop/platform-cli.git
Documentation: pkg.go.dev

# README

The code in this directory has been copied from: github.com/kubernetes/kubectl/pkg/drain@a17d91f9f5b34c73bed0bfc75b70bd762b725231

# 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 string.
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.

# Structs

CordonHelper wraps functionality to cordon/uncordon nodes.
Helper contains the parameters to control the behaviour of drainer.