cluster-api: sigs.k8s.io/cluster-api/test/e2e Index | Files | Directories

package e2e

import "sigs.k8s.io/cluster-api/test/e2e"

Index

Package Files

common.go custom_assertions.go k8s_conformance.go kcp_adoption.go kcp_upgrade.go md_upgrades.go mhc_remediations.go node_drain_timeout.go quick_start.go self_hosted.go

Constants

const (
    KubernetesVersion            = "KUBERNETES_VERSION"
    CNIPath                      = "CNI"
    CNIResources                 = "CNI_RESOURCES"
    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 Uses

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

func HaveControllerRef Uses

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

func HaveValidVersion Uses

func HaveValidVersion(version string) types.GomegaMatcher

HaveValidVersion succeeds if version is a valid semver version

func K8SConformanceSpec Uses

func K8SConformanceSpec(ctx context.Context, inputGetter func() K8SConformanceSpecInput)

K8SConformanceSpec implements a spec that creates a cluster and runs Kubernetes conformance suite.

func KCPAdoptionSpec Uses

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

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

func KCPUpgradeSpec Uses

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 Uses

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

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

func MachineRemediationSpec Uses

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

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

func NodeDrainTimeoutSpec Uses

func NodeDrainTimeoutSpec(ctx context.Context, inputGetter func() NodeDrainTimeoutSpecInput)

func QuickStartSpec Uses

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 Uses

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 Uses

type ClusterProxy interface {
    framework.ClusterProxy

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

type K8SConformanceSpecInput Uses

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

K8SConformanceSpecInput is the input for K8SConformanceSpec.

type KCPAdoptionSpecInput Uses

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

KCPUpgradeSpecInput is the input for KCPUpgradeSpec.

type KCPUpgradeSpecInput Uses

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

KCPUpgradeSpecInput is the input for KCPUpgradeSpec.

type MachineDeploymentUpgradesSpecInput Uses

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

MachineDeploymentUpgradesSpecInput is the input for MachineDeploymentUpgradesSpec.

type MachineRemediationSpecInput Uses

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

MachineRemediationSpecInput is the input for MachineRemediationSpec.

type NodeDrainTimeoutSpecInput Uses

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

NodeDrainTimeoutInput is the input for NodeDrainTimeoutSpec.

type QuickStartSpecInput Uses

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

QuickStartSpecInput is the input for QuickStartSpec.

type SelfHostedSpecInput Uses

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

SelfHostedSpecInput is the input for SelfHostedSpec.

Directories

PathSynopsis
internal/log

Package e2e imports 26 packages (graph). Updated 2021-01-22. Refresh now. Tools for package owners.