changedetection

package
v7.0.0-fix+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 7 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 v1alpha1.Cluster) (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

func (t *TCNP) ShouldScale(ctx context.Context, md v1alpha1.MachineDeployment) (bool, error)

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

func (t *TCNP) ShouldUpdate(ctx context.Context, md v1alpha1.MachineDeployment) (bool, error)

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