drain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodsForDeletion

func GetPodsForDeletion(kc *kubernetes.Clientset, node string) (pods []v1api.Pod, err error)

GetPodsForDeletion finds pods on the given node that are candidates for deletion during a drain before a reboot. This code mimics pod filtering behavior in https://github.com/kubernetes/kubernetes/blob/v1.5.4/pkg/kubectl/cmd/drain.go#L234-L245 See DrainOptions.getPodsForDeletion and callees.

Types

This section is empty.

Jump to

Keyboard shortcuts

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