Skip to content

Commit

Permalink
Fix worker prestop cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
leifcr committed Oct 2, 2019
1 parent c28f83e commit 882cac7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
description: GitLab Auto-deploy Helm Chart - Rails version
name: auto-deploy-rails
version: 0.3.1
version: 0.3.2
icon: https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo-square.png
5 changes: 1 addition & 4 deletions templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ spec:
lifecycle:
preStop:
exec:
command:
{{- range .Values.worker.preStopCommand }}
- {{ . }}
{{- end }}
command: '{{ .Values.worker.preStopCommand }}'
{{- end }}
{{- if .Values.worker.sidekiq_alive.enabled }}
livenessProbe:
Expand Down
8 changes: 1 addition & 7 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,7 @@ worker:
timeoutSeconds: 5 # Can be less
port: 7433
# SIGTERM triggers a quick exit; gracefully terminate instead
preStopCommand:
- bundle
- exec
- sidekiqctl
- quiet
- /tmp/sidekiq.pid
- "0"
preStopCommand: 'bundle exec sidekiqcl sidekiqctl quiet /tmp/sidekiq.pid 0'
resources: {}
# limits:
# cpu: 100m
Expand Down

0 comments on commit 882cac7

Please sign in to comment.