Skip to content

Commit 9f4a7f6

Browse files
committed
feat: add terminationGracePeriodSeconds to provisioner chart
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 40f3fc3 commit 9f4a7f6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

helm/provisioner/templates/_coder.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Deployment to merge into the libcoder template
1111
spec:
1212
template:
1313
spec:
14+
terminationGracePeriodSeconds: {{ .Values.provisionerDaemon.terminationGracePeriodSeconds }}
1415
containers:
1516
-
1617
{{ include "libcoder.containerspec" (list . "coder.containerspec") | indent 8}}

helm/provisioner/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,8 @@ provisionerDaemon:
202202
{}
203203
# location: usa
204204
# provider: kubernetes
205+
206+
# provisionerDaemon.terminationGracePeriodSeconds -- Time in seconds that Kubernetes should wait before forcibly
207+
# terminating the provisioner daemon. You should set this to be longer than your longest expected build time so that
208+
# redeployments do not interrupt builds in progress.
209+
terminationGracePeriodSeconds: 600

0 commit comments

Comments
 (0)