Documentation ¶
Index ¶
- Constants
- func IsClientNotFound(err error) bool
- func IsDeploymentNotFound(err error) bool
- func IsInvalidConfig(err error) bool
- func IsMissingLabel(err error) bool
- func IsNilTemplateLinkError(err error) bool
- func IsScaleSetNotFound(err error) bool
- func IsUnableToGetTemplateError(err error) bool
- func IsVersionBlobEmpty(err error) bool
- type Config
- type Resource
- type SmallCloudconfigConfig
Constants ¶
const ( // Types Stage = "Stage" DeploymentTemplateChecksum = "TemplateChecksum" DeploymentParametersChecksum = "ParametersChecksum" // States ClusterUpgradeRequirementCheck = "ClusterUpgradeRequirementCheck" CordonOldWorkers = "CordonOldWorkers" DeploymentUninitialized = "" DeploymentInitialized = "DeploymentInitialized" DeploymentCompleted = "DeploymentCompleted" DrainOldWorkerNodes = "DrainOldWorkerNodes" MasterInstancesUpgrading = "MasterInstancesUpgrading" ProvisioningSuccessful = "ProvisioningSuccessful" ScaleUpWorkerVMSS = "ScaleUpWorkerVMSS" ScaleDownWorkerVMSS = "ScaleDownWorkerVMSS" TerminateOldWorkerInstances = "TerminateOldWorkerInstances" WaitForMastersToBecomeReady = "WaitForMastersToBecomeReady" WaitForWorkersToBecomeReady = "WaitForWorkersToBecomeReady" )
const (
Name = "instance"
)
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 IsNilTemplateLinkError ¶
func IsScaleSetNotFound ¶
IsScaleSetNotFound asserts scaleSetNotFoundError.
func IsVersionBlobEmpty ¶
IsVersionBlobEmpty asserts versionBlobEmptyError.
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) EnsureCreated ¶
EnsureCreated operates in 3 different stages which are executed sequentially. The first stage is for uploading ARM templates and is represented by stage DeploymentInitialized. The second stage is for waiting for ARM templates to be applied and is represented by stage ProvisioningSuccessful. The third stage is for draining and upgrading the VMSS instances and is represented by stage InstancesUpgrading. Once all instances are Upgraded the state becomes DeploymentCompleted and the reconciliation loop stops until a change in the ARM template or parameters is detected. Check docs/instances-stages-v13.svg file for a grafical representation of this process.
func (*Resource) EnsureDeleted ¶
Source Files ¶
- checksum.go
- create.go
- create_cluster_upgrade_requirement_check.go
- create_cordon_old_workers.go
- create_deployment_completed.go
- create_deployment_initialized.go
- create_deployment_uninitialized.go
- create_drain_old_worker_nodes.go
- create_master_instances_upgrading.go
- create_provisioning_successful.go
- create_scale_workers.go
- create_terminate_old_workers.go
- create_wait_for_nodes_to_become_ready.go
- delete.go
- deployment.go
- error.go
- resource.go
- status.go
- types.go
- workingset.go