deletetaint

package
v0.0.0-...-0a82f0e Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ToBeDeletedTaint is a taint used to make the node unschedulable.
	ToBeDeletedTaint = "ToBeDeletedByClusterAutoscaler"
	// DeletionCandidateTaint is a taint used to mark unneeded node as preferably unschedulable.
	DeletionCandidateTaint = "DeletionCandidateOfClusterAutoscaler"
)

Variables

This section is empty.

Functions

func CleanAllDeletionCandidates

func CleanAllDeletionCandidates(nodes []*apiv1.Node, client kube_client.Interface, recorder kube_record.EventRecorder)

CleanAllDeletionCandidates cleans DeletionCandidate taints from given nodes.

func CleanAllToBeDeleted

func CleanAllToBeDeleted(nodes []*apiv1.Node, client kube_client.Interface, recorder kube_record.EventRecorder)

CleanAllToBeDeleted cleans ToBeDeleted taints from given nodes.

func CleanDeletionCandidate

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

CleanDeletionCandidate cleans CA's soft NoSchedule taint from a node.

func CleanToBeDeleted

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

CleanToBeDeleted cleans CA's NoSchedule taint from a node.

func GetDeletionCandidateTime

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

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

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 HasDeletionCandidateTaint

func HasDeletionCandidateTaint(node *apiv1.Node) bool

HasDeletionCandidateTaint returns true if DeletionCandidate taint is applied on the node.

func HasToBeDeletedTaint

func HasToBeDeletedTaint(node *apiv1.Node) bool

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

func MarkDeletionCandidate

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

MarkDeletionCandidate sets a soft taint that makes the node preferably unschedulable.

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