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" // InstanceInitialization is a step that represents initialization of a VM instance (post-creation). InstanceInitialization = "Initialize VM Instance" // InitiateDrain specifies next step as initiate node drain InitiateDrain = "Initiate node drain" // DelVolumesAttachments specifies next step as deleting volume attachments DelVolumesAttachments = "Delete Volume Attachments" // 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" // NotManagedByMCM annotation helps in identifying the nodes which are not handled by MCM NotManagedByMCM = "node.machine.sapcloud.io/not-managed-by-mcm" // TriggerDeletionByMCM annotation on the node would trigger the deletion of the corresponding machine object in the control cluster TriggerDeletionByMCM = "node.machine.sapcloud.io/trigger-deletion-by-mcm" // 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" // TaintNodeCriticalComponentsNotReady is the name of a gardener taint // indicating that a node is not yet ready to have user workload scheduled TaintNodeCriticalComponentsNotReady = "node.gardener.cloud/critical-components-not-ready" // MachineLabelKey defines the labels which contains the name of the machine of a node MachineLabelKey = "node.gardener.cloud/machine-name" )
Variables ¶
View Source
var EssentialTaints = []string{TaintNodeCriticalComponentsNotReady}
EssentialTaints are taints on node object which if added/removed, require an immediate reconcile by machine controller TODO: update this when taints for ALT updation and PostCreate operations is introduced.
Functions ¶
This section is empty.
Types ¶
type RetryPeriod ¶ added in v0.35.0
RetryPeriod is an alias for specifying the retry period
const ( // ConflictRetry tells the controller to retry quickly - 200 milliseconds ConflictRetry RetryPeriod = RetryPeriod(200 * time.Millisecond) // ShortRetry tells the controller to retry after a short duration - 15 seconds ShortRetry RetryPeriod = RetryPeriod(5 * 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.