Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

receiver: make tenant-header of receiver configurable #254

Merged
merged 2 commits into from
Nov 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
-

### Changed

- [#254](https://github.com/thanos-io/kube-thanos/pull/254) Add support for tenant header configuration to receiver.
- [#247](https://github.com/thanos-io/kube-thanos/pull/247) Make Compact service headless.

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'receive="true"',
],
tenantLabelName: null,
tenantHeader: null,
clusterDomain: 'cluster.local',
extraEnv: [],

Expand Down
4 changes: 4 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ function(params) {
if tr.config.tenantLabelName != null then [
'--receive.tenant-label-name=%s' % tr.config.tenantLabelName,
] else []
) + (
if tr.config.tenantHeader != null then [
'--receive.tenant-header=%s' % tr.config.tenantHeader,
] else []
) + (
if tr.config.hashringConfigMapName != '' then [
'--receive.hashrings-file=/var/lib/thanos-receive/hashrings.json',
Expand Down