Skip to content

Commit

Permalink
store: Add min/max time flag configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
brancz committed Mar 22, 2021
1 parent cb03ac9 commit 1bf5803
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 1bf5803

Please sign in to comment.