Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValidateLimit (0.1 sec)

  1. plugin/pkg/admission/limitranger/interfaces.go

    	// MutateLimit is a pluggable function to set limits on the object.
    	MutateLimit(limitRange *corev1.LimitRange, kind string, obj runtime.Object) error
    	// ValidateLimits is a pluggable function to enforce limits on the object.
    	ValidateLimit(limitRange *corev1.LimitRange, kind string, obj runtime.Object) error
    	// SupportsAttributes is a pluggable function to allow overridding what resources the limitranger
    	// supports.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 18:00:06 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  2. plugin/pkg/admission/limitranger/admission.go

    	switch resourceName {
    	case "pods":
    		return PodMutateLimitFunc(limitRange, obj.(*api.Pod))
    	}
    	return nil
    }
    
    // ValidateLimit verifies the resource requirements of incoming
    // resources against enumerated constraints on the LimitRange are
    // valid
    func (d *DefaultLimitRangerActions) ValidateLimit(limitRange *corev1.LimitRange, resourceName string, obj runtime.Object) error {
    	switch resourceName {
    	case "pods":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 13:04:39 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top