Skip to content

Commit

Permalink
Add deduplication replica label flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkoyun committed Mar 24, 2020
1 parent 5e7af66 commit b8778b7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-compact.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,29 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
},
},


withDeduplication(replicaLabels):: {
local tc = self,

statefulSet+: {
spec+: {
template+: {
spec+: {
containers: [
if c.name == 'thanos-compact' then c {
args+: [
'--deduplication.replica-label=' + l
for l in replicaLabels
],
} else c
for c in super.containers
],
},
},
},
},
},

withResources:: {
local tc = self,
config+:: {
Expand Down

0 comments on commit b8778b7

Please sign in to comment.