Documentation
¶
Index ¶
Constants ¶
View Source
const (
// TODO: make it configurable
UnschedulableThreshold = 60 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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
}
func AnalyzePods ¶ added in v1.8.0
func AnalyzePods(pods *api_v1.PodList, currentTime time.Time) PodAnalysisResult
AnalyzePods 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.
Click to show internal directories.
Click to hide internal directories.