From 443f26c3fdfb1df4c67f3419d5b9993c6bd918e4 Mon Sep 17 00:00:00 2001 From: RalfHammer <119853077+RalfHammer@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:18:20 +0200 Subject: [PATCH] Add TODO for keys in shared resource cache --- internal/cf/resourcecache.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/cf/resourcecache.go b/internal/cf/resourcecache.go index 0d0b4dc..8ae4300 100644 --- a/internal/cf/resourcecache.go +++ b/internal/cf/resourcecache.go @@ -22,6 +22,14 @@ import ( type resourceCache struct { mutex sync.RWMutex + // TODO: document which keys are used for the maps + // TODO: check if the keys for resources like spaces are unique across all CF organziations + // Scenario: + // - we have two CF organizations and one org_client for each of them + // - both org_clients will use the same shared resource cache + // => verify that it is not possible that two spaces from different CF organizations + // are using the same key for below map + // cache for each resource type bindings map[string]*facade.Binding instances map[string]*facade.Instance