-
-
Notifications
You must be signed in to change notification settings - Fork 44
Add inftyai-scheduler support and config updates #447
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,14 @@ metadata: | |
| labels: | ||
| {{- include "chart.labels" . | nindent 4 }} | ||
| data: | ||
| config.data: {{ .Values.globalConfig.configData | toYaml | indent 1 }} | ||
| config.data: |- | ||
| {{- $base := deepCopy .Values.globalConfig.configData }} | ||
|
||
| {{- $ks := get .Values "kube-scheduler" }} | ||
| {{- if and $ks (get $ks "enabled") (hasKey $ks "scheduler") }} | ||
| {{- $scheduler := get $ks "scheduler" }} | ||
| {{- $name := get $scheduler "name" }} | ||
| {{- if $name }} | ||
| {{- $_ := set $base "scheduler-name" $name }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- toYaml $base | nindent 4 }} | ||
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.
Better not to add too much logic to the makefile command, what's the advantages over the current one?
Uh oh!
There was an error while loading. Please reload this page.
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.
Because the default value is
default-schedulerinconfig/default/configmap.yamland it can not be easily changed by user viahelm install --setcommand.I can not edit
chart/template/global-config.yamlbecause it is generated by helmify. I want users to be able to easily use the chart without extra configuration.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.
But it's not a general solution, we have a lot of configurations.
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.
I'm ok to let user configure the configmaps via global.values.yaml. It's also not difficult.
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 switch the default scheduler to
inftyai-schedulerinconfig/default/configmap.yaml? And addmake install-inftyai-schedulerandmake uninstall-inftyai-schedulerto the Makefile.Uh oh!
There was an error while loading. Please reload this page.
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.
If not, we can not enable the
inftyai-schedulerin chart by default due to the immutability of the configmap which is generated by helmify.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.
This pr has supported it.