Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getBuiltinIndexes (0.33 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker.go

    // their processing.
    // We define the indexes as a map from a resource to the path
    // to the field in the object on which the index is built.
    type builtinIndexes map[string]string
    
    func getBuiltinIndexes() builtinIndexes {
    	// The only existing indexes as of now are:
    	// - spec.nodeName for pods
    	// - metadata.Name for nodes, secrets and configmaps
    	// However, we can ignore the latter, because the requestInfo.Name
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker_test.go

    		GrouplessAPIPrefixes: sets.NewString("api"),
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			watchTracker := &watchTracker{
    				indexes:    getBuiltinIndexes(),
    				watchCount: make(map[watchIdentifier]int),
    			}
    
    			requestInfo, err := requestInfoFactory.NewRequestInfo(testCase.request)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 03 14:02:51 UTC 2021
    - 10.4K bytes
    - Viewed (0)
Back to top