Introduce a method to list targets in Policy contract #78
Labels
No labels
P0
P1
P2
P3
good first issue
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#78
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?
The chain listing has become more unambiguous - check here. So, we cannot list all chains by
ListByPrefix('n', "", "")
- the invocation lists only root-namespace chains.But one problem is still relevant: we cannot determine which targets are kept in contract - we may never clean them out if their names are "forgotten". One method
ListTargets
should be enough to fix everythingAlso, this could be consistent with ControlAPI that manages local overrides, because we already have such method
There is a workaround to list all available namespace chains: ask FrostFS ID contract about all available namespaces and make additional requests per namespace in policy contract. I appreciate any simplifications in this routine.
By the way, is
ListTargets
going to return both namespace and container targets? Can we distinguish them on a contract level or they are all the same?Yes, we will do distinguish them