nodepool

package
v5.0.0-beta7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

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

	// States
	CordonOldWorkers            = "CordonOldWorkers"
	DeploymentUninitialized     = ""
	DrainOldWorkerNodes         = "DrainOldWorkerNodes"
	ScaleUpWorkerVMSS           = "ScaleUpWorkerVMSS"
	ScaleDownWorkerVMSS         = "ScaleDownWorkerVMSS"
	TerminateOldWorkerInstances = "TerminateOldWorkerInstances"
	WaitForWorkersToBecomeReady = "WaitForWorkersToBecomeReady"
)
View Source
const (
	Name = "nodepool"
)
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

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
	CtrlClient                ctrlclient.Client
	GSClientCredentialsConfig auth.ClientCredentialsConfig
	TenantClientFactory       tenantcluster.Factory
	VMSKU                     *vmsku.VMSKUs
}

type Resource

type Resource struct {
	nodes.Resource
	CredentialProvider credential.Provider
	CtrlClient         ctrlclient.Client
	// 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