changedetection

package
v8.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type TCCP

type TCCP struct {
	// contains filtered or unexported fields
}

TCCP is a detection service implementation deciding if a tenant cluster control plane should be updated.

func NewTCCP

func NewTCCP(config TCCPConfig) (*TCCP, error)

func (*TCCP) ShouldUpdate

func (t *TCCP) ShouldUpdate(ctx context.Context, cr infrastructurev1alpha2.AWSCluster) (bool, error)

ShouldUpdate determines whether the reconciled tenant cluster control plane should be updated. A tenant cluster control plane is only allowed to update in the following cases.

The node pool's combined availability zone configuration changes.
The master node's instance type changes.
The operator's version changes.

type TCCPConfig

type TCCPConfig struct {
	Logger micrologger.Logger
}

type TCNP

type TCNP struct {
	// contains filtered or unexported fields
}

TCNP is a detection service implementation deciding if a node pool should be updated or scaled.

func NewTCNP

func NewTCNP(config TCNPConfig) (*TCNP, error)

func (*TCNP) ShouldScale

ShouldScale determines whether the reconciled tenant cluster node pool should be scaled. A tenant cluster node pool is only allowed to scale in the following cases.

The node pool's scaling max changes.
The node pool's scaling min changes.

func (*TCNP) ShouldUpdate

ShouldUpdate determines whether the reconciled tenant cluster node pool should be updated. A tenant cluster node pool is only allowed to update in the following cases.

The worker node's docker volume size changes.
The worker node's instance type changes.
The operator's version changes.

type TCNPConfig

type TCNPConfig struct {
	Logger micrologger.Logger
}

Jump to

Keyboard shortcuts

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