package common
import "k8s.io/kubernetes/test/e2e/common"
Index ¶
- Variables
- func NewRCByName(c clientset.Interface, ns, name string, replicas int32, gracePeriod *int64, containerArgs []string, rcLabels map[string]string) (*v1.ReplicationController, error)
- func NewSVCByName(c clientset.Interface, ns, name string, selector map[string]string) error
- func RestartNodes(c clientset.Interface, nodes []v1.Node) error
- func SubstituteImageName(content string) string
- type Suite
Variables ¶
var PrePulledImages = sets.NewString( imageutils.GetE2EImage(imageutils.Agnhost), imageutils.GetE2EImage(imageutils.BusyBox), imageutils.GetE2EImage(imageutils.IpcUtils), imageutils.GetE2EImage(imageutils.Nginx), imageutils.GetE2EImage(imageutils.Httpd), imageutils.GetE2EImage(imageutils.VolumeNFSServer), imageutils.GetE2EImage(imageutils.NonRoot), )
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 and E2E tests. See also updateImageAllowList() in ../../e2e_node/image_list.go TODO(random-liu): Change the image puller pod to use similar mechanism.
var WindowsPrePulledImages = sets.NewString( imageutils.GetE2EImage(imageutils.Agnhost), imageutils.GetE2EImage(imageutils.BusyBox), imageutils.GetE2EImage(imageutils.Nginx), imageutils.GetE2EImage(imageutils.Httpd), )
WindowsPrePulledImages 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. These images also have Windows support. Currently, this is only used by E2E tests.
Functions ¶
func NewRCByName ¶
func NewRCByName(c clientset.Interface, ns, name string, replicas int32, gracePeriod *int64, containerArgs []string, rcLabels map[string]string) (*v1.ReplicationController, error)
NewRCByName creates a replication controller with a selector by a specified set of labels.
func NewSVCByName ¶
NewSVCByName creates a service with the specified selector.
func RestartNodes ¶
RestartNodes restarts specific nodes.
func SubstituteImageName ¶
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.
Source Files ¶
imports.go util.go
Directories ¶
Path | Synopsis |
---|---|
test/e2e/common/network | |
test/e2e/common/node | |
test/e2e/common/storage |
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 18 packages
- Last checked
- 5 hours ago –
Tools for package owners.