Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PollTimeoutForNginx is the max duration for polling when using Nginx testworkload. PollTimeoutForNginx = 10 * time.Minute // PollIntervalForNginx is the interval between each condition check of poolling when using Nginx testworkload. PollIntervalForNginx = 10 * time.Second )
Functions ¶
This section is empty.
Types ¶
type Nginx ¶
type Nginx struct { Namespace string Name string // List of pods that belong to the deployment Pods []*v1.Pod // contains filtered or unexported fields }
Nginx creates a temp nginx deployment/service pair that can be used as a test workload
func NewNginx ¶
NewNginx create this nginx deployment/service pair. It waits until all the pods in the deployment are running.
func (*Nginx) IsReachable ¶
IsReachable pings the nginx service. Expects the nginx service to be reachable.
func (*Nginx) IsUnReachable ¶
IsUnReachable pings the nginx service. Expects the nginx service to be unreachable.
Click to show internal directories.
Click to hide internal directories.