management

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create added in v0.19.0

type Create struct {
	// contains filtered or unexported fields
}

Create is a schema for create cluster.

func NewCreate added in v0.19.0

func NewCreate(bootstrapper interfaces.Bootstrapper,
	clientFactory interfaces.ClientFactory, provider providers.Provider,
	clusterManager interfaces.ClusterManager, gitOpsManager interfaces.GitOpsManager,
	writer filewriter.FileWriter, eksdInstaller interfaces.EksdInstaller,
	packageManager interfaces.PackageManager,
	clusterCreator interfaces.ClusterCreator,
	eksaInstaller interfaces.EksaInstaller,
	mover interfaces.ClusterMover,
) *Create

NewCreate builds a new create construct.

func (*Create) Run added in v0.19.0

func (c *Create) Run(ctx context.Context, clusterSpec *cluster.Spec, validator interfaces.Validator) error

Run runs all the create management cluster tasks.

type Delete added in v0.19.0

type Delete struct {
	// contains filtered or unexported fields
}

Delete is the workflow that deletes a workload clusters.

func NewDelete added in v0.19.0

func NewDelete(bootstrapper interfaces.Bootstrapper,
	provider providers.Provider,
	writer filewriter.FileWriter,
	clusterManager interfaces.ClusterManager,
	gitopsManager interfaces.GitOpsManager,
	clusterDeleter interfaces.ClusterDeleter,
	eksdInstaller interfaces.EksdInstaller,
	eksaInstaller interfaces.EksaInstaller,
	clientFactory interfaces.ClientFactory,
	mover interfaces.ClusterMover,
) *Delete

NewDelete builds a new delete construct.

func (*Delete) Run added in v0.19.0

func (c *Delete) Run(ctx context.Context, workload *types.Cluster, clusterSpec *cluster.Spec) error

Run executes the tasks to delete a management cluster.

type UMCValidator added in v0.19.0

type UMCValidator struct {
	// contains filtered or unexported fields
}

UMCValidator is a struct that holds a cluster and a kubectl executable. It is used to perform preflight validations on the cluster.

func NewUMCValidator added in v0.19.0

func NewUMCValidator(cluster *types.Cluster, eksaRelease *v1releasealpha1.EKSARelease, kubectl validations.KubectlClient) *UMCValidator

NewUMCValidator is a constructor function that creates a new instance of UMCValidator.

func (*UMCValidator) PreflightValidations added in v0.19.0

func (u *UMCValidator) PreflightValidations(ctx context.Context) []validations.Validation

PreflightValidations is a method of the UMCValidator struct. It performs preflight validations on the cluster and returns a slice of Validation objects.

type Upgrade

type Upgrade struct {
	// contains filtered or unexported fields
}

Upgrade is a schema for upgrade cluster.

func NewUpgrade

func NewUpgrade(clientFactory interfaces.ClientFactory, provider providers.Provider,
	capiManager interfaces.CAPIManager,
	clusterManager interfaces.ClusterManager,
	gitOpsManager interfaces.GitOpsManager,
	writer filewriter.FileWriter,
	eksdUpgrader interfaces.EksdUpgrader,
	eksdInstaller interfaces.EksdInstaller,
	clusterUpgrade interfaces.ClusterUpgrader,
	packageManager interfaces.PackageManager,
) *Upgrade

NewUpgrade builds a new upgrade construct.

func (*Upgrade) Run

func (c *Upgrade) Run(ctx context.Context, clusterSpec *cluster.Spec, managementCluster *types.Cluster, validator interfaces.Validator) error

Run Upgrade implements upgrade functionality for management cluster's upgrade operation.

type UpgradeManagementComponentsWorkflow added in v0.19.0

type UpgradeManagementComponentsWorkflow struct {
	// contains filtered or unexported fields
}

UpgradeManagementComponentsWorkflow is a schema for upgrade management components.

func NewUpgradeManagementComponentsRunner added in v0.19.0

func NewUpgradeManagementComponentsRunner(
	clientFactory interfaces.ClientFactory,
	provider providers.Provider,
	capiManager interfaces.CAPIManager,
	clusterManager interfaces.ClusterManager,
	gitOpsManager interfaces.GitOpsManager,
	writer filewriter.FileWriter,
	eksdUpgrader interfaces.EksdUpgrader,
	eksdInstaller interfaces.EksdInstaller,
) *UpgradeManagementComponentsWorkflow

NewUpgradeManagementComponentsRunner builds a new UpgradeManagementCommponents construct.

func (*UpgradeManagementComponentsWorkflow) Run added in v0.19.0

func (umc *UpgradeManagementComponentsWorkflow) Run(ctx context.Context, clusterSpec *cluster.Spec, managementCluster *types.Cluster, validator interfaces.Validator) error

Run Upgrade implements upgrade functionality for management cluster's upgrade operation.

Jump to

Keyboard shortcuts

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