Skip to content

Commit

Permalink
[Feature][Helm] Align the key of minReplicas and maxReplicas (#663)
Browse files Browse the repository at this point in the history
* [Feature][Helm] Align the key of minReplicas and maxReplicas

Signed-off-by: Andrew Li <[email protected]>

* [Feature][Helm] Updated the values.yaml after align the key of minReplicas and maxReplicas

Signed-off-by: Andrew Li <[email protected]>

* [Feature][Helm] Added backwards compatibility of "maxiReplicas"/"miniReplicas" using default function

Signed-off-by: Andrew Li <[email protected]>

Signed-off-by: Andrew Li <[email protected]>
  • Loading branch information
orcahmlee authored Nov 1, 2022
1 parent 56b2f61 commit 310911c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ spec:
{{ $key }}: {{ $val | quote }}
{{- end }}
replicas: {{ $values.replicas }}
minReplicas: {{ $values.miniReplicas | default 1 }}
maxReplicas: {{ $values.maxiReplicas | default 2147483647 }}
minReplicas: {{ $values.minReplicas | default (default 1 $values.miniReplicas) }}
maxReplicas: {{ $values.maxReplicas | default (default 2147483647 $values.maxiReplicas) }}
groupName: {{ $groupName }}
template:
spec:
Expand Down Expand Up @@ -117,8 +117,8 @@ spec:
{{ $key }}: {{ $val | quote }}
{{- end }}
replicas: {{ .Values.worker.replicas }}
minReplicas: {{ .Values.worker.miniReplicas | default 1 }}
maxReplicas: {{ .Values.worker.maxiReplicas | default 2147483647 }}
minReplicas: {{ .Values.worker.minReplicas | default (default 1 .Values.worker.miniReplicas) }}
maxReplicas: {{ .Values.worker.maxReplicas | default (default 2147483647 .Values.worker.maxiReplicas) }}
groupName: {{ .Values.worker.groupName }}
template:
spec:
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 @@ -113,8 +113,8 @@ additionalWorkerGroups:
# Disabled by default
disabled: true
replicas: 1
miniReplicas: 1
maxiReplicas: 3
minReplicas: 1
maxReplicas: 3
type: worker
labels: {}
initArgs:
Expand Down

0 comments on commit 310911c

Please sign in to comment.