-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement tenant deletion for empty tenants (#3611)
* Extend backend.Reader with Find() function * Extend backend.Writer with Delete() function * Add EmptyTenantDeletion age config to tempodb * Add delete handling to poller * Add integration tests for poller change * Update backend implementations * Fix lint * Setup test defaults * Integrate prefix test permutations * Add doc for the new configuration option * Update changelog * Fix local implementation to ignore directories * Tidy up todo after test coverage * Update docs/sources/tempo/configuration/_index.md Co-authored-by: Kim Nylander <[email protected]> * Address some PR feedback * Rename backend.FindOpts -> backend.FindMatch * Adjust default delete time from 20m -> 12h * Add log message for object deletion * Add additional safety check to avoid deletion * Add test default value * Godoc update after rename * Drop logging from the backend used for testing * Require empty tenant deletion to be enabled in the config * Add docs for _enabled config --------- Co-authored-by: Kim Nylander <[email protected]>
- Loading branch information
1 parent
35aa72e
commit 3f831f9
Showing
16 changed files
with
545 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.