Documentation ¶
Index ¶
- func CalculatePodRequests(pods []*v1.Pod, resource v1.ResourceName) (map[string]int64, error)
- func GroupPods(pods []*v1.Pod, metrics metricsclient.PodMetricsInfo, resource v1.ResourceName, ...) (readyPodCount int, ignoredPods sets.String, missingPods sets.String)
- func RemoveMetricsForPods(metrics metricsclient.PodMetricsInfo, pods sets.String)
- type PodReadyCount
- type PodReadyCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculatePodRequests ¶
CalculatePodRequests calculates pod resource requests for a slice of pods
func GroupPods ¶
func GroupPods(pods []*v1.Pod, metrics metricsclient.PodMetricsInfo, resource v1.ResourceName, cpuInitializationPeriod, delayOfInitialReadinessStatus time.Duration) (readyPodCount int, ignoredPods sets.String, missingPods sets.String)
GroupPods groups pods into ready, missing and ignored based on PodMetricsInfo and resource provided
func RemoveMetricsForPods ¶
func RemoveMetricsForPods(metrics metricsclient.PodMetricsInfo, pods sets.String)
RemoveMetricsForPods removes the pods provided from the PodMetricsInfo provided
Types ¶
type PodReadyCount ¶
type PodReadyCount struct {
PodLister corelisters.PodLister
}
PodReadyCount provides a way to count the number of ready pods using a pod lister
func (*PodReadyCount) GetReadyPodsCount ¶
func (c *PodReadyCount) GetReadyPodsCount(namespace string, selector labels.Selector) (int64, error)
GetReadyPodsCount returns the number of pods that are deemed 'ready'
Click to show internal directories.
Click to hide internal directories.