Skip to content

Commit 52c51cc

Browse files
metalmatzekakkoyun
authored andcommitted
Use tc.config.replicas variable in compact component.
While we shouldn't run multiple compactors at once, we still might want to run 1 or 0 replicas. Signed-off-by: Matthias Loibl <[email protected]>
1 parent ac002f0 commit 52c51cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
8181
container.mixin.readinessProbe.httpGet.withScheme('HTTP') +
8282
container.mixin.readinessProbe.httpGet.withPath('/-/ready');
8383

84-
statefulSet.new(tc.config.name, 1, c, [], tc.config.commonLabels) +
84+
statefulSet.new(tc.config.name, tc.config.replicas, c, [], tc.config.commonLabels) +
8585
statefulSet.mixin.metadata.withNamespace(tc.config.namespace) +
8686
statefulSet.mixin.metadata.withLabels(tc.config.commonLabels) +
8787
statefulSet.mixin.spec.withServiceName(tc.service.metadata.name) +

0 commit comments

Comments
 (0)