...

Package apps

import "k8s.io/kubernetes/test/e2e/apps"
Overview
Index

Overview ▾

Constants

const (

    // ADD represents the ADD event
    ADD = "ADD"
    // DEL represents the DEL event
    DEL = "DEL"
    // UPDATE represents the UPDATE event
    UPDATE = "UPDATE"
)

NOTE(claudiub): These constants should NOT be used as Pod Container Images.

const (
    WebserverImageName = "httpd"
    AgnhostImageName   = "agnhost"
)
const (

    // JobTimeout is how long to wait for a job to finish.
    JobTimeout = 15 * time.Minute
)

Variables

var (
    // WebserverImage is the fully qualified URI to the Httpd image
    WebserverImage = imageutils.GetE2EImage(imageutils.Httpd)

    // NewWebserverImage is the fully qualified URI to the HttpdNew image
    NewWebserverImage = imageutils.GetE2EImage(imageutils.HttpdNew)

    // AgnhostImage is the fully qualified URI to the Agnhost image
    AgnhostImage = imageutils.GetE2EImage(imageutils.Agnhost)
)

NamespaceNodeSelectors the annotation key scheduler.alpha.kubernetes.io/node-selector is for assigning node selectors labels to namespaces

var NamespaceNodeSelectors = []string{"scheduler.alpha.kubernetes.io/node-selector"}

SIGDescribe annotates the test with the SIG label.

var SIGDescribe = framework.SIGDescribe("apps")

func TestReplicationControllerServeImageOrFail

func TestReplicationControllerServeImageOrFail(ctx context.Context, f *framework.Framework, test string, image string)

TestReplicationControllerServeImageOrFail is a basic test to check the deployment of an image using a replication controller. The image serves its hostname which is checked for each replica.

type RestartDaemonConfig

RestartDaemonConfig is a config to restart a running daemon on a node, and wait till it comes back up. It uses ssh to send a SIGTERM to the daemon.

type RestartDaemonConfig struct {
    // contains filtered or unexported fields
}

func NewRestartConfig

func NewRestartConfig(nodeName, daemonName string, healthzPort int, pollInterval, pollTimeout time.Duration, enableHTTPS bool) *RestartDaemonConfig

NewRestartConfig creates a RestartDaemonConfig for the given node and daemon.

func (*RestartDaemonConfig) String

func (r *RestartDaemonConfig) String() string