Skip to content

Commit

Permalink
Add delete delay flags
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Mar 24, 2020
1 parent 25c6f1f commit 0c9bee8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
21 changes: 21 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-compact.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,27 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
},
},

withDeleteDelay:: {
local tc = self,

statefulSet+: {
spec+: {
template+: {
spec+: {
containers: [
if c.name == 'thanos-compact' then c {
args+: [
'--delete-delay=' + tc.config.deleteDelay,
],
} else c
for c in super.containers
],
},
},
},
},
},

withResources:: {
local tc = self,
config+:: {
Expand Down
20 changes: 20 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-store.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,26 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
},
},

withIgnoreDeletionMarksDelay:: {
local ts = self,
statefulSet+: {
spec+: {
template+: {
spec+: {
containers: [
if c.name == 'thanos-store' then c {
args+: [
'--ignore-deletion-marks-delay=' + ts.config.ignoreDeletionMarksDelay,
],
} else c
for c in super.containers
],
},
},
},
},
},

withServiceMonitor:: {
local ts = self,
serviceMonitor: {
Expand Down

0 comments on commit 0c9bee8

Please sign in to comment.