Documentation ¶
Index ¶
- func GetConfig(kubeconfig string) clientcmd.ClientConfig
- func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)
- func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition
- func IsPodReady(pod *v1.Pod) bool
- func IsPodReadyConditionTrue(status v1.PodStatus) bool
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig(kubeconfig string) clientcmd.ClientConfig
GetConfig returns a Kubernetes client config for a given kubeconfig.
func GetPodCondition ¶
func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)
GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func GetPodReadyCondition ¶
func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition
GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.
func IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
Types ¶
type Client ¶
type Client struct { KubeClient kubernetes.Interface ExtClient apiextensionsclient.Interface }
Client provides access different K8S clients
func GetKubeClient ¶
GetKubeClient provides k8s client for kubeconfig
Click to show internal directories.
Click to hide internal directories.