Documentation ¶
Index ¶
- func GetPodImages(spec corev1.PodSpec) []string
- func GetPodReadyContainers(pod *corev1.Pod) []string
- func GetPodRestartCount(pod *corev1.Pod) int32
- func GetPodStatus(pod *corev1.Pod) corev1.PodPhase
- func GetPodsTotalRequestsAndLimits(podList *corev1.PodList) (reqs map[corev1.ResourceName]resource.Quantity, ...)
- func IsPodReady(pod corev1.Pod) bool
- func PodRequestsAndLimits(pod *corev1.Pod) (reqs, limits corev1.ResourceList)
- func WaitForPodRunning(ctx context.Context, c kubernetes.Interface, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPodImages ¶
func GetPodReadyContainers ¶
func GetPodRestartCount ¶
func GetPodStatus ¶
GetPodStatus returns status string calculated based on the same logic as kubectl code: https://github.com/kubernetes/kubernetes/blob/master/pkg/printers/internalversion/printers.go#L734
func GetPodsTotalRequestsAndLimits ¶
func GetPodsTotalRequestsAndLimits(podList *corev1.PodList) (reqs map[corev1.ResourceName]resource.Quantity, limits map[corev1.ResourceName]resource.Quantity)
GetPodsTotalRequestsAndLimits returns a dictionary of all defined resources summed up for all pods.
func IsPodReady ¶
func PodRequestsAndLimits ¶
func PodRequestsAndLimits(pod *corev1.Pod) (reqs, limits corev1.ResourceList)
PodRequestsAndLimits returns a dictionary of all defined resources summed up for all containers of the pod. If pod overhead is non-nil, the pod overhead is added to the total container resource requests and to the total container limits which have a non-zero quantity.
func WaitForPodRunning ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.