- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for NamespaceFrom (0.26 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
} } // determine the namespace and name scope of the watch, first from the request, secondarily from the field selector scope := namespacedName{} if requestNamespace, ok := request.NamespaceFrom(ctx); ok && len(requestNamespace) > 0 { scope.namespace = requestNamespace } else if selectorNamespace, ok := pred.Field.RequiresExactMatch("metadata.namespace"); ok { scope.namespace = selectorNamespace }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 51.8K bytes - Viewed (0) -
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) -
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)