Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ADD represents the ADD event ADD = "ADD" // DEL represents the DEL event DEL = "DEL" // UPDATE represents the UPDATE event UPDATE = "UPDATE" )
View Source
const ( NginxImageName = "nginx" RedisImageName = "redis" )
NOTE(claudiub): These constants should NOT be used as Pod Container Images.
Variables ¶
View Source
var ( // CronJobGroupVersionResourceAlpha unambiguously identifies a resource of cronjob with alpha status CronJobGroupVersionResourceAlpha = schema.GroupVersionResource{Group: "batch", Version: "v2alpha1", Resource: "cronjobs"} // CronJobGroupVersionResourceBeta unambiguously identifies a resource of cronjob with beta status CronJobGroupVersionResourceBeta = schema.GroupVersionResource{Group: "batch", Version: "v1beta1", Resource: "cronjobs"} // NautilusImage is the fully qualified URI to the Nautilus image NautilusImage = imageutils.GetE2EImage(imageutils.Nautilus) // KittenImage is the fully qualified URI to the Kitten image KittenImage = imageutils.GetE2EImage(imageutils.Kitten) // NginxImage is the fully qualified URI to the Nginx image NginxImage = imageutils.GetE2EImage(imageutils.Nginx) // NewNginxImage is the fully qualified URI to the NginxNew image NewNginxImage = imageutils.GetE2EImage(imageutils.NginxNew) // RedisImage is the fully qualified URI to the Redis image RedisImage = imageutils.GetE2EImage(imageutils.Redis) )
View Source
var ( // DeploymentGroupVersionResource identifies a Deployment resource. DeploymentGroupVersionResource = schema.GroupVersionResource{Group: extensions.GroupName, Version: "v1beta1", Resource: "deployments"} )
View Source
var NamespaceNodeSelectors = []string{"scheduler.alpha.kubernetes.io/node-selector"}
NamespaceNodeSelectors the annotation key scheduler.alpha.kubernetes.io/node-selector is for assigning node selectors labels to namespaces
Functions ¶
func SIGDescribe ¶
SIGDescribe annotates the test with the SIG label.
func TestReplicationControllerServeImageOrFail ¶
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.
Types ¶
type RestartDaemonConfig ¶ added in v1.15.0
type RestartDaemonConfig struct {
// contains filtered or unexported fields
}
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.
func NewRestartConfig ¶
func NewRestartConfig(nodeName, daemonName string, healthzPort int, pollInterval, pollTimeout time.Duration) *RestartDaemonConfig
NewRestartConfig creates a RestartDaemonConfig for the given node and daemon.
func (*RestartDaemonConfig) String ¶ added in v1.15.0
func (r *RestartDaemonConfig) String() string
Click to show internal directories.
Click to hide internal directories.