-
Notifications
You must be signed in to change notification settings - Fork 60
[DRAFT] poc seamless worker update #2372
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
Draft
itechdima
wants to merge
10
commits into
main
Choose a base branch
from
SCHED-1255/poc-seamless-worker-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6cf180f
poc seamless worker update
itechdima 71fe789
add controller proxy
itechdima 145dc67
fix reboot program
itechdima ce12507
delete pods from controller
itechdima b6ab122
patched slurm with reboot via API
itechdima c64aaa2
asap
itechdima c6659d5
fix nodes watch in topology controller
itechdima 6bd647c
lint
itechdima eb672ff
remove undrains
itechdima 21b32f6
change dependency source for nodeset and supervisord cm
itechdima File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 47 additions & 1 deletion
48
helm/soperator-custom-configmaps/templates/configmap-supervisord.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,60 @@ | ||
| {{- if .Values.configMaps.supervisord.enabled }} | ||
| {{- $baseName := .Values.configMaps.supervisord.name }} | ||
| {{- $versionedName := include "soperator-custom-configmaps.versionedName" (list $baseName .Chart.Version) }} | ||
| {{- $keepLegacy := true }} | ||
| {{- if hasKey .Values.configMaps.supervisord "keepLegacy" }} | ||
| {{- $keepLegacy = .Values.configMaps.supervisord.keepLegacy }} | ||
| {{- end }} | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: {{ .Values.configMaps.supervisord.name }} | ||
| name: {{ $versionedName }} | ||
| namespace: {{ .Values.namespace }} | ||
| annotations: | ||
| helm.sh/resource-policy: keep | ||
| slurm.nebius.ai/dependency-version: name | ||
| labels: | ||
| {{- include "soperator-custom-configmaps.labels" . | nindent 4 }} | ||
| data: | ||
| {{- range .Values.configMaps.supervisord.files }} | ||
| {{ . }}: | | ||
| {{ tpl ($.Files.Get (printf "config-files/%s" .)) $ | indent 4 }} | ||
| {{- end }} | ||
| {{- if and $keepLegacy (ne $baseName $versionedName) }} | ||
| {{- $legacyConfigMap := lookup "v1" "ConfigMap" .Values.namespace $baseName }} | ||
| {{- $legacyLabels := include "soperator-custom-configmaps.stableLabels" . | fromYaml }} | ||
| {{- $legacyAnnotations := dict "helm.sh/resource-policy" "keep" }} | ||
| {{- if $legacyConfigMap }} | ||
| {{- with $legacyConfigMap.metadata.labels }} | ||
| {{- $legacyLabels = deepCopy . }} | ||
| {{- end }} | ||
| {{- with $legacyConfigMap.metadata.annotations }} | ||
| {{- $legacyAnnotations = mergeOverwrite (deepCopy .) $legacyAnnotations }} | ||
| {{- end }} | ||
| {{- end }} | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: {{ $baseName }} | ||
| namespace: {{ .Values.namespace }} | ||
| annotations: | ||
| {{- toYaml $legacyAnnotations | nindent 4 }} | ||
| labels: | ||
| {{- toYaml $legacyLabels | nindent 4 }} | ||
| {{- if and $legacyConfigMap $legacyConfigMap.data }} | ||
| data: | ||
| {{- toYaml $legacyConfigMap.data | nindent 2 }} | ||
| {{- else }} | ||
| data: | ||
| {{- range .Values.configMaps.supervisord.files }} | ||
| {{ . }}: | | ||
| {{ tpl ($.Files.Get (printf "config-files/%s" .)) $ | indent 4 }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- if and $legacyConfigMap $legacyConfigMap.binaryData }} | ||
| binaryData: | ||
| {{- toYaml $legacyConfigMap.binaryData | nindent 2 }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.