Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for NewNotFound (0.27 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/fallback_query_param_verifier_test.go

    			crds: []schema.GroupKind{},
    			gvk: schema.GroupVersionKind{
    				Group:   "batch",
    				Version: "v1",
    				Kind:    "Job",
    			},
    			queryParam:       QueryParamFieldValidation,
    			primaryError:     errors.NewNotFound(schema.GroupResource{}, "OpenAPI V3 endpoint not found"),
    			expectedSupports: true,
    		},
    		"Field validation query param is supported for batch/v1/Job, invalid v3 document error": {
    			crds: []schema.GroupKind{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 18:30:16 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. pkg/controlplane/reconcilers/endpointsadapter_test.go

    		},
    		"endpointslice exists, endpoints does not": {
    			expectedError:     errors.NewNotFound(schema.GroupResource{Group: "", Resource: "endpoints"}, "foo"),
    			expectedEndpoints: noEndpoints,
    			initialState:      []runtime.Object{epSlice1},
    			namespaceParam:    "testing",
    			nameParam:         "foo",
    		},
    		"wrong-namespace": {
    			expectedError:     errors.NewNotFound(schema.GroupResource{Group: "", Resource: "endpoints"}, "foo"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. security/pkg/k8s/configutil_test.go

    	}
    }
    
    func createConfigMapDisabledClient(client *fake.Clientset) {
    	client.PrependReactor("get", "configmaps", func(action ktesting.Action) (bool, runtime.Object, error) {
    		return true, &v1.ConfigMap{}, errors.NewNotFound(v1.Resource("configmaps"), configMapName)
    	})
    	client.PrependReactor("create", "configmaps", func(action ktesting.Action) (bool, runtime.Object, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 21:58:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. pkg/scheduler/testing/framework/fake_listers.go

    	for _, pvc := range f.pvcs {
    		if pvc.Name == name && pvc.Namespace == f.namespace {
    			return pvc, nil
    		}
    	}
    	return nil, errors.NewNotFound(v1.Resource("persistentvolumeclaims"), name)
    }
    
    func (f persistentVolumeClaimNamespaceLister) List(selector labels.Selector) (ret []*v1.PersistentVolumeClaim, err error) {
    	return nil, fmt.Errorf("not implemented")
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 20 10:14:08 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  5. pkg/kubelet/certificate/bootstrap/bootstrap_test.go

    			switch action.GetResource().Version {
    			case "v1":
    				return true, nil, fmt.Errorf("create error")
    			default:
    				return true, nil, apierrors.NewNotFound(certificatesv1.Resource("certificatesigningrequests"), "")
    			}
    		})
    	default:
    		f.PrependReactor("create", "certificatesigningrequests", func(action clienttesting.Action) (handled bool, ret runtime.Object, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 13K bytes
    - Viewed (0)
  6. pilot/pkg/leaderelection/k8sleaderelection/leaderelection_test.go

    		{
    			name: "acquire from no object",
    			reactors: []Reactor{
    				{
    					verb: "get",
    					reaction: func(action fakeclient.Action) (handled bool, ret runtime.Object, err error) {
    						return true, nil, errors.NewNotFound(action.(fakeclient.GetAction).GetResource().GroupResource(), action.(fakeclient.GetAction).GetName())
    					},
    				},
    				{
    					verb: "create",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 23 16:39:43 UTC 2023
    - 42.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    			err:             apierrors.NewNotFound(podGVR.GroupResource(), "foo"),
    			opts:            metav1.ListOptions{},
    			subj:            podSubject,
    			expectedErr:     "Unable to list \"/v1, Resource=pods\": pods \"foo\" not found",
    			expectStatusErr: true,
    		}, {
    			name: "not found StatusError with selectors",
    			err:  apierrors.NewNotFound(podGVR.GroupResource(), "foo"),
    			opts: metav1.ListOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  8. pkg/serviceaccount/claims_test.go

    	if f.serviceAccount == nil {
    		return nil, apierrors.NewNotFound(schema.GroupResource{Group: "", Resource: "serviceaccounts"}, name)
    	}
    	return f.serviceAccount, nil
    }
    func (f fakeGetter) GetPod(namespace, name string) (*v1.Pod, error) {
    	if f.pod == nil {
    		return nil, apierrors.NewNotFound(schema.GroupResource{Group: "", Resource: "pods"}, name)
    	}
    	return f.pod, nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. pkg/registry/core/replicationcontroller/storage/storage.go

    }
    
    func (r *ScaleREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {
    	obj, err := r.store.Get(ctx, name, options)
    	if err != nil {
    		return nil, errors.NewNotFound(autoscaling.Resource("replicationcontrollers/scale"), name)
    	}
    	rc := obj.(*api.ReplicationController)
    	return scaleFromRC(rc), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12K bytes
    - Viewed (0)
  10. pkg/registry/apps/replicaset/storage/storage.go

    func (r *ScaleREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {
    	obj, err := r.store.Get(ctx, name, options)
    	if err != nil {
    		return nil, errors.NewNotFound(apps.Resource("replicasets/scale"), name)
    	}
    	rs := obj.(*apps.ReplicaSet)
    	scale, err := scaleFromReplicaSet(rs)
    	if err != nil {
    		return nil, errors.NewBadRequest(fmt.Sprintf("%v", err))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top