package podanalyzer
import "k8s.io/kubernetes/federation/pkg/federation-controller/util/podanalyzer"
Index ¶
- Constants
- func AnalysePods(selectorv1 *metav1.LabelSelector, allPods []util.FederatedObject, currentTime time.Time) (map[string]PodAnalysisResult, error)
- type PodAnalysisResult
Constants ¶
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 }
Source Files ¶
pod_helper.go
- Version
- v1.7.4
- Published
- Aug 17, 2017
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 9 minutes ago –
Tools for package owners.