package limitranger
import "k8s.io/kubernetes/plugin/pkg/admission/limitranger"
Index ¶
- func Limit(limitRange *api.LimitRange, resourceName string, obj runtime.Object) error
- 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, pod *api.Pod) error
- type LimitFunc
Functions ¶
func Limit ¶
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 ¶
Max returns the greater of its 2 arguments
func Min ¶
Min returns the lesser of its 2 arguments
func NewLimitRanger ¶
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 ¶
LimitFunc is a pluggable function to enforce limits on the object
Source Files ¶
admission.go interfaces.go
- Version
- v1.1.6
- Published
- Jan 27, 2016
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 13 seconds ago –
Tools for package owners.