Skip to content

Commit

Permalink
[Feature][Helm] Added backwards compatibility of "maxiReplicas"/"mini…
Browse files Browse the repository at this point in the history
…Replicas"

Signed-off-by: Andrew Li <[email protected]>
  • Loading branch information
orcahmlee committed Oct 30, 2022
1 parent 8954b64 commit 4c0c432
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,16 @@ spec:
{{ $key }}: {{ $val | quote }}
{{- end }}
replicas: {{ $values.replicas }}
{{- if $values.minReplicas }}
minReplicas: {{ $values.minReplicas | default 1 }}
{{- else if $values.miniReplicas }}
minReplicas: {{ $values.miniReplicas | default 1 }}
{{- end }}
{{- if $values.maxReplicas }}
maxReplicas: {{ $values.maxReplicas | default 2147483647 }}
{{- else if $values.maxiReplicas }}
maxReplicas: {{ $values.maxiReplicas | default 2147483647 }}
{{- end }}
groupName: {{ $groupName }}
template:
spec:
Expand Down Expand Up @@ -117,8 +125,18 @@ spec:
{{ $key }}: {{ $val | quote }}
{{- end }}
replicas: {{ .Values.worker.replicas }}
minReplicas: {{ .Values.worker.minReplicas | default 1 }}
maxReplicas: {{ .Values.worker.maxReplicas | default 2147483647 }}
{{- with .Values.worker }}
{{- if .minReplicas }}
minReplicas: {{ .minReplicas | default 1 }}
{{- else if .miniReplicas }}
minReplicas: {{ .miniReplicas | default 1 }}
{{- end }}
{{- if .maxReplicas }}
maxReplicas: {{ .maxReplicas | default 2147483647 }}
{{- else if .maxiReplicas }}
maxReplicas: {{ .maxiReplicas | default 2147483647 }}
{{- end }}
{{- end }}
groupName: {{ .Values.worker.groupName }}
template:
spec:
Expand Down

0 comments on commit 4c0c432

Please sign in to comment.