Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeDeleteOptions ¶
type NodeDeleteOptions struct { // SkipNodesWithSystemPods is true if nodes with kube-system pods should be // deleted (except for DaemonSet or mirror pods). SkipNodesWithSystemPods bool // SkipNodesWithLocalStorage is true if nodes with pods using local storage // (e.g. EmptyDir or HostPath) should be deleted. SkipNodesWithLocalStorage bool // SkipNodesWithCustomControllerPods is true if nodes with // custom-controller-owned pods should be skipped. SkipNodesWithCustomControllerPods bool // MinReplicaCount determines the minimum number of replicas that a replica // set or replication controller should have to allow pod deletion during // scale down. MinReplicaCount int }
NodeDeleteOptions contains various options to customize how draining will behave
func NewNodeDeleteOptions ¶
func NewNodeDeleteOptions(opts config.AutoscalingOptions) NodeDeleteOptions
NewNodeDeleteOptions returns new node delete options extracted from autoscaling options.
Click to show internal directories.
Click to hide internal directories.