Skip to content

Commit

Permalink
feat: ✨ Added terminationGracePeriodSeconds and Lifecycle to Trino Co…
Browse files Browse the repository at this point in the history
…ordinator
  • Loading branch information
danielcrisap committed Dec 8, 2023
1 parent 6a2599c commit 76732b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/trino/templates/deployment-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ spec:
{{- end }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.coordinator.terminationGracePeriodSeconds | default 30 }}
containers:
- name: {{ .Chart.Name }}-coordinator
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down Expand Up @@ -122,6 +123,8 @@ spec:
timeoutSeconds: {{ .Values.coordinator.readinessProbe.timeoutSeconds | default 5 }}
failureThreshold: {{ .Values.coordinator.readinessProbe.failureThreshold | default 6 }}
successThreshold: {{ .Values.coordinator.readinessProbe.successThreshold | default 1 }}
lifecycle:
{{- toYaml .Values.coordinator.lifecycle | nindent 12 }}
resources:
{{- toYaml .Values.coordinator.resources | nindent 12 }}
{{- with .Values.coordinator.nodeSelector }}
Expand Down
7 changes: 7 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ coordinator:
# failureThreshold: 6
# successThreshold: 1

lifecycle: {}
# preStop:
# exec:
# command: ["/bin/sh", "-c", "sleep 120"]

terminationGracePeriodSeconds: ""

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 76732b0

Please sign in to comment.