generated from TrueCloudLab/basic
Revise storage interface for policy engine #7
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/policy-engine#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are 2 problems with it:
AddNamespace
andAddResource
could really combined in a single method (see policy contract for an example).The following scheme must be easy to implement:
I think we need to split CachedChainStorage into several interfaces. Each interface would adhere to SRP. That nukes out
CachedChainStorage
at all:Engine
should be kept standaloneLocalOverrides
/LocalRuleChainSource
/,LocalRuleChains
with methodsMorphRuleChainSource
with methodsAlso, I would consider to rename
Engine
toChainRouter
name with method:WDYT?
Why does the LocalOverrideStorage require
resource
instead of namespace unlike MorphRuleChainStorage ?Probably the namespace be part of resource anyway. But it seems this is right only for storage-node (not for s3).
Furthermore when we want to add local overrides using control api (in s3/node) we have to know resource name from chain rules. But what if there are more than just one resource in chain (do we have to split rules into different chains then)?
The interface has been revised in PRs mentioned above