options

package
v0.0.0-...-5ae08a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL