action

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpgradeChecker

type UpgradeChecker[G client.Object] interface {
	CanUpgrade(context.Context, G) bool
}

func NewUpgradeChecker

func NewUpgradeChecker[
	S scope.Group[F, T],
	F client.Object,
	T runtime.Group,
](cli client.Client, cluster *v1alpha1.Cluster, logger logr.Logger) UpgradeChecker[F]

type UpgradePolicy

type UpgradePolicy[
	G client.Object,
] interface {
	ArePreconditionsMet(ctx context.Context, cli client.Client, group G) (bool, error)
}

func NewDefault

func NewDefault[
	S scope.Group[F, T],
	F client.Object,
	T runtime.Group,
]() UpgradePolicy[F]

func NewNoConstraints

func NewNoConstraints[G client.Object]() UpgradePolicy[G]

Jump to

Keyboard shortcuts

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