Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for indexField (0.47 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    func createPodPredicate(field fields.Selector, namespaceScoped bool, indexField []string) storage.SelectionPredicate {
    	return storage.SelectionPredicate{
    		Label:       labels.Everything(),
    		Field:       field,
    		GetAttrs:    determinePodGetAttrFunc(namespaceScoped, indexField),
    		IndexFields: indexField,
    	}
    }
    
    func determinePodGetAttrFunc(namespaceScoped bool, indexField []string) storage.AttrFunc {
    	if indexField != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    		scope.name = selectorName
    	}
    
    	triggerValue, triggerSupported := "", false
    	if c.indexedTrigger != nil {
    		for _, field := range pred.IndexFields {
    			if field == c.indexedTrigger.indexName {
    				if value, ok := pred.Field.RequiresExactMatch(field); ok {
    					triggerValue, triggerSupported = value, true
    					break
    				}
    			}
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top