Skip to content

Commit

Permalink
Gracefully close kyuubi & add customer labels
Browse files Browse the repository at this point in the history
  • Loading branch information
HYBG-1126 committed Sep 20, 2024
1 parent 12a5a0a commit fd6a45f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/kyuubi/templates/kyuubi-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ metadata:
name: {{ .Release.Name }}
labels:
{{- include "kyuubi.labels" . | nindent 4 }}
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand Down Expand Up @@ -115,6 +118,27 @@ spec:
{{- with .Values.volumeMounts }}
{{- tpl (toYaml .) $ | nindent 12 }}
{{- end }}
lifecycle:
{{- if .Values.lifecycle.postStart }}
postStart:
{{- if .Values.lifecycle.postStart.exec }}
exec:
{{- if .Values.lifecycle.postStart.exec.command }}
command:
{{- toYaml .Values.lifecycle.postStart.exec.command | nindent 16 }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.lifecycle.preStop }}
preStop:
{{- if .Values.lifecycle.preStop.exec }}
exec:
{{- if .Values.lifecycle.preStop.exec.command }}
command:
{{- toYaml .Values.lifecycle.preStop.exec.command | nindent 16 }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.containers }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit fd6a45f

Please sign in to comment.