Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for esDataChanged (0.1 sec)

  1. pkg/proxy/endpointslicecache.go

    }
    
    func (cache *EndpointSliceCache) isLocal(hostname string) bool {
    	return len(cache.hostname) > 0 && hostname == cache.hostname
    }
    
    // esDataChanged returns true if the esData parameter should be set as a new
    // pending value in the cache.
    func (cache *EndpointSliceCache) esDataChanged(serviceKey types.NamespacedName, sliceKey string, esData *endpointSliceData) bool {
    	if _, ok := cache.trackerByServiceMap[serviceKey]; ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (1)
  2. pkg/proxy/endpointslicecache_test.go

    				t.Fatalf("Expected no error calling endpointSliceCacheKeys(): %v", err)
    			}
    
    			esData := &endpointSliceData{tc.updatedSlice, false}
    			changed := tc.cache.esDataChanged(serviceKey, sliceKey, esData)
    
    			if tc.expectChanged != changed {
    				t.Errorf("Expected esDataChanged() to return %t, got %t", tc.expectChanged, changed)
    			}
    
    			cmc.Check(t)
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top