Skip to content

Commit

Permalink
helm-chart/ray-cluster: Allow setting pod lifecycle (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christos Kotsis authored Aug 20, 2022
1 parent 92d1ffb commit 6fe0b3c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
{{- if .Values.head.ports }}
ports: {{- toYaml .Values.head.ports | nindent 14}}
{{- end }}
{{- if .Values.head.lifecycle }}
lifecycle:
{{- toYaml .Values.head.lifecycle | nindent 14 }}
{{- end }}
volumes: {{- toYaml .Values.head.volumes | nindent 10 }}
affinity: {{- toYaml .Values.head.affinity | nindent 10 }}
tolerations: {{- toYaml .Values.head.tolerations | nindent 10 }}
Expand Down Expand Up @@ -81,6 +85,10 @@ spec:
envFrom: {{- toYaml $ | nindent 14}}
{{- end }}
ports: {{- toYaml $values.ports | nindent 14}}
{{- if $values.lifecycle }}
lifecycle:
{{- toYaml $values.lifecycle | nindent 14 }}
{{- end }}
volumes: {{- toYaml $values.volumes | nindent 10 }}
affinity: {{- toYaml $values.affinity | nindent 10 }}
tolerations: {{- toYaml $values.tolerations | nindent 10 }}
Expand Down Expand Up @@ -124,6 +132,10 @@ spec:
envFrom: {{- toYaml . | nindent 14}}
{{- end }}
ports: {{- toYaml .Values.worker.ports | nindent 14}}
{{- if .Values.worker.lifecycle }}
lifecycle:
{{- toYaml .Values.worker.lifecycle | nindent 14 }}
{{- end }}
volumes: {{- toYaml .Values.worker.volumes | nindent 10 }}
affinity: {{- toYaml .Values.worker.affinity | nindent 10 }}
tolerations: {{- toYaml .Values.worker.tolerations | nindent 10 }}
Expand Down

0 comments on commit 6fe0b3c

Please sign in to comment.