upgradevalidations

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateClusterObjectExists

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

func ValidateEksaSystemComponents

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

func ValidateImmutableFields

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

func ValidateServerVersionSkew

func ValidateServerVersionSkew(ctx context.Context, compareVersion v1alpha1.KubernetesVersion, cluster *types.Cluster, kubectl ValidationsKubectlClient) error

Types

type UpgradeValidationOpts

type UpgradeValidationOpts struct {
	Kubectl         ValidationsKubectlClient
	Spec            *cluster.Spec
	WorkloadCluster *types.Cluster
	Provider        providers.Provider
}

type UpgradeValidations

type UpgradeValidations struct {
	Opts *UpgradeValidationOpts
}

func (*UpgradeValidations) PreflightValidations

func (u *UpgradeValidations) PreflightValidations(ctx context.Context) (err error)

type ValidationError

type ValidationError struct {
	Errs []string
}

func (*ValidationError) Error

func (v *ValidationError) Error() string

type ValidationsKubectlClient

type ValidationsKubectlClient interface {
	ValidateControlPlaneNodes(ctx context.Context, cluster *types.Cluster) error
	ValidateWorkerNodes(ctx context.Context, cluster *types.Cluster) error
	ValidateNodes(ctx context.Context, kubeconfig string) error
	ValidateClustersCRD(ctx context.Context, cluster *types.Cluster) error
	Version(ctx context.Context, cluster *types.Cluster) (*executables.VersionResponse, error)
	GetClusters(ctx context.Context, cluster *types.Cluster) ([]types.CAPICluster, error)
	GetEksaCluster(ctx context.Context, cluster *types.Cluster) (*v1alpha1.Cluster, error)
	GetEksaGitOpsConfig(ctx context.Context, gitOpsConfigName string, kubeconfigFile string) (*v1alpha1.GitOpsConfig, error)
	GetEksaOIDCConfig(ctx context.Context, oidcConfigName string, kubeconfigFile string) (*v1alpha1.OIDCConfig, error)
	GetEksaVSphereDatacenterConfig(ctx context.Context, vsphereDatacenterConfigName string, kubeconfigFile string) (*v1alpha1.VSphereDatacenterConfig, error)
}

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