Skip to content

Commit

Permalink
Merge pull request #228 from onprem/prefix-header
Browse files Browse the repository at this point in the history
Allow configuring `--web.prefix-header` of query.
  • Loading branch information
kakkoyun committed Jun 3, 2021
2 parents 5d95a53 + edd4cd4 commit e1a6859
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ We use *breaking* word for marking changes that are not backward compatible (rel
### Breaking Changes

### Changed
- [226](https://github.com/thanos-io/kube-thanos/pull/226) Only schedule thanos components on linux nodes.
- [#226](https://github.com/thanos-io/kube-thanos/pull/226) Only schedule thanos components on linux nodes.

### Added

- [#228](https://github.com/thanos-io/kube-thanos/pull/228) Allow configuring `--web.prefix-header` of query.
### Fixed

## [v0.19.0](https://github.com/thanos-io/kube-thanos/tree/v0.19.0) (2020-04-19)
Expand Down
6 changes: 6 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-query.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ local defaults = {
replicaLabels: error 'must provide replicaLabels',
stores: ['dnssrv+_grpc._tcp.thanos-store.%s.svc.cluster.local' % defaults.namespace],
externalPrefix: '',
prefixHeader: '',
autoDownsampling: true,
resources: {},
queryTimeout: '',
Expand Down Expand Up @@ -114,6 +115,11 @@ function(params) {
'--web.external-prefix=' + tq.config.externalPrefix,
] else []
) +
(
if tq.config.prefixHeader != '' then [
'--web.prefix-header=' + tq.config.prefixHeader,
] else []
) +
(
if tq.config.queryTimeout != '' then [
'--query.timeout=' + tq.config.queryTimeout,
Expand Down

0 comments on commit e1a6859

Please sign in to comment.