Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MatchesSingleNamespace (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/selection_predicate.go

    	if matched && s.Field != nil {
    		matched = (matched && s.Field.Matches(f))
    	}
    	return matched
    }
    
    // MatchesSingleNamespace will return (namespace, true) if and only if s.Field matches on the object's
    // namespace.
    func (s *SelectionPredicate) MatchesSingleNamespace() (string, bool) {
    	if len(s.Continue) > 0 || s.Field == nil {
    		return "", false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    	// if we're not already namespace-scoped, see if the field selector narrows the scope of the watch
    	if requestNamespace, _ := genericapirequest.NamespaceFrom(ctx); len(requestNamespace) == 0 {
    		if selectorNamespace, ok := p.MatchesSingleNamespace(); ok {
    			if len(validation.ValidateNamespaceName(selectorNamespace, false)) == 0 {
    				ctx = genericapirequest.WithNamespace(ctx, selectorNamespace)
    			}
    		}
    	}
    
    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