drain

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2016 License: Apache-2.0 Imports: 8 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/cbbf22a7d2b06a55066b16885a4baaf4ce92d3a4/pkg/kubectl/cmd/drain.go. 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