Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 224 for perror (0.08 sec)

  1. plugin/pkg/admission/resourcequota/admission_test.go

    	if err == nil {
    		t.Errorf("Expected an error because the pod exceeded allowed quota")
    	}
    	err = handler.Validate(context.TODO(), admission.NewAttributesRecord(newPod, nil, api.Kind("Pod").WithVersion("version"), newPod.Namespace, newPod.Name, corev1.Resource("pods").WithVersion("version"), "subresource", admission.Create, &metav1.CreateOptions{}, false, nil), nil)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/discovery/v1/generated.pb.go

    	reflect "reflect"
    	strings "strings"
    )
    
    // Reference imports to suppress errors if they are not otherwise used.
    var _ = proto.Marshal
    var _ = fmt.Errorf
    var _ = math.Inf
    
    // This is a compile-time assertion to ensure that this generated file
    // is compatible with the proto package it is being compiled against.
    // A compilation error at this line likely means your copy of the
    // proto package needs to be updated.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    			t.Fatalf("MinIO %s: Failed parsing response body: <ERROR> %v", instanceType, err)
    		}
    
    		actualError := &APIErrorResponse{}
    		if err = xml.Unmarshal(actualContent, actualError); err != nil {
    			t.Errorf("MinIO %s: error response failed to parse error XML", instanceType)
    		}
    
    		if actualError.BucketName != bucketName {
    			t.Errorf("MinIO %s: error response bucket name differs from expected value", instanceType)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    				if !strings.Contains(err.Error(), testCase.err.Error()) {
    					t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.err.Error(), err.Error())
    				}
    			}
    			// Since there are cases for which ListObjects fails, this is
    			// necessary. Test passes as expected, but the output values
    			// are verified for correctness here.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_utils_test.go

    	pod := newStatefulSetPod(set, 1)
    	if !identityMatches(set, pod) {
    		t.Error("Newly created Pod has a bad identity")
    	}
    	pod.Name = "foo"
    	if identityMatches(set, pod) {
    		t.Error("identity matches for a Pod with the wrong name")
    	}
    	pod = newStatefulSetPod(set, 1)
    	pod.Namespace = ""
    	if identityMatches(set, pod) {
    		t.Error("identity matches for a Pod with the wrong namespace")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    	// Act
    	runReconciler(reconciler)
    
    	// Assert
    	assert.NoError(t, volumetesting.VerifyZeroAttachCalls(fakePlugin))
    	assert.NoError(t, volumetesting.VerifyZeroWaitForAttachCallCount(fakePlugin))
    	assert.NoError(t, volumetesting.VerifyZeroMountDeviceCallCount(fakePlugin))
    	assert.NoError(t, volumetesting.VerifyZeroSetUpCallCount(fakePlugin))
    	assert.NoError(t, volumetesting.VerifyZeroTearDownCallCount(fakePlugin))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  7. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    			return true, nil
    		}
    		lastErr = fmt.Errorf("Check volume <%v> is reported as attached to node <%v>, got %v, expected %v",
    			volumeName,
    			nodeName,
    			result,
    			isAttached)
    		return false, nil
    	})
    	if err != nil {
    		t.Fatalf("last error: %q, wait timeout: %q", lastErr, err.Error())
    	}
    
    }
    
    func verifyVolumeNoStatusUpdateNeeded(
    	t *testing.T,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    	// can be gotten from ctx.
    	//
    	// KeyFunc and KeyRootFunc must be supplied together or not at all.
    	KeyFunc func(ctx context.Context, name string) (string, error)
    
    	// ObjectNameFunc returns the name of an object or an error.
    	ObjectNameFunc func(obj runtime.Object) (string, error)
    
    	// TTLFunc returns the TTL (time to live) that objects should be persisted
    	// with. The existing parameter is the current TTL or the default for this
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  9. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    		AddFunc: controllerutil.CreateAddNodeHandler(func(node *v1.Node) error {
    			nc.nodeUpdateQueue.Add(node.Name)
    			return nil
    		}),
    		UpdateFunc: controllerutil.CreateUpdateNodeHandler(func(_, newNode *v1.Node) error {
    			nc.nodeUpdateQueue.Add(newNode.Name)
    			return nil
    		}),
    		DeleteFunc: controllerutil.CreateDeleteNodeHandler(logger, func(node *v1.Node) error {
    			nc.nodesToRetry.Delete(node.Name)
    			return nil
    		}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. src/net/http/request.go

    		return bw.Flush()
    	}
    	return nil
    }
    
    // requestBodyReadError wraps an error from (*Request).write to indicate
    // that the error came from a Read call on the Request.Body.
    // This error type should not escape the net/http package to users.
    type requestBodyReadError struct{ error }
    
    func idnaASCII(v string) (string, error) {
    	// TODO: Consider removing this check after verifying performance is okay.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top