deletetaint

package
v0.0.0-...-6b2d771 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ToBeDeletedTaint is a taint used to make the node unschedulable.
	ToBeDeletedTaint = "ToBeDeletedByClusterAutoscaler"
)

Variables

This section is empty.

Functions

func CleanToBeDeleted

func CleanToBeDeleted(node *apiv1.Node, client kube_client.Interface) (bool, error)

CleanToBeDeleted cleans ToBeDeleted taint.

func GetToBeDeletedTime

func GetToBeDeletedTime(node *apiv1.Node) (*time.Time, error)

GetToBeDeletedTime returns the date when the node was marked by CA as for delete.

func HasToBeDeletedTaint

func HasToBeDeletedTaint(node *apiv1.Node) bool

HasToBeDeletedTaint returns true if ToBeDeleted taint is applied on the node.

func MarkToBeDeleted

func MarkToBeDeleted(node *apiv1.Node, client kube_client.Interface) error

MarkToBeDeleted sets a taint that makes the node unschedulable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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