utils

package
v0.0.0-...-886a7d0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EvictionKind        = "Eviction"
	EvictionSubresource = "pods/eviction"
	EvictionAnnotation  = "kube-pod-rescheduler/eviction"
)

Variables

This section is empty.

Functions

func Annotate

func Annotate(client clientset.Interface, pod *corev1.Pod)

func EvictPod

func EvictPod(client clientset.Interface, pod *v1.Pod, policyGroupVersion string, dryRun bool) (bool, error)

func SupportEviction

func SupportEviction(client clientset.Interface) (string, error)

SupportEviction uses Discovery API to find out if the server support eviction subresource If support, it will return its groupVersion; Otherwise, it will return ""

Types

This section is empty.

Jump to

Keyboard shortcuts

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