- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for deleteInstanceKeys (0.14 sec)
-
pilot/pkg/serviceregistry/serviceentry/store.go
all = append(all, instances...) } return all } // deleteInstanceKeys deletes all instances with the given configKey and instanceKey // Note: as a convenience, this takes a []ServiceInstance instead of []instanceKey, as most callers have this format // However, this function only operates on the instance keys func (s *serviceInstancesStore) deleteInstanceKeys(key configKeyWithParent, instances []*model.ServiceInstance) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 6.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/store_test.go
gotSeInstances = store.getServiceEntryInstances(key) if len(gotSeInstances) != 0 { t.Errorf("got unexpected instances %v", gotSeInstances) } // 7. test deleteInstanceKeys store.deleteInstanceKeys(cpKey, instances) gotInstances = store.getAll() if len(gotInstances) != 0 { t.Errorf("got unexpected instances %v", gotSeInstances) } } func TestServiceStore(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 8.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/controller.go
configKey: key, parent: namespacedName, } if event == model.EventDelete { s.serviceInstances.deleteServiceEntryInstances(namespacedName, key) s.serviceInstances.deleteInstanceKeys(parentKey, instancesUpdated) } else { s.serviceInstances.updateInstances(parentKey, instancesUpdated) s.serviceInstances.updateServiceEntryInstancesPerConfig(namespacedName, key, instance) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 36.8K bytes - Viewed (0)