Documentation ¶
Overview ¶
Package machineutils contains the consts and global vaariables for machine operation
Index ¶
Constants ¶
View Source
const ( // GetVMStatus sets machine status to terminating and specifies next step as getting VMs GetVMStatus = "Set machine status to termination. Now, getting VM Status" // InitiateDrain specifies next step as initiate node drain InitiateDrain = "Initiate node drain" // InitiateVMDeletion specifies next step as initiate VM deletion InitiateVMDeletion = "Initiate VM deletion" // InitiateNodeDeletion specifies next step as node object deletion InitiateNodeDeletion = "Initiate node object deletion" // InitiateFinalizerRemoval specifies next step as machine finalizer removal InitiateFinalizerRemoval = "Initiate machine object finalizer removal" // LastAppliedALTAnnotation contains the last configuration of annotations, labels & taints applied on the node object LastAppliedALTAnnotation = "node.machine.sapcloud.io/last-applied-anno-labels-taints" // MachinePriority is the annotation used to specify priority // associated with a machine while deleting it. The less its // priority the more likely it is to be deleted first // Default priority for a machine is set to 3 MachinePriority = "machinepriority.machine.sapcloud.io" // MachineClassKind is used to identify the machineClassKind for generic machineClasses MachineClassKind = "MachineClass" // MigratedMachineClass annotation helps in identifying machineClasses who have been migrated by migration controller MigratedMachineClass = "machine.sapcloud.io/migrated" // NodeUnhealthy is a node termination reason for failed machines NodeUnhealthy = "Unhealthy" // NodeScaledDown is a node termination reason for healthy deleted machines NodeScaledDown = "ScaleDown" // NodeTerminationCondition describes nodes that are terminating NodeTerminationCondition v1.NodeConditionType = "Terminating" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetryPeriod ¶ added in v0.35.0
RetryPeriod is an alias for specifying the retry period
const ( // ShortRetry tells the controller to retry after a short duration - 15 seconds ShortRetry RetryPeriod = RetryPeriod(15 * time.Second) // MediumRetry tells the controller to retry after a medium duration - 2 minutes MediumRetry RetryPeriod = RetryPeriod(3 * time.Minute) // LongRetry tells the controller to retry after a long duration - 10 minutes LongRetry RetryPeriod = RetryPeriod(10 * time.Minute) )
These are the valid values for RetryPeriod
Click to show internal directories.
Click to hide internal directories.