Documentation ¶
Index ¶
- func GetNonTerminatedPodsOfNode(client kubernetes.Interface, nodeName string) (*corev1.PodList, error)
- func GetPodsOfNode(client kubernetes.Interface, nodeName string) (*corev1.PodList, error)
- func GetPodsTotalRequestsAndLimits(podList *corev1.PodList) (reqs map[corev1.ResourceName]resource.Quantity, ...)
- func PodRequestsAndLimits(pod *corev1.Pod) (reqs, limits corev1.ResourceList)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPodsOfNode ¶
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 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.