Skip to content

Commit 7dda9df

Browse files
store: --disable-admin-operation flag
Signed-off-by: Naman-B-Parlecha <[email protected]> docs: Adding Flag details Signed-off-by: Naman-B-Parlecha <[email protected]> updated changelog refactor: changelog Signed-off-by: Naman-Parlecha <[email protected]>
1 parent 5080f09 commit 7dda9df

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
1717
### Added
1818

1919
- [#8238](https://github.com/thanos-io/thanos/pull/8238) Receive: add shuffle sharding support
20+
- [#8284](https://github.com/thanos-io/thanos/pull/8284) Store: Add `--disable-admin-operations` Flag to Store Gateway
2021
- [#8266](https://github.com/thanos-io/thanos/pull/8266) Website: maintain expanded state based on current page
2122
- [#8245](https://github.com/thanos-io/thanos/pull/8245) Querier/Query-Frontend/Ruler: Add `--enable-feature=promql-experimental-functions` flag option to enable using promQL experimental functions in respective Thanos components
2223

cmd/thanos/store.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ type storeConfig struct {
105105

106106
indexHeaderLazyDownloadStrategy string
107107

108-
matcherCacheSize int
108+
matcherCacheSize int
109+
disableAdminOperations bool
109110
}
110111

111112
func (sc *storeConfig) registerFlag(cmd extkingpin.FlagClause) {
@@ -229,6 +230,8 @@ func (sc *storeConfig) registerFlag(cmd extkingpin.FlagClause) {
229230

230231
cmd.Flag("matcher-cache-size", "Max number of cached matchers items. Using 0 disables caching.").Default("0").IntVar(&sc.matcherCacheSize)
231232

233+
cmd.Flag("disable-admin-operations", "Disable UI/API admin operations like marking blocks for deletion and no compaction.").Default("false").BoolVar(&sc.disableAdminOperations)
234+
232235
sc.reqLogConfig = extkingpin.RegisterRequestLoggingFlags(cmd)
233236
}
234237

docs/components/store.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ Flags:
301301
of YAML file with request logging
302302
configuration. See format details:
303303
https://thanos.io/tip/thanos/logging.md/#configuration
304-
304+
--disable-admin-operations
305+
Disable UI/API admin operations like marking
306+
blocks for deletion and no compaction.
305307
```
306308

307309
## Time based partitioning

0 commit comments

Comments
 (0)