Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
type NginxOpts ¶
NginxOpts defines func that applies custom options for Nginx
func WithNginxNodeSelector ¶
WithNginxNodeSelector adds custom labels for Pod's NodeSelector field Affects only Deployment's pods.
func WithNginxPingJobLabels ¶
WithNginxPingJobLabels adds custom labels for PinJob's pods. Affects only PingJob's pods.
func WithNginxSelector ¶
WithNginxSelector adds custom labels for Deployment's Selector field. Affects only Deployment pods.