Skip to content

Commit 73e2ac8

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 f847ff0 commit 73e2ac8

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
@@ -16,6 +16,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
1616
### Added
1717

1818
- [#8238](https://github.com/thanos-io/thanos/pull/8238) Receive: add shuffle sharding support
19+
- [#8284](https://github.com/thanos-io/thanos/pull/8284) Store: Add `--disable-admin-operations` Flag to Store Gateway
1920

2021
### Changed
2122

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
@@ -299,7 +299,9 @@ Flags:
299299
stripped prefix value in X-Forwarded-Prefix
300300
header. This allows thanos UI to be served on a
301301
sub-path.
302-
302+
--disable-admin-operations
303+
Disable UI/API admin operations like marking
304+
blocks for deletion and no compaction.
303305
```
304306

305307
## Time based partitioning

0 commit comments

Comments
 (0)