Skip to content

Commit

Permalink
Register CLI flag for ChunkStoreConfig.MaxLookBackPeriod
Browse files Browse the repository at this point in the history
Even though the flag is already deprecated, registering the flag is necessary
for generating the config reference documentation.
  • Loading branch information
chaudum committed Sep 1, 2021
1 parent 0f0cb9f commit 6770f22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/storage/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ type ChunkStoreConfig struct {
// RegisterFlags adds the flags required to configure this flag set.
func (cfg *ChunkStoreConfig) RegisterFlags(f *flag.FlagSet) {
cfg.StoreConfig.RegisterFlags(f)
_ = cfg.MaxLookBackPeriod.Set("0s")
f.Var(&cfg.MaxLookBackPeriod, "store.max-look-back-period", "This flag is deprecated. Use -querier.max-query-lookback instead.")
}

func (cfg *ChunkStoreConfig) Validate(logger log.Logger) error {
Expand Down

0 comments on commit 6770f22

Please sign in to comment.