Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
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 ¶
func (t *TCNP) ShouldScale(ctx context.Context, md infrastructurev1alpha2.AWSMachineDeployment) (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 infrastructurev1alpha2.AWSMachineDeployment) (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
}