checks

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChecker

func NewChecker(ctx context.Context, config CheckerConfig) (checks.Interface, error)

NewChecker creates a checker for validating requirements of the upgrade operation.

Types

type CheckerConfig

type CheckerConfig struct {
	// ClusterOperator is the operator service of the installed cluster.
	ClusterOperator ops.Operator
	// ClusterApps is the app service of the installed cluster.
	ClusterApps app.Applications
	// UpgradeApps is the app service containing upgrade image.
	UpgradeApps app.Applications
	// UpgradePackage is the upgrade image locator.
	UpgradePackage loc.Locator
	// Agents is the agent service interface (agents must be already deployed).
	Agents rpc.AgentRepository
}

CheckerConfig is the configuration for upgrade pre-flight checker.

Jump to

Keyboard shortcuts

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