Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for barValue (1.16 sec)

  1. pkg/registry/apps/replicaset/strategy_test.go

    			},
    			map[string]string{"a": "b"},
    			map[string]string{"c": "d"},
    			field.ErrorList{
    				&field.Error{
    					Type:  field.ErrorTypeInvalid,
    					Field: field.NewPath("spec").Child("selector").String(),
    					BadValue: &metav1.LabelSelector{
    						MatchLabels:      map[string]string{"c": "d"},
    						MatchExpressions: []metav1.LabelSelectorRequirement{},
    					},
    					Detail: "field is immutable",
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 09 21:04:31 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  2. pkg/apis/resource/validation/validation_resourceclaim_test.go

    	goodName := "foo"
    	badName := "!@#$%^"
    	goodNS := "ns"
    	goodClaimSpec := resource.ResourceClaimSpec{
    		ResourceClassName: goodName,
    		AllocationMode:    validMode,
    	}
    	now := metav1.Now()
    	badValue := "spaces not allowed"
    	badAPIGroup := "example.com/v1"
    	goodAPIGroup := "example.com"
    
    	scenarios := map[string]struct {
    		claim        *resource.ResourceClaim
    		wantFailures field.ErrorList
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. pkg/registry/apps/deployment/strategy_test.go

    			},
    			map[string]string{"a": "b"},
    			map[string]string{"c": "d"},
    			field.ErrorList{
    				&field.Error{
    					Type:  field.ErrorTypeInvalid,
    					Field: field.NewPath("spec").Child("selector").String(),
    					BadValue: &metav1.LabelSelector{
    						MatchLabels:      map[string]string{"c": "d"},
    						MatchExpressions: []metav1.LabelSelectorRequirement{},
    					},
    					Detail: "field is immutable",
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:45 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    )
    
    var (
    	ignoreBadValueDetail = cmpopts.IgnoreFields(field.Error{}, "BadValue", "Detail")
    )
    
    func TestValidateDefaultPreemptionArgs(t *testing.T) {
    	cases := map[string]struct {
    		args     config.DefaultPreemptionArgs
    		wantErrs field.ErrorList
    	}{
    		"valid args (default)": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  5. pkg/registry/core/replicationcontroller/strategy.go

    				errs = append(errs, field.Invalid(field.NewPath("spec").Child("selector"), newRc.Spec.Selector, "cannot update non-convertible selector"))
    			}
    		default:
    			errs = append(errs, &field.Error{Type: field.ErrorTypeNotFound, BadValue: value, Field: brokenField, Detail: "unknown non-convertible field"})
    		}
    	}
    
    	return errs
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:10 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  6. src/text/template/exec.go

    // setTopVar overwrites the top-nth variable on the stack. Used by range iterations.
    func (s *state) setTopVar(n int, value reflect.Value) {
    	s.vars[len(s.vars)-n].value = value
    }
    
    // varValue returns the value of the named variable.
    func (s *state) varValue(name string) reflect.Value {
    	for i := s.mark() - 1; i >= 0; i-- {
    		if s.vars[i].name == name {
    			return s.vars[i].value
    		}
    	}
    	s.errorf("undefined variable: %s", name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    						t.Errorf("expected err type %s, got %s",
    							expected.Type.String(),
    							errList[i].Type.String())
    					}
    					if expected.BadValue != errList[i].BadValue {
    						t.Errorf("expected bad value '%s', got '%s'",
    							expected.BadValue,
    							errList[i].BadValue)
    					}
    				}
    			}
    		})
    
    	}
    }
    
    func TestValidateAndCompileMatchConditions(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  8. pkg/apis/core/v1/conversion.go

    		if !ok {
    			return err
    		}
    		if out.Annotations == nil {
    			out.Annotations = make(map[string]string)
    		}
    		out.Annotations[v1.NonConvertibleAnnotationPrefix+"/"+fieldErr.Field] = reflect.ValueOf(fieldErr.BadValue).String()
    	}
    	if err := Convert_apps_ReplicaSetStatus_To_v1_ReplicationControllerStatus(&in.Status, &out.Status, s); err != nil {
    		return err
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:30:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation_test.go

    						expectedFieldErrors = append(expectedFieldErrors, &field.Error{
    							Type:     err.Type,
    							Field:    expectedField,
    							BadValue: err.BadValue,
    							Detail:   err.Detail,
    						})
    					}
    					errs := ValidatePodStatusUpdate(newPod, oldPod, PodValidationOptions{})
    					if diff := cmp.Diff(expectedFieldErrors, errs); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  10. pkg/apis/apps/validation/validation_test.go

    			tweakOrdinalsStart(-2),
    		),
    		errs: field.ErrorList{
    			field.Invalid(field.NewPath("spec", "ordinals.start"), nil, ""),
    		},
    	},
    	}
    
    	cmpOpts := []cmp.Option{cmpopts.IgnoreFields(field.Error{}, "BadValue", "Detail"), cmpopts.SortSlices(func(a, b *field.Error) bool { return a.Error() < b.Error() })}
    	for _, testCase := range append(successCases, errorCases...) {
    		name := testCase.name
    		var testTitle string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
Back to top