podanalyzer

package
v1.6.6-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: make it configurable
	UnschedulableThreshold = 60 * time.Second
)

Variables

This section is empty.

Functions

func AnalysePods

func AnalysePods(selectorv1 *metav1.LabelSelector, allPods []util.FederatedObject, currentTime time.Time) (map[string]PodAnalysisResult, error)

A function that calculates how many pods from the list are in one of the meaningful (from the replica set perspective) states. This function is a temporary workaround against the current lack of ownerRef in pods.

Types

type PodAnalysisResult

type PodAnalysisResult struct {
	// Total number of pods created.
	Total int
	// Number of pods that are running and ready.
	RunningAndReady int
	// Number of pods that have been in unschedulable state for UnshedulableThreshold seconds.
	Unschedulable int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL