- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for desiredAndActualSlices (0.26 sec)
-
pkg/controller/endpointslicemirroring/metrics/cache.go
type metricsUpdate struct { desired, actual int } // desiredAndActualSlices returns a metricsUpdate with the desired and actual // number of EndpointSlices given the current values in the cache. // Must be called holding lock. func (c *Cache) desiredAndActualSlices() metricsUpdate { mUpdate := metricsUpdate{} for _, spCache := range c.cache { for _, eInfo := range spCache.items {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/metrics/cache_test.go
expectNumEndpointsAndSlices(t, c, 4, 4, 160) } func expectNumEndpointsAndSlices(t *testing.T, c *Cache, desired int, actual int, numEndpoints int) { t.Helper() mUpdate := c.desiredAndActualSlices() if mUpdate.desired != desired { t.Errorf("Expected numEndpointSlices to be %d, got %d", desired, mUpdate.desired) } if mUpdate.actual != actual {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 2.6K bytes - Viewed (0)