common

package
v1.21.10 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 18 Imported by: 309

Documentation

Index

Constants

This section is empty.

Variables

PrePulledImages are a list of images used in e2e/common tests. These images should be prepulled before tests starts, so that the tests won't fail due image pulling flakes. Currently, this is only used by node e2e test. See also updateImageAllowList() in ../../e2e_node/image_list.go TODO(random-liu): Change the image puller pod to use similar mechanism.

Functions

func NewRCByName added in v1.8.0

func NewRCByName(c clientset.Interface, ns, name string, replicas int32, gracePeriod *int64, containerArgs []string) (*v1.ReplicationController, error)

NewRCByName creates a replication controller with a selector by name of name.

func NewSVCByName added in v1.8.0

func NewSVCByName(c clientset.Interface, ns, name string) error

NewSVCByName creates a service by name.

func RestartNodes added in v1.8.0

func RestartNodes(c clientset.Interface, nodes []v1.Node) error

RestartNodes restarts specific nodes.

func SubstituteImageName added in v1.14.0

func SubstituteImageName(content string) string

SubstituteImageName replaces image name in content.

Types

type Suite

type Suite string

Suite represents test suite.

const (
	// E2E represents a test suite for e2e.
	E2E Suite = "e2e"
	// NodeE2E represents a test suite for node e2e.
	NodeE2E Suite = "node e2e"
)
var CurrentSuite Suite

CurrentSuite represents current test suite.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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