Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateConfigMap (0.21 sec)

  1. pkg/registry/core/configmap/strategy.go

    	configMap := obj.(*api.ConfigMap)
    	dropDisabledFields(configMap, nil)
    }
    
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	cfg := obj.(*api.ConfigMap)
    
    	return validation.ValidateConfigMap(cfg)
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (strategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nil }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. 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)
  3. 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