Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct {
Logger micrologger.Logger
}
type Detection ¶
type Detection struct {
// contains filtered or unexported fields
}
Detection is a service implementation deciding if a tenant cluster should be updated or scaled.
func (*Detection) ShouldScale ¶
ShouldScale determines whether the reconciled tenant cluster should be scaled. A tenant cluster is only allowed to scale in the following cases.
The tenant cluster's scaling max changes. The tenant cluster's scaling min changes.
func (*Detection) ShouldUpdate ¶
ShouldUpdate determines whether the reconciled tenant cluster should be updated. A tenant cluster is only allowed to update in the following cases.
The master node's instance type changes. The worker node's docker volume size changes. The worker node's instance type changes. The tenant cluster's version changes.
Click to show internal directories.
Click to hide internal directories.