Documentation ¶
Index ¶
- func AreAllPodsRunning(podPrefix, namespace string) (bool, error)
- func WaitOnReady(podPrefix, namespace string, sleep, duration time.Duration) (bool, error)
- type Container
- type List
- type Metadata
- type Pod
- func (p *Pod) CheckLinuxOutboundConnection(sleep, duration time.Duration) (bool, error)
- func (p *Pod) CheckWindowsOutboundConnection(sleep, duration time.Duration) (bool, error)
- func (p *Pod) Exec(cmd ...string) ([]byte, error)
- func (p *Pod) ValidateHostPort(check string, attempts int, sleep time.Duration, master, sshKeyPath string) bool
- type Port
- type Spec
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreAllPodsRunning ¶
AreAllPodsRunning will return true if all pods are in a Running State
Types ¶
type List ¶
type List struct {
Pods []Pod `json:"items"`
}
List is a container that holds all pods returned from doing a kubectl get pods
type Metadata ¶
type Metadata struct { CreatedAt time.Time `json:"creationTimestamp"` Labels map[string]string `json:"labels"` Name string `json:"name"` Namespace string `json:"namespace"` }
Metadata holds information like name, createdat, labels, and namespace
type Pod ¶
type Pod struct { Metadata Metadata `json:"metadata"` Spec Spec `json:"spec"` Status Status `json:"status"` }
Pod is used to parse data from kubectl get pods
func GetAllByPrefix ¶ added in v0.8.0
GetAllByPrefix will return all pods in a given namespace that match a prefix
func (*Pod) CheckLinuxOutboundConnection ¶ added in v0.8.0
CheckLinuxOutboundConnection will keep retrying the check if an error is received until the timeout occurs or it passes. This helps us when DNS may not be available for some time after a pod starts.
func (*Pod) CheckWindowsOutboundConnection ¶ added in v0.8.0
CheckWindowsOutboundConnection will keep retrying the check if an error is received until the timeout occurs or it passes. This helps us when DNS may not be available for some time after a pod starts.