Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored limits to be able to define them dynamically when Cortex i…
…s vendored in another project (#1549) * Refactored limits to be able to define them dynamically when vendoring in Cortex Added OverridesManager which would store default limits and per tenant overrides as an interface Factory method for creating OverridesManager accepts overrides reload config, method to load overrides from yaml file and default limit Sample and Labels validation methods now accept any type which implement required methods to get required limits for validation Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com> * renamed receiver for overrides manager methods Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com> * added comment regarding loading yaml Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com> * exported OverridesLoader for godoc and removed an unused interface Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com> * added struct to hold config for overrides manager Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com> * Added a todo for moving overrides loader to OverridesManager when a bug in yamlv3 decoder is fixed Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
- Loading branch information
1 parent
0460dad
commit 870fe73
Showing
7 changed files
with
393 additions
and
288 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
Oops, something went wrong.