pod

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailedToSchedule

func FailedToSchedule(pod *v1.Pod) bool

func HasDoNotDisrupt added in v0.31.0

func HasDoNotDisrupt(pod *v1.Pod) bool

func HasPodAntiAffinity

func HasPodAntiAffinity(pod *v1.Pod) bool

HasPodAntiAffinity returns true if a non-empty PodAntiAffinity is defined in the pod spec

func HasRequiredPodAntiAffinity

func HasRequiredPodAntiAffinity(pod *v1.Pod) bool

HasRequiredPodAntiAffinity returns true if a non-empty PodAntiAffinity/RequiredDuringSchedulingIgnoredDuringExecution is defined in the pod spec

func IsOwnedBy

func IsOwnedBy(pod *v1.Pod, gvks []schema.GroupVersionKind) bool

func IsOwnedByDaemonSet

func IsOwnedByDaemonSet(pod *v1.Pod) bool

func IsOwnedByNode

func IsOwnedByNode(pod *v1.Pod) bool

IsOwnedByNode returns true if the pod is a static pod owned by a specific node

func IsPreempting

func IsPreempting(pod *v1.Pod) bool

func IsProvisionable

func IsProvisionable(pod *v1.Pod) bool

func IsScheduled

func IsScheduled(pod *v1.Pod) bool

func IsTerminal

func IsTerminal(pod *v1.Pod) bool

func IsTerminating

func IsTerminating(pod *v1.Pod) bool

func ToleratesUnschedulableTaint

func ToleratesUnschedulableTaint(pod *v1.Pod) bool

HasUnschedulableToleration returns true if the pod tolerates node.kubernetes.io/unschedulable taint

Types

This section is empty.

Jump to

Keyboard shortcuts

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