Skip to content

Commit

Permalink
Add TODO for keys in shared resource cache
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfHammer committed Sep 19, 2024
1 parent 863e518 commit 443f26c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/cf/resourcecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 443f26c

Please sign in to comment.