Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewNotFound (0.35 sec)

  1. pkg/controller/history/controller_history_test.go

    						test.revision.Namespace == test.existing[i].revision.Namespace {
    						found = test.existing[i].revision
    						break
    					}
    				}
    				if found == nil {
    					return true, nil, errors.NewNotFound(apps.Resource("controllerrevisions"), test.revision.Name)
    				}
    				b, err := strategicpatch.StrategicMergePatch(
    					[]byte(runtime.EncodeOrDie(clientscheme.Codecs.LegacyCodec(apps.SchemeGroupVersion), test.revision)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  2. pkg/kubelet/status/status_manager_test.go

    	client := fake.Clientset{}
    	syncer := newTestManager(&client)
    	client.AddReactor("get", "pods", func(action core.Action) (bool, runtime.Object, error) {
    		return true, nil, errors.NewNotFound(api.Resource("pods"), "test-pod")
    	})
    	syncer.SetPodStatus(getTestPod(), getRandomPodStatus())
    	verifyActions(t, syncer, []core.Action{getAction()})
    }
    
    func TestSyncPod(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    	case len(subresource) == 0:
    		handlerFunc = r.serveResource(w, req, requestInfo, crdInfo, crd, terminating, supportedTypes)
    	default:
    		responsewriters.ErrorNegotiated(
    			apierrors.NewNotFound(schema.GroupResource{Group: requestInfo.APIGroup, Resource: requestInfo.Resource}, requestInfo.Name),
    			Codecs, schema.GroupVersion{Group: requestInfo.APIGroup, Version: requestInfo.APIVersion}, w, req,
    		)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  4. pkg/controller/disruption/disruption_test.go

    				gr := schema.GroupResource{
    					Group:    customGVK.Group,
    					Resource: resourceName,
    				}
    				return true, nil, errors.NewNotFound(gr, "name")
    			})
    			dc.discoveryClient.Resources = []*metav1.APIResourceList{
    				{
    					GroupVersion: customGVK.GroupVersion().String(),
    					APIResources: tc.apiResources,
    				},
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    		if err != nil {
    			return nil, nil, err
    		}
    		if existingResourceVersion == 0 {
    			if !e.UpdateStrategy.AllowCreateOnUpdate() && !forceAllowCreate {
    				return nil, nil, apierrors.NewNotFound(qualifiedResource, name)
    			}
    		}
    
    		// Given the existing object, get the new object
    		obj, err := objInfo.UpdatedObject(ctx, existing)
    		if err != nil {
    			return nil, nil, err
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
Back to top