pod

package
v0.0.0-...-821f9ce Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeFromSlice

func ExcludeFromSlice(fromSlice, inSlice []*kapiv1.Pod) []*kapiv1.Pod

ExcludeFromSlice return a slice of Pod that is not present in another slice

func FilterOut

func FilterOut(slice []*kapiv1.Pod, exclude func(*kapiv1.Pod) (bool, error)) ([]*kapiv1.Pod, error)

FilterOut remove from the slice pods for which exclude function return true

func IsReady

func IsReady(p *kapiv1.Pod) bool

IsReady check if the pod is Ready

func KeepRunningPods

func KeepRunningPods(pods []*kapiv1.Pod) ([]*kapiv1.Pod, error)

KeepRunningPods check if the pod is Ready

func PurgeNotReadyPods

func PurgeNotReadyPods(pods []*kapiv1.Pod) ([]*kapiv1.Pod, error)

PurgeNotReadyPods keep only pods that are ready inside the slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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