limitranger

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(a int64, b int64) int64

func Min

func Min(a int64, b int64) int64

func NewLimitRanger

func NewLimitRanger(client client.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, resourceName string, obj runtime.Object) error

PodLimitFunc enforces that a pod spec does not exceed any limits specified on the supplied limit range

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