nodepool

package
v7.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Types
	Stage = "Stage"

	// States
	DeploymentUninitialized     = ""
	ScaleUpWorkerVMSS           = "ScaleUpWorkerVMSS" // nolint:gosec
	CordonOldWorkerInstances    = "CordonOldWorkerInstances"
	DrainOldWorkerInstances     = "DrainOldWorkerInstances"
	TerminateOldWorkerInstances = "TerminateOldWorkerInstances"
	WaitForWorkersToBecomeReady = "WaitForWorkersToBecomeReady"
)
View Source
const (
	Name = "nodepool"
)

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 IsMissingOperatorVersionLabel

func IsMissingOperatorVersionLabel(err error) bool

IsMissingOperatorVersionLabel asserts missingOperatorVersionLabel.

func IsMissingOrganizationLabel

func IsMissingOrganizationLabel(err error) bool

IsMissingOrganizationLabel asserts missingOrganizationLabel.

func IsMissingReleaseVersionLabel

func IsMissingReleaseVersionLabel(err error) bool

IsMissingReleaseVersionLabel asserts missingReleaseVersionLabel.

func IsNotAvailableFailureDomain

func IsNotAvailableFailureDomain(err error) bool

IsNotAvailableFailureDomain asserts notAvailableFailureDomain.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError or 404 response.

func IsOwnerReferenceNotSet

func IsOwnerReferenceNotSet(err error) bool

IsOwnerReferenceNotSet asserts ownerReferenceNotSet.

func IsSubnetNotReadyError

func IsSubnetNotReadyError(err error) bool

IsSubnetNotReadyError asserts subnetNotReadyError.

func IsTooManyCredentialsError

func IsTooManyCredentialsError(err error) bool

IsTooManyCredentialsError asserts tooManyCredentialsError.

func IsUnexpectedUpstreamResponse

func IsUnexpectedUpstreamResponse(err error) bool

IsUnexpectedUpstreamResponse asserts unexpectedUpstreamResponseError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type Config

type Config struct {
	nodes.Config
	CredentialProvider        credential.Provider
	GSClientCredentialsConfig auth.ClientCredentialsConfig
	TenantClientFactory       tenantcluster.Factory
	VMSKU                     *vmsku.VMSKUs
}

type Resource

type Resource struct {
	nodes.Resource
	CredentialProvider credential.Provider
	// contains filtered or unexported fields
}

Resource takes care of node pool life cycle.

func New

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

func (*Resource) EnsureCreated

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

EnsureCreated will create an ARM deployment for every node pool.

func (*Resource) EnsureDeleted

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

EnsureDeleted is a noop since the deletion of deployments is redirected to the deletion of resource groups because they garbage collect them.

func (*Resource) Name

func (r *Resource) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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