Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for validateFuncs (0.17 sec)

  1. cmd/kubeadm/app/phases/certs/certs_test.go

    		certstestutil.WritePKIFiles(t, dir, test.files)
    
    		err := test.validateFunc(test.loc)
    		if test.expectedSuccess && err != nil {
    			t.Errorf("expected success, error executing validateFunc: %v, %v", test.name, err)
    		} else if !test.expectedSuccess && err == nil {
    			t.Errorf("expected failure, no error executing validateFunc: %v", test.name)
    		}
    	}
    }
    
    func TestNewCSR(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/validation/validation.go

    		} else if validateFunc, ok := m[name]; ok {
    			// type mismatch, no need to validate the `args`.
    			if reflect.TypeOf(args) != reflect.ValueOf(validateFunc).Type().In(1) {
    				errs = append(errs, field.Invalid(pluginConfigPath.Child("args"), args, "has to match plugin args"))
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go

    		u.SetName("marker")
    		if item, err := crdInfo.storages["v1beta1"].CustomResource.Create(ctx, u, validateFunc, &metav1.CreateOptions{}); err != nil {
    			t.Fatal(err)
    		} else {
    			startResourceVersion = item.(*unstructured.Unstructured).GetResourceVersion()
    		}
    		if _, _, err := crdInfo.storages["v1beta1"].CustomResource.Delete(ctx, u.GetName(), validateFunc, &metav1.DeleteOptions{}); err != nil {
    			t.Fatal(err)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 34.6K bytes
    - Viewed (0)
Back to top