Gatway's translator_syncer has been juggling some tech debt for a bit, which could afford to be removed. In particular:
// Tech Debt: we've identified that it's not useful to have both two parallel data structures
// proxyToLastStatus map[string]reportsAndStatus
// currentGeneratedProxies []*core.ResourceRef
// floating around. Historically, they were there to envorce an alphabetical processing of
// `proxyToLastStatus`
an optimal solution would look like...
eliminating the currentGeneratedProxies data structure
fully clearing proxyToLastStatus on every call of setCurrentProxies
renaming of the resulting data structure to be more relevant
This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs.
Version
Gatway's translator_syncer has been juggling some tech debt for a bit, which could afford to be removed. In particular:
an optimal solution would look like...
currentGeneratedProxies
data structureproxyToLastStatus
on every call ofsetCurrentProxies