Skip to content

Commit 93b641c

Browse files
committed
force toString
1 parent 33856cd commit 93b641c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/deployments.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ spec:
101101
exec: # https://blog.laputa.io/graceful-shutdown-in-kubernetes-85f1c8d586da
102102
# kubeproxy and kubelet both race
103103
# wait a bit to ensure kubeproxy has removed the iptables rule.
104-
command: [ "sleep", {{ .Values.st2auth.preStopSleep | default "10" }} ]
104+
command: [ "sleep", {{ .Values.st2auth.preStopSleep | toString }} ]
105105
postStart:
106106
exec:
107107
command: ["/bin/bash", "/post-start.sh"]
@@ -231,7 +231,7 @@ spec:
231231
exec: # https://blog.laputa.io/graceful-shutdown-in-kubernetes-85f1c8d586da
232232
# kubeproxy and kubelet both race
233233
# wait a bit to ensure kubeproxy has removed the iptables rule.
234-
command: [ "sleep", {{ .Values.st2api.preStopSleep | default "10" }} ]
234+
command: [ "sleep", {{ .Values.st2api.preStopSleep | toString }} ]
235235
postStart:
236236
exec:
237237
command: ["/bin/bash", "/post-start.sh"]
@@ -354,7 +354,7 @@ spec:
354354
exec: # https://blog.laputa.io/graceful-shutdown-in-kubernetes-85f1c8d586da
355355
# kubeproxy and kubelet both race
356356
# wait a bit to ensure kubeproxy has removed the iptables rule.
357-
command: [ "sleep", {{ .Values.st2stream.preStopSleep | default "10" }} ]
357+
command: [ "sleep", {{ .Values.st2stream.preStopSleep | toString }} ]
358358
postStart:
359359
exec:
360360
command: ["/bin/bash", "/post-start.sh"]
@@ -438,7 +438,7 @@ spec:
438438
exec: # https://blog.laputa.io/graceful-shutdown-in-kubernetes-85f1c8d586da
439439
# kubeproxy and kubelet both race
440440
# wait a bit to ensure kubeproxy has removed the iptables rule.
441-
command: [ "sleep", {{ .Values.st2web.preStopSleep | default "10" }} ]
441+
command: [ "sleep", {{ .Values.st2web.preStopSleep | toString }} ]
442442
# Probe to check if app is running. Failure will lead to a pod restart.
443443
livenessProbe:
444444
httpGet:

0 commit comments

Comments
 (0)