Skip to content

Commit 56490cd

Browse files
committed
compact: Fix handling of tc.config.replicas
Previously, the value was hard-coded to 1 Signed-off-by: Andrei Nistor <andrei@nistor.tech>
1 parent 4ab42ad commit 56490cd

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
2020
- [#279](https://github.com/thanos-io/kube-thanos/pull/279) Change `hashringConfigmapName` to `hashringConfigMapName` in Receive configuration.
2121
- [#284](https://github.com/thanos-io/kube-thanos/pull/284) Change Receive `PodDisruptionBudget` api version to `policy/v1`
2222
- [#293](https://github.com/thanos-io/kube-thanos/pull/293) Upgrade to Thanos v0.30.2
23+
- [#303](https://github.com/thanos-io/kube-thanos/pull/303) Compact: allow configuration of `tc.config.replicas`
2324

2425
### Added
2526

jsonnet/kube-thanos/kube-thanos-compact-default-params.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
version: error 'must provide version',
99
image: error 'must provide image',
1010
imagePullPolicy: 'IfNotPresent',
11+
replicas: 1,
1112
objectStorageConfig: error 'must provide objectStorageConfig',
1213
resources: {},
1314
logLevel: 'info',

jsonnet/kube-thanos/kube-thanos-compact.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function(params) {
138138
labels: tc.config.commonLabels,
139139
},
140140
spec: {
141-
replicas: 1,
141+
replicas: tc.config.replicas,
142142
selector: { matchLabels: tc.config.podLabelSelector },
143143
serviceName: tc.service.metadata.name,
144144
template: {

0 commit comments

Comments
 (0)