package limitranger
import "k8s.io/kubernetes/plugin/pkg/admission/limitranger"
Index ¶
- func Max(a int64, b int64) int64
- func Min(a int64, b int64) int64
- func NewLimitRanger(client client.Interface, limitFunc LimitFunc) admission.Interface
- func PodLimitFunc(limitRange *api.LimitRange, resourceName string, obj runtime.Object) error
- type LimitFunc
Functions ¶
func Max ¶
func Min ¶
func NewLimitRanger ¶
NewLimitRanger returns an object that enforces limits based on the supplied limit function
func PodLimitFunc ¶
PodLimitFunc enforces that a pod spec does not exceed any limits specified on the supplied limit range
Types ¶
type LimitFunc ¶
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.