-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor bucket configuration flags for Object Store (#500)
* Add unified flags for bucket configuration Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Use the unified bucket config for components Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Use double quotes instead of single quotes Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Fixed missing flags in man page Signed-off-by: jojohappy <sarahdj0917@gmail.com> * To use value of bucket config instead of pointer to get value from command-line arguments Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Remove useless code Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update documents Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update - Rename provider to objstore for flags - To use objProvider instead of string for Provider Type - Get rid of bucket configuration errors Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Change errors package Signed-off-by: jojohappy <sarahdj0917@gmail.com> * To validate the configuration in each provider client Signed-off-by: jojohappy <sarahdj0917@gmail.com> * To support to make bucket configuration flag using suffix Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update documents Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Refactor: - Remove all flags of objstore - Add flag as objstore.config to pass the configuration for bucket with yaml - To define the configuration for each provider - Add new method to get the name of bucket Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update documents * Fixed missing method for inmem bucket * Update the describe for objstore.config * To setup bucket flags required for component bucket and downsample * Rename Content to Config for Bucket.Config Signed-off-by: jojohappy <sarahdj0917@gmail.com> * To change error handler idiom Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update describe for component store Signed-off-by: jojohappy <sarahdj0917@gmail.com> * To setup secret-key just use envvar Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update the placeholder of flags and documents Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update example for bucket Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update documents Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update CHANGELOG Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Fixed something nits * To distinguish no bucket is configured or not supported Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update CHANGELOG Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Remove unrequired unit test Signed-off-by: jojohappy <sarahdj0917@gmail.com> * To set bucket flag required for component store and compact Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Rename GetBucket to Name & Set context as first argument Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Wrap error to give more information Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Rename field bucket to name for the struct of Bucket Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update documents Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Change the bucket configuration flags to reference to YAML file * Do not get the secret-key from envvar * Update documents * Update CHANGELOG Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update test case for package objstore client Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Rename flag objstore.config.file to objstore.config-file Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Update CHANGELOG * To wrap errors for loading and parsing bucket configuration file Signed-off-by: jojohappy <sarahdj0917@gmail.com> * Rename objstore flag for consistency Signed-off-by: jojohappy <sarahdj0917@gmail.com>
- Loading branch information
Showing
22 changed files
with
429 additions
and
372 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
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.