Skip to content

Commit

Permalink
Diagnostic mode handle SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
a-thomas-22 committed Sep 16, 2024
1 parent d1e7144 commit 011dd3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/nitro/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ maintainers:

type: application

version: 0.6.15
version: 0.6.16

appVersion: "v3.1.2-309340a"
13 changes: 11 additions & 2 deletions charts/nitro/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,17 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.diagnosticMode }}
command: ["sleep"]
args: ["infinity"]
command: ["/bin/sh"]
args:
- -c
- |
#!/usr/bin/env bash
set -eo pipefail
trap 'exit 0' SIGTERM
sleep infinity &
wait $!
{{- else if .Values.commandOverride.enabled }}
{{- with .Values.commandOverride.command }}
command: {{- toYaml . | nindent 8}}
Expand Down

0 comments on commit 011dd3e

Please sign in to comment.