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

store: Add min/max time flag configuration #213

Merged
merged 1 commit into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
- [#192](https://github.com/thanos-io/kube-thanos/pull/192) sidecar: Add pod discovery
- [#194](https://github.com/thanos-io/kube-thanos/pull/194) Allow configuring --label and --receive.tenant-label-name flags.
- [#209](https://github.com/thanos-io/kube-thanos/pull/209) Allow configuring --label and --refresh flags of bucket web.
- [#213](https://github.com/thanos-io/kube-thanos/pull/213) Allow configuring `--min-time` and `--max-time` of store.

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
http: 10902,
},
tracing: {},
minTime: '',
maxTime: '',

memcachedDefaults+:: {
config+: {
Expand Down
8 changes: 8 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-store.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ function(params) {
if std.length(ts.config.bucketCache) > 0 then [
'--store.caching-bucket.config=' + std.manifestYamlDoc(ts.config.bucketCache),
] else []
) + (
if std.length(ts.config.minTime) > 0 then [
'--min-time=' + ts.config.minTime,
] else []
) + (
if std.length(ts.config.maxTime) > 0 then [
'--max-time=' + ts.config.maxTime,
] else []
) + (
if std.length(ts.config.tracing) > 0 then [
'--tracing.config=' + std.manifestYamlDoc(
Expand Down