upgradevalidations

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

SkippableValidations represents all the validations we offer for users to skip.

Functions

func ValidateClusterObjectExists

func ValidateClusterObjectExists(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error

func ValidateEksaSystemComponents

func ValidateEksaSystemComponents(ctx context.Context, k *executables.Kubectl, cluster *types.Cluster) error

func ValidateGitOpsImmutableFields added in v0.11.0

func ValidateGitOpsImmutableFields(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, clusterSpec *cluster.Spec, oldCluster *v1alpha1.Cluster) error

func ValidateImmutableFields

func ValidateImmutableFields(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, spec *cluster.Spec, provider providers.Provider) error

func ValidatePodDisruptionBudgets added in v0.16.0

func ValidatePodDisruptionBudgets(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error

ValidatePodDisruptionBudgets returns an error if any pdbs are detected on a cluster.

func ValidateServerVersionSkew

func ValidateServerVersionSkew(ctx context.Context, newCluster *anywherev1.Cluster, cluster *types.Cluster, managementCluster *types.Cluster, kubectl validations.KubectlClient) error

ValidateServerVersionSkew validates Kubernetes version skew between upgrades for the CLI.

func ValidateWorkerServerVersionSkew added in v0.17.0

func ValidateWorkerServerVersionSkew(ctx context.Context, newCluster *anywherev1.Cluster, cluster *types.Cluster, managementCluster *types.Cluster, kubectl validations.KubectlClient) error

ValidateWorkerServerVersionSkew validates worker node group Kubernetes version skew between upgrades.

Types

type UpgradeValidations

type UpgradeValidations struct {
	Opts *validations.Opts
}

func New

func (*UpgradeValidations) PreflightValidations

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

PreflightValidations returns the validations required before upgrading a cluster.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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