Documentation ¶
Index ¶
- Constants
- func CleanAllDeletionCandidates(nodes []*apiv1.Node, client kube_client.Interface, ...)
- func CleanAllToBeDeleted(nodes []*apiv1.Node, client kube_client.Interface, ...)
- func CleanDeletionCandidate(node *apiv1.Node, client kube_client.Interface) (bool, error)
- func CleanToBeDeleted(node *apiv1.Node, client kube_client.Interface) (bool, error)
- func GetDeletionCandidateTime(node *apiv1.Node) (*time.Time, error)
- func GetToBeDeletedTime(node *apiv1.Node) (*time.Time, error)
- func HasDeletionCandidateTaint(node *apiv1.Node) bool
- func HasToBeDeletedTaint(node *apiv1.Node) bool
- func MarkDeletionCandidate(node *apiv1.Node, client kube_client.Interface) error
- func MarkToBeDeleted(node *apiv1.Node, client kube_client.Interface) error
Constants ¶
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 ¶
CleanDeletionCandidate cleans CA's soft NoSchedule taint from a node.
func CleanToBeDeleted ¶
CleanToBeDeleted cleans CA's NoSchedule taint from a node.
func GetDeletionCandidateTime ¶
GetDeletionCandidateTime returns the date when the node was marked by CA as for delete.
func GetToBeDeletedTime ¶
GetToBeDeletedTime returns the date when the node was marked by CA as for delete.
func HasDeletionCandidateTaint ¶
HasDeletionCandidateTaint returns true if DeletionCandidate taint is applied on the node.
func HasToBeDeletedTaint ¶
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.