- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NewBiMultimap (0.13 sec)
-
pkg/controller/util/selectors/bimultimap.go
selectingObjects map[Key]*selectingObject // Associations. labeledBySelecting map[selectorKey]*labeledObjects selectingByLabeled map[labelsKey]*selectingObjects } // NewBiMultimap creates a map. func NewBiMultimap() *BiMultimap { return &BiMultimap{ labeledObjects: make(map[Key]*labeledObject), selectingObjects: make(map[Key]*selectingObject), labeledBySelecting: make(map[selectorKey]*labeledObjects),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 21:41:32 UTC 2023 - 9.6K bytes - Viewed (0) -
pkg/controller/util/selectors/bimultimap_test.go
} permutations = [][]int{p} } for _, permutation := range permutations { name := tc.name + fmt.Sprintf(" permutation %v", permutation) t.Run(name, func(t *testing.T) { multimap := NewBiMultimap() for i := range permutation { tc.ops[i](multimap) // Run consistency check after every operation. err := consistencyCheck(multimap) if err != nil { t.Fatalf(err.Error()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 13 01:56:36 UTC 2022 - 16.9K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
}, } return true, obj, nil }) tc.runTest(t) } func TestConditionNoAmbiguousSelectorWhenNoSelectorOverlapBetweenHPAs(t *testing.T) { hpaSelectors := selectors.NewBiMultimap() hpaSelectors.PutSelector(selectors.Key{Name: "test-hpa-2", Namespace: testNamespace}, labels.SelectorFromSet(labels.Set{"cheddar": "cheese"})) tc := testCase{ minReplicas: 2,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal.go
scaleUpEventsLock: sync.RWMutex{}, scaleDownEvents: map[string][]timestampedScaleEvent{}, scaleDownEventsLock: sync.RWMutex{}, hpaSelectors: selectors.NewBiMultimap(), } hpaInformer.Informer().AddEventHandlerWithResyncPeriod( cache.ResourceEventHandlerFuncs{ AddFunc: hpaController.enqueueHPA, UpdateFunc: hpaController.updateHPA,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0)