maintenancewindows

package
v0.0.0-...-f40fac8 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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

func MaintenancePolicyFileExists

func MaintenancePolicyFileExists(policyFilePath string) bool

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 InitializeMaintenanceWindow

func InitializeMaintenanceWindow(log logr.Logger,
	policiesDirectory,
	policyName string,
	minWindowSize time.Duration,
) (MaintenanceWindow, error)

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)
}

Jump to

Keyboard shortcuts

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