Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPathFromDirectory ¶
ConfigPathFromDirectory determines the kube config location from the HOME environment variable. If HOME is not defined, return empty.
func FailedPodConditions ¶
func FailedPodConditions(pod corev1.Pod) []types.PodCondition
FailedPodConditions returns an array of PodConditions that have failed
func NotReadyPodContainerStatus ¶
func NotReadyPodContainerStatus(pod corev1.Pod) []types.ContainerStatus
NotReadyPodContainerStatus returns an array of ContainerStatus for Pod containers that are not ready
func PodIsReady ¶
PodIsReady returns true if all Pod Conditions are marked as True and if all Containers are Ready
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper around a Kubernetes Interface
func NewClient ¶
func NewClient(config types.ClientConfig) (*Client, error)
NewClient takes in a ClientConfig and generates a new Client to interface with the Kubernetes Cluster as outlined in the ClientConfig
func (*Client) Events ¶
Events takes a EventSelectors and returns an array of Kubernetes Events based on those selectors