Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NamespaceFrom (0.21 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    	}
    	return storage.item.DeepCopy(), storage.errors["get"]
    }
    
    func (storage *SimpleRESTStorage) checkContext(ctx context.Context) {
    	storage.actualNamespace, storage.namespacePresent = request.NamespaceFrom(ctx)
    }
    
    func (storage *SimpleRESTStorage) Delete(ctx context.Context, id string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error) {
    	storage.checkContext(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		DeleteStrategy:            strategy,
    		KeyRootFunc: func(ctx context.Context) string {
    			return podPrefix
    		},
    		KeyFunc: func(ctx context.Context, id string) (string, error) {
    			if _, ok := genericapirequest.NamespaceFrom(ctx); !ok {
    				return "", fmt.Errorf("namespace is required")
    			}
    			return path.Join(podPrefix, id), nil
    		},
    		ObjectNameFunc: func(obj runtime.Object) (string, error) { return obj.(*example.Pod).Name, nil },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
Back to top