Skip to content

Commit

Permalink
fix shutdown call, no longer needed on graylog 5+
Browse files Browse the repository at this point in the history
Signed-off-by: metron2 <[email protected]>
  • Loading branch information
metron2 committed May 30, 2024
1 parent ecfb4cf commit c2a7864
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions charts/graylog/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,6 @@ spec:
{{- if .Values.graylog.extraVolumeMounts }}
{{ toYaml .Values.graylog.extraVolumeMounts | nindent 12 }}
{{- end }}
lifecycle:
preStop:
exec:
command:
- bash
- -ec
- |
curl {{ if .Values.graylog.tls.enabled }}-k{{ end }} -XPOST -sS \
-u "{{ .Values.graylog.rootUsername }}:${GRAYLOG_PASSWORD_SECRET}" \
-H "X-Requested-By: {{ template "graylog.fullname" . }}" \
{{ template "graylog.formatUrl" (list . "localhost:9000/api/system/shutdown/shutdown") }}
{{- if .Values.graylog.sidecarContainers }}
{{ toYaml .Values.graylog.sidecarContainers | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit c2a7864

Please sign in to comment.