import "k8s.io/kubernetes/test/e2e/common"
configmap.go configmap_volume.go container.go container_probe.go docker_containers.go downward_api.go downwardapi_volume.go empty_dir.go expansion.go host_path.go init_container.go kubelet.go kubelet_etc_hosts.go lease.go lifecycle_hook.go networking.go node_lease.go pods.go podtemplates.go privileged.go projected_combined.go projected_configmap.go projected_downwardapi.go projected_secret.go runtime.go runtimeclass.go secrets.go secrets_volume.go security_context.go sysctl.go util.go volumes.go
const ( ContainerStatusRetryTimeout = time.Minute * 5 ContainerStatusPollInterval = time.Second * 1 )
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.VolumeGlusterServer), 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. See also updateImageAllowList() in ../../e2e_node/image_list.go TODO(random-liu): Change the image puller pod to use similar mechanism.
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.
NewSVCByName creates a service by name.
RestartNodes restarts specific nodes.
func RunLivenessTest(f *framework.Framework, pod *v1.Pod, expectNumRestarts int, timeout time.Duration)
SubstituteImageName replaces image name in content.
type ConformanceContainer struct { Container v1.Container RestartPolicy v1.RestartPolicy Volumes []v1.Volume ImagePullSecrets []string PodClient *framework.PodClient PodSecurityContext *v1.PodSecurityContext // contains filtered or unexported fields }
One pod one container
func (cc *ConformanceContainer) Create()
func (cc *ConformanceContainer) Delete() error
func (cc *ConformanceContainer) GetPhase() (v1.PodPhase, error)
func (cc *ConformanceContainer) GetStatus() (v1.ContainerStatus, error)
func (cc *ConformanceContainer) IsReady() (bool, error)
func (cc *ConformanceContainer) Present() (bool, error)
const ( ContainerStateWaiting ContainerState = "Waiting" ContainerStateRunning ContainerState = "Running" ContainerStateTerminated ContainerState = "Terminated" ContainerStateUnknown ContainerState = "Unknown" )
func GetContainerState(state v1.ContainerState) ContainerState
type KubeletManagedHostConfig struct {
// contains filtered or unexported fields
}
type PrivilegedPodTestConfig struct {
// contains filtered or unexported fields
}
PrivilegedPodTestConfig is configuration struct for privileged pod test TODO: Merge with tests in security_context.go
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" )
CurrentSuite represents current test suite.
Package common imports 63 packages (graph) and is imported by 696 packages. Updated 2021-01-08. Refresh now. Tools for package owners.