flags

package
v0.0.0-...-737401c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlags

func InitFlags(flagset *flag.FlagSet)

InitFlags is for explicitly initializing the flags.

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().

Jump to

Keyboard shortcuts

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