Skip to content

Commit

Permalink
[Helm][minor] Make "disabled" flag for worker groups optional (ray-pr…
Browse files Browse the repository at this point in the history
…oject#548)

In this PR, I give the disabled key a default value to make it become an optional field.
  • Loading branch information
kevin85421 authored Sep 12, 2022
1 parent f8c37fe commit 25d0f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:
{{ include "ray-cluster.labels" $ | indent 10 }}
{{- end }}
{{- end }}
{{- if ne .Values.worker.disabled true }}
{{- if ne (.Values.worker.disabled | default false) true }}
- rayStartParams:
{{- range $key, $val := .Values.worker.initArgs }}
{{ $key }}: {{ $val | quote }}
Expand Down
4 changes: 2 additions & 2 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ head:

worker:
# If you want to disable the default workergroup
# change the line below
disabled: false
# uncomment the line below
# disabled: true
groupName: workergroup
replicas: 1
type: worker
Expand Down

0 comments on commit 25d0f2b

Please sign in to comment.