Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestEnvironment ¶
type TestEnvironment struct { Cluster string // K8s cluster (defaults to cluster in kubeconfig) Namespace string // K8s namespace (blank by default, to be overwritten by test suite) IngressEndpoint string // Host to use for ingress endpoint ImageTemplate string // Template to build the image reference (defaults to {{.Repository}}/{{.Name}}:{{.Tag}}) DockerRepo string // Docker repo (defaults to $KO_DOCKER_REPO) Tag string // Tag for test images SpoofRequestInterval time.Duration // SpoofRequestInterval is the interval between requests in SpoofingClient SpoofRequestTimeout time.Duration // SpoofRequestTimeout is the timeout for polling requests in SpoofingClient }
TestEnvironment define the config that are needed to run the e2e tests.
func Flags ¶
func Flags() *TestEnvironment
Flags returns the command line flags or defaults for settings in the user's environment. See TestEnvironment for a list of supported fields. Caller must call InitFlags() and flags.Parse() before calling Flags().
Click to show internal directories.
Click to hide internal directories.