Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProvisioningStateFailed = "Failed" ProvisioningStateSucceeded = "Succeeded" )
View Source
const ( // Types Stage = "Stage" DeploymentTemplateChecksum = "TemplateChecksum" DeploymentParametersChecksum = "ParametersChecksum" // States ClusterUpgradeRequirementCheck = "ClusterUpgradeRequirementCheck" CordonOldWorkers = "CordonOldWorkers" CordonOldVMSS = "CordonOldVMSS" DeploymentUninitialized = "" DeploymentInitialized = "DeploymentInitialized" DeploymentCompleted = "DeploymentCompleted" DrainOldVMSS = "DrainOldVMSS" DrainOldWorkerNodes = "DrainOldWorkerNodes" ProvisioningSuccessful = "ProvisioningSuccessful" ScaleUpWorkerVMSS = "ScaleUpWorkerVMSS" ScaleDownWorkerVMSS = "ScaleDownWorkerVMSS" TerminateOldVMSS = "TerminateOldVMSS" TerminateOldWorkerInstances = "TerminateOldWorkerInstances" WaitForWorkersToBecomeReady = "WaitForWorkersToBecomeReady" WaitNewVMSSWorkers = "WaitNewVMSSWorkers" )
View Source
const (
Name = "instance"
)
View Source
const ( // UnschedulablePatch is the JSON patch structure being applied to nodes using // a strategic merge patch in order to cordon them. UnschedulablePatch = `{"spec":{"unschedulable":true}}` )
Variables ¶
This section is empty.
Functions ¶
func IsClientNotFound ¶
IsClientNotFound asserts clientNotFoundError.
func IsDeploymentNotFound ¶
IsDeploymentNotFound asserts deploymentNotFoundError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsScaleSetNotFound ¶
IsScaleSetNotFound asserts scaleSetNotFoundError.
func IsVersionBlobEmpty ¶
IsVersionBlobEmpty asserts versionBlobEmptyError.
Types ¶
type Config ¶
type Config struct { Debugger *debugger.Debugger G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger Azure setting.Azure InstanceWatchdog vmsscheck.InstanceWatchdog TemplateVersion string }
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) EnsureCreated ¶
This resource applies the ARM template for the worker instances, monitors the process and handles upgrades.
func (*Resource) EnsureDeleted ¶
Source Files ¶
- create.go
- create_cluster_upgrade_requirement_check.go
- create_cordon_old_vmss_transition.go
- create_cordon_old_workers.go
- create_deployment_completed.go
- create_deployment_initialized.go
- create_deployment_uninitialized.go
- create_drain_old_vmss.go
- create_drain_old_worker_nodes.go
- create_provisioning_successful.go
- create_scale_workers.go
- create_terminate_old_vmss.go
- create_terminate_old_workers.go
- create_wait_for_nodes_to_become_ready.go
- create_wait_new_vmss_workers.go
- delete.go
- deployment.go
- error.go
- resource.go
- status.go
Click to show internal directories.
Click to hide internal directories.