Skip to content

Commit 9528855

Browse files
dmitshalanmutsch
authored andcommitted
feat: add topology.yaml to config files
Signed-off-by: Dmitry Shmulevich <[email protected]>
1 parent ff23017 commit 9528855

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
### Added
88

99
- Added NodeSet level authcred configuration.
10+
- Added topology.yaml to config files
1011

1112
### Fixed
1213

helm/slurm/scripts/reconfigure.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ INTERVAL=30
1313
INIT_RECONFIGURE=false
1414

1515
function reconfigure() {
16-
local rsync_cmd='rsync -vaLrzPci --delete --include="*.conf" --include="prolog-*" --include="epilog-*" --exclude="*" "${SLURM_MOUNT}/" "${SLURM_DIR}"'
16+
local rsync_cmd='rsync -vaLrzPci --delete --include="*.conf" --include="*.yaml" --include="prolog-*" --include="epilog-*" --exclude="*" "${SLURM_MOUNT}/" "${SLURM_DIR}"'
1717

1818
if [ -z "$(eval "$rsync_cmd --dry-run | grep '\./'")" ] && $INIT_RECONFIGURE; then
1919
return
@@ -23,6 +23,8 @@ function reconfigure() {
2323
eval "$rsync_cmd"
2424
find "${SLURM_DIR}" -type f -name "*.conf" -print0 | xargs -0r chown -v "${SLURM_USER}:${SLURM_USER}"
2525
find "${SLURM_DIR}" -type f -name "*.conf" -print0 | xargs -0r chmod -v 644
26+
find "${SLURM_DIR}" -type f -name "*.yaml" -print0 | xargs -0r chown -v "${SLURM_USER}:${SLURM_USER}"
27+
find "${SLURM_DIR}" -type f -name "*.yaml" -print0 | xargs -0r chmod -v 644
2628
find "${SLURM_DIR}" -type f -regextype posix-extended -regex "^.*/(pro|epi)log-.*$" -print0 | xargs -0r chown -v "${SLURM_USER}:${SLURM_USER}"
2729
find "${SLURM_DIR}" -type f -regextype posix-extended -regex "^.*/(pro|epi)log-.*$" -print0 | xargs -0r chmod -v 755
2830

helm/slurm/templates/controller/slurm-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0
55

66
{{- $nodesetList := list "ALL" -}}
77
{{- $failList := list "slurm.conf" "slurmdbd.conf" -}}
8-
{{- $allowList := list "acct_gather.conf" "burst_buffer.conf" "cgroup.conf" "gres.conf" "helpers.conf" "job_container.conf" "mpi.conf" "oci.conf" "plugstack.conf" "topology.conf" -}}
8+
{{- $allowList := list "acct_gather.conf" "burst_buffer.conf" "cgroup.conf" "gres.conf" "helpers.conf" "job_container.conf" "mpi.conf" "oci.conf" "plugstack.conf" "topology.conf" "topology.yaml" -}}
99
{{- $partitionList := list -}}
1010
apiVersion: v1
1111
kind: ConfigMap

helm/slurm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ slurm:
137137
# # Ref: https://slurm.schedmd.com/plugstack.conf.html
138138
# topology.conf: |
139139
# # Ref: https://slurm.schedmd.com/topology.conf.html
140+
# topology.yaml: |
141+
# # Ref: https://slurm.schedmd.com/topology.yaml.html
140142
#
141143
# -- (map[string]string)
142144
# The Prolog scripts for compute nodesets, as a map.

0 commit comments

Comments
 (0)