-
Notifications
You must be signed in to change notification settings - Fork 604
Remove default option for batch scheduler name #2371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@andrewsykim @kevin85421 pls help to review this follow up PR. |
ray-operator/main.go
Outdated
@@ -92,7 +92,7 @@ func main() { | |||
"Encoder to use for logging stdout. Valid values are 'json' and 'console'. Defaults to 'json'") | |||
flag.BoolVar(&enableBatchScheduler, "enable-batch-scheduler", false, | |||
"(Deprecated) Enable batch scheduler. Currently is volcano, which supports gang scheduler policy.") | |||
flag.StringVar(&batchScheduler, "batch-scheduler", "default", | |||
flag.StringVar(&batchScheduler, "batch-scheduler", "", | |||
"Batch scheduler name, supported values are default, volcano, yunikorn.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Batch scheduler name, supported values are default, volcano, yunikorn.") | |
"Batch scheduler name, supported values are volcano and yunikorn.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
ray-operator/main.go
Outdated
@@ -92,7 +92,7 @@ func main() { | |||
"Encoder to use for logging stdout. Valid values are 'json' and 'console'. Defaults to 'json'") | |||
flag.BoolVar(&enableBatchScheduler, "enable-batch-scheduler", false, | |||
"(Deprecated) Enable batch scheduler. Currently is volcano, which supports gang scheduler policy.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a note in this flag "Use --batch-scheduler instead"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
# "batchScheduler.enabled=true" at the same time as it will override this option. | ||
name: default | ||
name: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update helm-chart/kuberay-operator/templates/deployment.yaml
such that --batch-scheduler flag is not set if name is empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is already there:
kuberay/helm-chart/kuberay-operator/templates/deployment.yaml
Lines 60 to 67 in 0e1c248
{{- if .Values.batchScheduler -}} | |
{{- if .Values.batchScheduler.enabled -}} | |
{{- $argList = append $argList "--enable-batch-scheduler" -}} | |
{{- end -}} | |
{{- if .Values.batchScheduler.name -}} | |
{{- $argList = append $argList (printf "--batch-scheduler=%s" .Values.batchScheduler.name) -}} | |
{{- end -}} | |
{{- end -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also did some tests:
- Default install
helm install kuberay-operator ../helm-chart/kuberay-operator
the args:
Args:
--feature-gates=RayClusterStatusConditions=false
--enable-leader-election=true
- Legacy option
helm install kuberay-operator --set batchScheduler.enabled=true ../helm-chart/kuberay-operator
the args in the deployment:
Args:
--feature-gates=RayClusterStatusConditions=false
--enable-batch-scheduler
--enable-leader-election=true
- New option
helm install kuberay-operator --set batchScheduler.name=yunikorn ../helm-chart/kuberay-operator
the args
Args:
--feature-gates=RayClusterStatusConditions=false
--batch-scheduler=yunikor
--enable-leader-election=true
Not sure what are the errors in the CI mean:
Seems like all PR recently failed with this. |
@yangwwei could you rebase with the master branch? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Per review comment here: #2300 (comment). Remove the redundant "default" option for the batch scheduler name.
How this was tested?