pod

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HaveEvictAnnotation added in v0.10.0

func HaveEvictAnnotation(pod *v1.Pod) bool

HaveEvictAnnotation checks if the pod have evict annotation

func IsBestEffortPod

func IsBestEffortPod(pod *v1.Pod) bool

func IsBurstablePod

func IsBurstablePod(pod *v1.Pod) bool

func IsCriticalPod

func IsCriticalPod(pod *v1.Pod) bool

func IsDaemonsetPod

func IsDaemonsetPod(ownerRefList []metav1.OwnerReference) bool

func IsEvictable added in v0.4.0

func IsEvictable(pod *v1.Pod, evictLocalStoragePods bool) bool

IsEvictable checks if a pod is evictable or not.

func IsGuaranteedPod

func IsGuaranteedPod(pod *v1.Pod) bool

func IsMirrorPod

func IsMirrorPod(pod *v1.Pod) bool

IsMirrorPod checks whether the pod is a mirror pod.

func IsPodWithLocalStorage

func IsPodWithLocalStorage(pod *v1.Pod) bool

func ListEvictablePodsOnNode added in v0.4.0

func ListEvictablePodsOnNode(client clientset.Interface, node *v1.Node, evictLocalStoragePods bool) ([]*v1.Pod, error)

ListEvictablePodsOnNode returns the list of evictable pods on node.

func ListPodsOnANode

func ListPodsOnANode(client clientset.Interface, node *v1.Node) ([]*v1.Pod, error)

func OwnerRef added in v0.4.0

func OwnerRef(pod *v1.Pod) []metav1.OwnerReference

OwnerRef returns the ownerRefList for the pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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