Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for expectedFields (0.13 sec)

  1. pkg/apis/autoscaling/validation/validation.go

    		}
    	}
    
    	var expectedField string
    	switch spec.Type {
    
    	case autoscaling.ObjectMetricSourceType:
    		if spec.Object == nil {
    			allErrs = append(allErrs, field.Required(fldPath.Child("object"), "must populate information for the given metric source"))
    		}
    		expectedField = "object"
    	case autoscaling.PodsMetricSourceType:
    		if spec.Pods == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 25 00:58:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation_test.go

    					var expectedFieldErrors field.ErrorList
    					for _, err := range tt.wantFieldErrors {
    						expectedField := fmt.Sprintf("%s%s", field.NewPath("status").Child(containerType+"Statuses"), err.Field)
    						expectedFieldErrors = append(expectedFieldErrors, &field.Error{
    							Type:     err.Type,
    							Field:    expectedField,
    							BadValue: err.BadValue,
    							Detail:   err.Detail,
    						})
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top