e2e

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneratorTypeGo     = 1
	GeneratorTypeYAML   = 2
	GeneratorTypeGitHub = 3
)

Variables

View Source
var (
	Infrastructures = map[string]Infra{
		"aws_default": {
			// contains filtered or unexported fields
		},
		"aws_default_stable": {
			// contains filtered or unexported fields
		},
		"aws_ubuntu_previous_lts": {
			// contains filtered or unexported fields
		},
		"aws_rhel": {
			// contains filtered or unexported fields
		},
		"aws_rhel_stable": {
			// contains filtered or unexported fields
		},
		"aws_rockylinux": {
			// contains filtered or unexported fields
		},
		"aws_rockylinux_stable": {
			// contains filtered or unexported fields
		},
		"aws_flatcar": {
			// contains filtered or unexported fields
		},
		"aws_flatcar_stable": {
			// contains filtered or unexported fields
		},
		"aws_flatcar_cloud_init": {
			// contains filtered or unexported fields
		},
		"aws_flatcar_cloud_init_stable": {
			// contains filtered or unexported fields
		},
		"aws_amzn": {
			// contains filtered or unexported fields
		},
		"aws_amzn_stable": {
			// contains filtered or unexported fields
		},
		"aws_long_timeout_default": {
			// contains filtered or unexported fields
		},
		"azure_default": {
			// contains filtered or unexported fields
		},
		"azure_default_stable": {
			// contains filtered or unexported fields
		},
		"azure_flatcar": {
			// contains filtered or unexported fields
		},
		"azure_flatcar_stable": {
			// contains filtered or unexported fields
		},
		"azure_rhel": {
			// contains filtered or unexported fields
		},
		"azure_rhel_stable": {
			// contains filtered or unexported fields
		},
		"azure_rockylinux": {
			// contains filtered or unexported fields
		},
		"azure_rockylinux_stable": {
			// contains filtered or unexported fields
		},
		"digitalocean_default": {
			// contains filtered or unexported fields
		},
		"digitalocean_default_stable": {
			// contains filtered or unexported fields
		},
		"digitalocean_rockylinux": {
			// contains filtered or unexported fields
		},
		"digitalocean_rockylinux_stable": {
			// contains filtered or unexported fields
		},
		"equinixmetal_default": {
			// contains filtered or unexported fields
		},
		"equinixmetal_default_stable": {
			// contains filtered or unexported fields
		},
		"equinixmetal_rockylinux": {
			// contains filtered or unexported fields
		},
		"equinixmetal_rockylinux_stable": {
			// contains filtered or unexported fields
		},
		"equinixmetal_flatcar": {
			// contains filtered or unexported fields
		},
		"equinixmetal_flatcar_stable": {
			// contains filtered or unexported fields
		},
		"gce_default": {
			// contains filtered or unexported fields
		},
		"gce_default_stable": {
			// contains filtered or unexported fields
		},
		"hetzner_default": {
			// contains filtered or unexported fields
		},
		"hetzner_default_stable": {
			// contains filtered or unexported fields
		},
		"hetzner_rockylinux": {
			// contains filtered or unexported fields
		},
		"hetzner_rockylinux_stable": {
			// contains filtered or unexported fields
		},
		"openstack_default": {
			// contains filtered or unexported fields
		},
		"openstack_default_stable": {
			// contains filtered or unexported fields
		},
		"openstack_rockylinux": {
			// contains filtered or unexported fields
		},
		"openstack_rockylinux_stable": {
			// contains filtered or unexported fields
		},
		"openstack_rhel": {
			// contains filtered or unexported fields
		},
		"openstack_rhel_stable": {
			// contains filtered or unexported fields
		},
		"openstack_flatcar": {
			// contains filtered or unexported fields
		},
		"openstack_flatcar_stable": {
			// contains filtered or unexported fields
		},

		"vsphere_default": {
			// contains filtered or unexported fields
		},
		"vsphere_default_stable": {
			// contains filtered or unexported fields
		},
		"vsphere_flatcar": {
			// contains filtered or unexported fields
		},
		"vsphere_flatcar_stable": {
			// contains filtered or unexported fields
		},
	}

	Scenarios = map[string]Scenario{

		"install_containerd": &scenarioInstall{
			Name:                 "install_containerd",
			HumanReadableName:    "Cluster Provisioning (In-Tree)",
			ManifestTemplatePath: "testdata/containerd_simple.yaml",
		},

		"install_containerd_external": &scenarioInstall{
			Name:                 "install_containerd_external",
			HumanReadableName:    "Cluster Provisioning (External)",
			ManifestTemplatePath: "testdata/containerd_simple_external.yaml",
		},
		"upgrade_containerd_external": &scenarioUpgrade{
			Name:                 "upgrade_containerd_external",
			HumanReadableName:    "Cluster Upgrading (External)",
			ManifestTemplatePath: "testdata/containerd_simple_external_v1beta2.yaml",
		},
		"conformance_containerd_external": &scenarioConformance{
			Name:                 "conformance_containerd_external",
			HumanReadableName:    "Cluster Conformance (External)",
			ManifestTemplatePath: "testdata/containerd_simple_external.yaml",
		},

		"calico_containerd_external": &scenarioInstall{
			Name:                 "calico_containerd_external",
			HumanReadableName:    "Cluster Provisioning (External, Calico)",
			ManifestTemplatePath: "testdata/containerd_calico_external.yaml",
		},
		"cilium_containerd_external": &scenarioInstall{
			Name:                 "cilium_containerd_external",
			HumanReadableName:    "Cluster Provisioning (External, Cilium)",
			ManifestTemplatePath: "testdata/containerd_cilium_external.yaml",
		},
		"upgrade_cilium_containerd_external": &scenarioUpgrade{
			Name:                 "upgrade_cilium_containerd_external",
			HumanReadableName:    "Cluster Upgrading (External, Calico)",
			ManifestTemplatePath: "testdata/containerd_cilium_external_v1beta2.yaml",
		},
		"kube_proxy_ipvs_external": &scenarioInstall{
			Name:                 "kube_proxy_ipvs_external",
			HumanReadableName:    "Cluster Provisioning (External, kube-proxy IPVS)",
			ManifestTemplatePath: "testdata/kube_proxy_ipvs_external.yaml",
		},
		"csi_ccm_migration": &scenarioMigrateCSIAndCCM{
			Name:                    "csi_ccm_migration",
			OldManifestTemplatePath: "testdata/containerd_simple.yaml",
			HumanReadableName:       "CCM/CSI Migration",
			NewManifestTemplatePath: "testdata/containerd_simple_external.yaml",
		},
		"external_cni_flannel_helm_chart": &scenarioInstall{
			Name:                 "external_cni_flannel_helm_chart",
			HumanReadableName:    "CCM/CSI Migration",
			ManifestTemplatePath: "testdata/containerd_flannel_helm_external.yaml",
		},
	}
)
View Source
var SonobuoyRetry = wait.Backoff{
	Steps:    10,
	Duration: 10 * time.Second,
	Factor:   1.0,
	Jitter:   0.1,
}

