Skip to content

Commit

Permalink
compact: Fix handling of tc.config.replicas
Browse files Browse the repository at this point in the history
Previously, the value was hard-coded to 1

Signed-off-by: Andrei Nistor <[email protected]>
  • Loading branch information
andrein committed May 23, 2023
1 parent 4ab42ad commit 56490cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
- [#279](https://github.com/thanos-io/kube-thanos/pull/279) Change `hashringConfigmapName` to `hashringConfigMapName` in Receive configuration.
- [#284](https://github.com/thanos-io/kube-thanos/pull/284) Change Receive `PodDisruptionBudget` api version to `policy/v1`
- [#293](https://github.com/thanos-io/kube-thanos/pull/293) Upgrade to Thanos v0.30.2
- [#303](https://github.com/thanos-io/kube-thanos/pull/303) Compact: allow configuration of `tc.config.replicas`

### Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
version: error 'must provide version',
image: error 'must provide image',
imagePullPolicy: 'IfNotPresent',
replicas: 1,
objectStorageConfig: error 'must provide objectStorageConfig',
resources: {},
logLevel: 'info',
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/kube-thanos/kube-thanos-compact.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function(params) {
labels: tc.config.commonLabels,
},
spec: {
replicas: 1,
replicas: tc.config.replicas,
selector: { matchLabels: tc.config.podLabelSelector },
serviceName: tc.service.metadata.name,
template: {
Expand Down

0 comments on commit 56490cd

Please sign in to comment.