kubernetesk8s.io/kubernetes/plugin/pkg/admission/limitranger Index | Files

package limitranger

import "k8s.io/kubernetes/plugin/pkg/admission/limitranger"

Index

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

Source Files

admission.go interfaces.go

Version
v0.14.0
Published
Mar 30, 2015
Platform
js/wasm
Imports
13 packages
Last checked
38 seconds ago

Tools for package owners.