Documentation
¶
Index ¶
Constants ¶
const ( DeploymentInitialized = "DeploymentInitialized" InstancesUpgrading = "InstancesUpgrading" ProvisioningSuccessful = "ProvisioningSuccessful" )
const (
Name = "instancev7"
)
const (
Stage = "Stage"
)
Variables ¶
This section is empty.
Functions ¶
func IsDeploymentNotFound ¶
IsDeploymentNotFound asserts deploymentNotFoundError.
func IsExecutionFailed ¶
IsExecutionFailed asserts executionFailedError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
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. The stages are executed one after another and the instance resource cycles through them reliably until all necessary upgrade steps are successfully processed.