pods

package
v0.0.0-...-63926b3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Summary

type Summary struct {
	// Total is the total observed number of pods that are either running or
	// about to be started.
	Total int32
	// Running is the number of running pods.
	Running int32
	// NotStartedWithinDeadline is the number of pods that not only has not
	// fully stared (not scheduled or not fully started, in phase PodPending)
	// but also has been in the not started phase for a while.
	NotStartedWithinDeadline int32
}

Summary contains information about the total observed number of pods within a group, number of running, as well as the count of those who failed to start within the deadline.

func CalculateSummary

func CalculateSummary(podList []*v1.Pod, now time.Time, startupTimeout time.Duration) Summary

CalculateSummary calculates the Summary structure for the given set of pod and startup constraint.

Jump to

Keyboard shortcuts

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