Documentation ¶
Index ¶
- Constants
- func IsClientNotFound(err error) bool
- func IsDeploymentNotFound(err error) bool
- func IsMissingOperatorVersionLabel(err error) bool
- func IsMissingOrganizationLabel(err error) bool
- func IsMissingReleaseVersionLabel(err error) bool
- func IsNotAvailableFailureDomain(err error) bool
- func IsNotFound(err error) bool
- func IsOwnerReferenceNotSet(err error) bool
- func IsSubnetNotReadyError(err error) bool
- func IsTooManyCredentialsError(err error) bool
- func IsUnexpectedUpstreamResponse(err error) bool
- func IsWrongTypeError(err error) bool
- type Config
- type Resource
Constants ¶
const ( // Types Stage = "Stage" // States CordonOldWorkers = "CordonOldWorkers" DeploymentUninitialized = "" DrainOldWorkerNodes = "DrainOldWorkerNodes" ScaleUpWorkerVMSS = "ScaleUpWorkerVMSS" ScaleDownWorkerVMSS = "ScaleDownWorkerVMSS" TerminateOldWorkerInstances = "TerminateOldWorkerInstances" WaitForWorkersToBecomeReady = "WaitForWorkersToBecomeReady" )
const (
Name = "nodepool"
)
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 IsMissingOperatorVersionLabel ¶
IsMissingOperatorVersionLabel asserts missingOperatorVersionLabel.
func IsMissingOrganizationLabel ¶
IsMissingOrganizationLabel asserts missingOrganizationLabel.
func IsMissingReleaseVersionLabel ¶
IsMissingReleaseVersionLabel asserts missingReleaseVersionLabel.
func IsNotAvailableFailureDomain ¶
IsNotAvailableFailureDomain asserts notAvailableFailureDomain.
func IsOwnerReferenceNotSet ¶
IsOwnerReferenceNotSet asserts ownerReferenceNotSet.
func IsSubnetNotReadyError ¶
IsSubnetNotReadyError asserts subnetNotReadyError.
func IsTooManyCredentialsError ¶
IsTooManyCredentialsError asserts tooManyCredentialsError.
func IsUnexpectedUpstreamResponse ¶
IsUnexpectedUpstreamResponse asserts unexpectedUpstreamResponseError.
func IsWrongTypeError ¶
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 (*Resource) EnsureCreated ¶
EnsureCreated will create an ARM deployment for every node pool.
func (*Resource) EnsureDeleted ¶
EnsureDeleted is a noop since the deletion of deployments is redirected to the deletion of resource groups because they garbage collect them.