Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValidateConfigMap (0.36 sec)

  1. pkg/apis/core/validation/validation.go

    // trailing dashes are allowed.
    var ValidateConfigMapName = apimachineryvalidation.NameIsDNSSubdomain
    
    // ValidateConfigMap tests whether required fields in the ConfigMap are set.
    func ValidateConfigMap(cfg *core.ConfigMap) field.ErrorList {
    	allErrs := field.ErrorList{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation_test.go

    		"binary data max size":            {binDataOverMaxSize, false},
    		"binary data non utf-8 bytes":     {binNonUtf8Value, true},
    	}
    
    	for name, tc := range tests {
    		errs := ValidateConfigMap(&tc.cfg)
    		if tc.isValid && len(errs) > 0 {
    			t.Errorf("%v: unexpected error: %v", name, errs)
    		}
    		if !tc.isValid && len(errs) == 0 {
    			t.Errorf("%v: unexpected non-error", name)
    		}
    	}
    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