Skip to content
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

Add injectable middlewares to bucket client #3278

Merged
merged 4 commits into from Oct 9, 2020
Merged

Conversation

jtlisi
Copy link
Contributor

@jtlisi jtlisi commented Oct 4, 2020

What this PR does:

  • This adds a config field for injecting middlewares when creating a bucket client to allow for the clients created within modules to be created with these middlewares.
  • This approach is overtly simple and a factory approach similar to the Ruler may be preferable.

@jtlisi jtlisi marked this pull request as draft October 4, 2020 20:25
@jtlisi jtlisi marked this pull request as ready for review October 5, 2020 12:55
Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with nits.

pkg/storage/tsdb/bucket_client.go Outdated Show resolved Hide resolved
pkg/storage/tsdb/config.go Outdated Show resolved Hide resolved
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's simple but if it works for your use case it LGTM.

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
@jtlisi jtlisi merged commit 69ffb56 into master Oct 9, 2020
@jtlisi jtlisi deleted the 20201004_extend_bucket branch October 9, 2020 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants