kubetest

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Overview

Package kubetest implmements kubetest functionality.

Index

Constants

View Source
const (
	DefaultGinkgoNodes            = 1
	DefaultGinkoSlowSpecThreshold = 120
)

Export Ginkgo constants.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, input RunInput) error

Run executes kube-test given an artifact directory, and sets settings required for kubetest to work with Cluster API. JUnit files are also gathered for inclusion in Prow.

Types

type RunInput

type RunInput struct {
	// ClusterProxy is a clusterctl test framework proxy for the workload cluster
	// for which to run kubetest against
	ClusterProxy framework.ClusterProxy
	// NumberOfNodes is the number of cluster nodes that exist for kubetest
	// to be aware of
	NumberOfNodes int
	// ArtifactsDirectory is where conformance suite output will go
	ArtifactsDirectory string
	// Path to the kubetest e2e config file
	ConfigFilePath string
	// GinkgoNodes is the number of Ginkgo nodes to use
	GinkgoNodes int
	// GinkgoSlowSpecThreshold is time in s before spec is marked as slow
	GinkgoSlowSpecThreshold int
	// KubernetesVersion is the version of Kubernetes to test (if not specified, then an attempt to discover the server version is made)
	KubernetesVersion string
	// ConformanceImage is an optional field to specify an exact conformance image
	ConformanceImage string
	// KubeTestRepoListPath is optional file for specifying custom image repositories
	// https://github.com/kubernetes/kubernetes/blob/master/test/images/README.md#testing-the-new-image
	KubeTestRepoListPath string
}

Jump to

Keyboard shortcuts

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