-
Notifications
You must be signed in to change notification settings - Fork 820
Remove support schema flags, only use config file. #2221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a71faff
to
5ff1cab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with very minor fixes.
5ff1cab
to
9e07d1c
Compare
af006a3
to
42d465f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job @gouthamve! Happy you approached integration tests for the first time 😉 I left few comments here and there: can't wait to see this PR merged!
Pay attention that:
dynamodb.original-table-name
is referenced intable-manager-dep.yaml
dynamodb.use-periodic-tables
,dynamodb.periodic-table
,dynamodb.chunk-table
have several references across the doc
9ef8d8c
to
f852ca6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (I left few minor comments)
f.Var(&cfg.ChunkTablesFrom, "dynamodb.chunk-table.from", "Date after which to write chunks to DynamoDB.") | ||
cfg.ChunkTables.RegisterFlags("dynamodb.chunk-table", "cortex_chunks_", f) | ||
flag.StringVar(&cfg.fileName, "schema-config-file", "", "The path to the schema config file.") | ||
// TODO(gouthamve): Add a metric for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we wanna keep this TODO? Is it really useful a metric for this?
Also rename the schema config file flag to something sane. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Also rename the schema config file flag to something sane. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
dac1ecf
to
4bd8a88
Compare
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Table manager can automatically add AWS tags to created DynamoDB tables. Previously this was done using a command line argument like “-dynamodb.index-table.tag=foo=bar” but this moved onto the schema configuration in PR cortexproject#2221 This PR updates this old reference on the cli argument. Signed-off-by: Juho Mäkinen <juho.makinen@gmail.com>
Table manager can automatically add AWS tags to created DynamoDB tables. Previously this was done using a command line argument like “-dynamodb.index-table.tag=foo=bar” but this moved onto the schema configuration in PR #2221 This PR updates this old reference on the cli argument. Signed-off-by: Juho Mäkinen <juho.makinen@gmail.com>
…tex#2221) * Remove support schema flags, only use config file. Also rename the schema config file flag to something sane. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Update docs to use the schema file. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Deprecate not remove the config flag. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Make integration tests pass? Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Remove support schema flags, only use config file. Also rename the schema config file flag to something sane. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Update docs to use the schema file. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Deprecate not remove the config flag. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Update docs/configuration/schema-config-reference.md Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fixed schema config doc Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fixes after rebase Signed-off-by: Marco Pracucci <marco@pracucci.com> * Remove duplicated entry from CHANGELOG Signed-off-by: Marco Pracucci <marco@pracucci.com> Co-authored-by: Marco Pracucci <marco@pracucci.com>
Also rename the schema config file flag to something sane.
Which issue(s) this PR fixes:
Fixes #2208
Checklist
Tests updatedCHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]