pod

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtraResourcesCouldHelpScheduling

func ExtraResourcesCouldHelpScheduling(pod v1.Pod) bool

ExtraResourcesCouldHelpScheduling returns true if the Pod is unschedulable and there a possibility that adding to the cluster additional resources could allow the Pod to be scheduled. Returns false otherwise.

func IsMoreImportant

func IsMoreImportant(p1 v1.Pod, p2 v1.Pod) bool

IsMoreImportant returns true if p1 is more important than p2, false otherwise

func IsOverQuota

func IsOverQuota(pod v1.Pod) bool

IsOverQuota returns true if the pod is "over-quota", false otherwise.

A pod is considered over-quota if it is subject to an ElasticQuota, and it is using resources borrowed from another ElasticQuota.

func IsOwnedBy

func IsOwnedBy(pod v1.Pod, gvk schema.GroupVersionKind) bool

func IsOwnedByDaemonSet

func IsOwnedByDaemonSet(pod v1.Pod) bool

func IsOwnedByNode

func IsOwnedByNode(pod v1.Pod) bool

func IsPending

func IsPending(pod v1.Pod) bool

func IsPreempting

func IsPreempting(pod v1.Pod) bool

func IsScheduled

func IsScheduled(pod v1.Pod) bool

func IsUnschedulable

func IsUnschedulable(pod v1.Pod) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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