Functions

func NewSignalContext added in v1.5.1

func NewSignalContext(logger func(format string, args ...any)) context.Context

func PullProwJobName added in v1.9.0

func PullProwJobName(in ...string) string

Types

type GeneratorType added in v1.5.1

type GeneratorType int

type Infra added in v1.5.1

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

func (Infra) DiscludeFromIssue added in v1.9.0

func (i Infra) DiscludeFromIssue() bool

func (Infra) OperatingSystem added in v1.9.0

func (i Infra) OperatingSystem() string

func (Infra) Provider added in v1.5.1

func (i Infra) Provider() string

type ProwConfig added in v1.5.1

type ProwConfig struct {
	AlwaysRun    bool
	RunIfChanged string
	Optional     bool
	Environ      map[string]string
}

type ProwDecorationConfig added in v1.8.4

type ProwDecorationConfig struct {
	Timeout string `json:"timeout,omitempty"`
}

type ProwJob added in v1.5.1

type ProwJob struct {
	Name             string                `json:"name"`
	AlwaysRun        bool                  `json:"always_run"`
	RunIfChanged     string                `json:"run_if_changed,omitempty"`
	Optional         bool                  `json:"optional"`
	Decorate         bool                  `json:"decorate"`
	DecorationConfig *ProwDecorationConfig `json:"decoration_config,omitempty"`
	CloneURI         string                `json:"clone_uri"`
	PathAlias        string                `json:"path_alias,omitempty"`
	Labels           map[string]string     `json:"labels,omitempty"`
	ExtraRefs        []ProwRef             `json:"extra_refs,omitempty"`
	Spec             *corev1.PodSpec       `json:"spec"`
}

type ProwRef added in v1.5.1

type ProwRef struct {
	Org       string `json:"org"`
	Repo      string `json:"repo"`
	BaseRef   string `json:"base_ref,omitempty"`
	PathAlias string `json:"path_alias,omitempty"`
}

type Scenario added in v1.5.1

type Scenario interface {
	GetHumanReadableName() string
	SetInfra(infrastructure Infra)
	SetVersions(versions ...string)
	FetchVersions() error
	GenerateTests(output io.Writer, testType GeneratorType, cfg ProwConfig) error
	Run(context.Context, *testing.T)
}

type ScenarioStable added in v1.6.0

type ScenarioStable interface {
	SetInitKubeOneVersion(version string)
}

Jump to

Keyboard shortcuts

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