masters

package
v4.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PowerStateLabelPrefix = "PowerState/"
	PowerStateDeallocated = "PowerState/deallocated"
)
View Source
const (
	// Types
	Stage                        = "Stage"
	DeploymentTemplateChecksum   = "TemplateChecksum"
	DeploymentParametersChecksum = "ParametersChecksum"

	// States
	BlockAPICalls                  = "BlockAPICalls"
	CheckFlatcarMigrationNeeded    = "CheckFlatcarMigrationNeeded"
	ClusterUpgradeRequirementCheck = "ClusterUpgradeRequirementCheck"
	DeallocateLegacyInstance       = "DeallocateLegacyInstance"
	DeleteLegacyVMSS               = "DeleteLegacyVMSS"
	DeploymentUninitialized        = "DeploymentUninitialized"
	DeploymentInitialized          = "DeploymentInitialized"
	DeploymentCompleted            = "DeploymentCompleted"
	Empty                          = ""
	ManualInterventionRequired     = "ManualInterventionRequired"
	MasterInstancesUpgrading       = "MasterInstancesUpgrading"
	ProvisioningSuccessful         = "ProvisioningSuccessful"
	RestartKubeletOnWorkers        = "RestartKubeletOnWorkers"
	UnblockAPICalls                = "UnblockAPICalls"
	WaitForBackupConfirmation      = "WaitForBackupConfirmation"
	WaitForMastersToBecomeReady    = "WaitForMastersToBecomeReady"
	WaitForRestore                 = "WaitForRestore"
)
View Source
const (
	Name = "masters"
)

Variables

This section is empty.

Functions

func IsClientNotFound

func IsClientNotFound(err error) bool

IsClientNotFound asserts clientNotFoundError.

func IsDeploymentNotFound

func IsDeploymentNotFound(err error) bool

IsDeploymentNotFound asserts deploymentNotFoundError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsMissingLabel

func IsMissingLabel(err error) bool

IsMissingLabel asserts missingLabelError.

func IsNotFound

func IsNotFound(err error) bool

func IsScaleSetNotFound

func IsScaleSetNotFound(err error) bool

IsScaleSetNotFound asserts scaleSetNotFoundError.

func IsVersionBlobEmpty

func IsVersionBlobEmpty(err error) bool

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 New

func New(config Config) (*Resource, error)

func (*Resource) EnsureCreated

func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error

This resource applies the ARM template for the master instances, monitors the process and handles upgrades.

func (*Resource) EnsureDeleted

func (r *Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

func (*Resource) Name

func (r *Resource) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL