drain

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodsForDeletion

func GetPodsForDeletion(kc kubernetes.Interface, node string) (pods []v1.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