Back to godoc.org
sigs.k8s.io/cluster-api / test / e2e

package e2e

v0.3.7
Latest Go to latest
Published: 1 day ago | License: Apache-2.0 | Module: sigs.k8s.io/cluster-api

Index

Package Files

Constants

const (
	KubernetesVersion            = "KUBERNETES_VERSION"
	CNIPath                      = "CNI"
	KubernetesVersionUpgradeFrom = "KUBERNETES_VERSION_UPGRADE_FROM"
	KubernetesVersionUpgradeTo   = "KUBERNETES_VERSION_UPGRADE_TO"
	EtcdVersionUpgradeTo         = "ETCD_VERSION_UPGRADE_TO"
	CoreDNSVersionUpgradeTo      = "COREDNS_VERSION_UPGRADE_TO"
)

Test suite constants for e2e config variables

func Byf

func Byf(format string, a ...interface{})

func ExperimentalFeaturesSpec

func ExperimentalFeaturesSpec(ctx context.Context, inputGetter func() ExperimentalFeaturesSpecInput)

ExperimentalFeaturesSpec implements a spec that tests experimental featured that are gated with feature gates. Once an experimental feature graduates, its test can be a separate spec.

func HaveControllerRef

func HaveControllerRef(kind string, owner metav1.Object) types.GomegaMatcher

func HaveValidVersion

func HaveValidVersion(version string) types.GomegaMatcher

HaveValidVersion succeeds if version is a valid semver version

func KCPAdoptionSpec

func KCPAdoptionSpec(ctx context.Context, inputGetter func() KCPAdoptionSpecInput)

KCPAdoptionSpec implements a test that verifies KCP to properly adopt existing control plane Machines

func KCPUpgradeSpec

func KCPUpgradeSpec(ctx context.Context, inputGetter func() KCPUpgradeSpecInput)

KCPUpgradeSpec implements a test that verifies KCP to properly upgrade a control plane with 3 machines.

func MachineDeploymentUpgradesSpec

func MachineDeploymentUpgradesSpec(ctx context.Context, inputGetter func() MachineDeploymentUpgradesSpecInput)

MachineDeploymentUpgradesSpec implements a test that verifies that MachineDeployment upgrades are successful.

func MachineRemediationSpec

func MachineRemediationSpec(ctx context.Context, inputGetter func() MachineRemediationSpecInput)

MachineRemediationSpec implements a test that verifies that Machines are remediated by MHC during unhealthy conditions.

func QuickStartSpec

func QuickStartSpec(ctx context.Context, inputGetter func() QuickStartSpecInput)

QuickStartSpec implements a spec that mimics the operation described in the Cluster API quick start, that is creating a workload cluster. This test is meant to provide a first, fast signal to detect regression; it is recommended to use it as a PR blocker test.

func SelfHostedSpec

func SelfHostedSpec(ctx context.Context, inputGetter func() SelfHostedSpecInput)

SelfHostedSpec implements a test that verifies Cluster API creating a cluster, pivoting to a self-hosted cluster.

type ClusterProxy

type ClusterProxy interface {
	framework.ClusterProxy

	ApplyWithArgs(context.Context, []byte, ...string) error
}

type ExperimentalFeaturesSpecInput

type ExperimentalFeaturesSpecInput struct {
	E2EConfig             *clusterctl.E2EConfig
	ClusterctlConfigPath  string
	BootstrapClusterProxy framework.ClusterProxy
	ArtifactFolder        string
	SkipCleanup           bool
}

ExperimentalFeaturesSpecInput is the input for ExperimentalFeaturesSpec.

type KCPAdoptionSpecInput

type KCPAdoptionSpecInput struct {
	E2EConfig             *clusterctl.E2EConfig
	ClusterctlConfigPath  string
	BootstrapClusterProxy ClusterProxy
	ArtifactFolder        string
	SkipCleanup           bool
}

KCPUpgradeSpecInput is the input for KCPUpgradeSpec.

type KCPUpgradeSpecInput

type KCPUpgradeSpecInput struct {
	E2EConfig             *clusterctl.E2EConfig
	ClusterctlConfigPath  string
	BootstrapClusterProxy framework.ClusterProxy
	ArtifactFolder        string
	SkipCleanup           bool
}

KCPUpgradeSpecInput is the input for KCPUpgradeSpec.

type MachineDeploymentUpgradesSpecInput

type MachineDeploymentUpgradesSpecInput struct {
	E2EConfig             *clusterctl.E2EConfig
	ClusterctlConfigPath  string
	BootstrapClusterProxy framework.ClusterProxy
	ArtifactFolder        string
	SkipCleanup           bool
}

MachineDeploymentUpgradesSpecInput is the input for MachineDeploymentUpgradesSpec.

type MachineRemediationSpecInput

type MachineRemediationSpecInput struct {
	E2EConfig             *clusterctl.E2EConfig
	ClusterctlConfigPath  string
	BootstrapClusterProxy framework.ClusterProxy
	ArtifactFolder        string
	SkipCleanup           bool
}

MachineRemediationSpecInput is the input for MachineRemediationSpec.

type QuickStartSpecInput

type QuickStartSpecInput struct {
	E2EConfig             *clusterctl.E2EConfig
	ClusterctlConfigPath  string
	BootstrapClusterProxy framework.ClusterProxy
	ArtifactFolder        string
	SkipCleanup           bool
}

QuickStartSpecInput is the input for QuickStartSpec.

type SelfHostedSpecInput

type SelfHostedSpecInput struct {
	E2EConfig             *clusterctl.E2EConfig
	ClusterctlConfigPath  string
	BootstrapClusterProxy framework.ClusterProxy
	ArtifactFolder        string
	SkipCleanup           bool
}

SelfHostedSpecInput is the input for SelfHostedSpec.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier