Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNamespaceToCtx ¶
AddNamespaceToCtx adds the namespace to the context. The namespace is stored in the key `namespace` and can be retrieved with `GetNamespaceFromCtx` or `MustGetNamespaceFromCtx`.
func GetNamespaceFromCtx ¶
GetNamespaceFromCtx returns the namespace extracted from the context.
func MustGetNamespaceFromCtx ¶
MustGetNamespaceFromCtx only returns the namespace extracted from the context. It panics if the namespace cannot be extracted.
Types ¶
type Environment ¶
type Environment struct { env.Environment DefaultContainerRegistry string DefaultContainerImage string ReportMetrics bool }
Environment represents the global test configuration. Wraps the e2e-framework Environment.
func NewEnvFromFlags ¶
func NewEnvFromFlags() (*Environment, error)
NewEnvFromFlags configure the global Environment from flags. This is a wrapper around e2e-framework's NewFromFlags to allow for additional flags. The function returns a pointer so that the global Environment can be tuned as needed after creation.
type NamespaceCtxKey ¶
type NamespaceCtxKey string