Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoMaintenanceWindowPolicyConfigured = errors.New("no maintenance window policy configured") ErrPolicyFileNotFound = errors.New("maintenance window policy file not found") )
Functions ¶
Types ¶
type MaintenanceWindow ¶
type MaintenanceWindow struct { // make this private once we refactor the API // https://github.com/kyma-project/lifecycle-manager/issues/2190 MaintenanceWindowPolicy MaintenanceWindowPolicy // contains filtered or unexported fields }
func (MaintenanceWindow) IsActive ¶
func (mw MaintenanceWindow) IsActive(kyma *v1beta2.Kyma) (bool, error)
IsActive determines if a maintenance window is currently active.
func (MaintenanceWindow) IsRequired ¶
func (MaintenanceWindow) IsRequired(moduleTemplate *v1beta2.ModuleTemplate, kyma *v1beta2.Kyma) bool
IsRequired determines if a maintenance window is required to update the given module.
type MaintenanceWindowPolicy ¶
type MaintenanceWindowPolicy interface {
Resolve(runtime *resolver.Runtime, opts ...interface{}) (*resolver.ResolvedWindow, error)
}
Click to show internal directories.
Click to hide internal directories.