limitranger

package
v1.2.0-origin Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Limit added in v0.15.0

func Limit(limitRange *api.LimitRange, resourceName string, obj runtime.Object) error

Limit enforces resource requirements of incoming resources against enumerated constraints on the LimitRange. It may modify the incoming object to apply default resource requirements if not specified, and enumerated on the LimitRange

func Max

func Max(a int64, b int64) int64

Max returns the greater of its 2 arguments

func Min

func Min(a int64, b int64) int64

Min returns the lesser of its 2 arguments

func NewLimitRanger

func NewLimitRanger(client clientset.Interface, limitFunc LimitFunc) admission.Interface

NewLimitRanger returns an object that enforces limits based on the supplied limit function

func PodLimitFunc

func PodLimitFunc(limitRange *api.LimitRange, pod *api.Pod) error

PodLimitFunc enforces resource requirements enumerated by the pod against the specified LimitRange. The pod may be modified to apply default resource requirements if not specified, and enumerated on the LimitRange

Types

type LimitFunc

type LimitFunc func(limitRange *api.LimitRange, kind string, obj runtime.Object) error

LimitFunc is a pluggable function to enforce limits on the object

Jump to

Keyboard shortcuts

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