Skip to content

Commit b2c7c2c

Browse files
authored
Move runner startup script under the right heredoc (#370)
1 parent 082cde9 commit b2c7c2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

iterative/resource_runner.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,6 @@ func renderScript(data map[string]interface{}) (string, error) {
302302
sudo npm config set user 0 && sudo npm install --global @dvcorg/cml
303303
{{- end}}
304304
305-
{{- if .runner_startup_script}}
306-
{{.runner_startup_script}}
307-
{{- end}}
308-
309305
{{- if not .container}}
310306
sudo tee /usr/bin/cml.sh << 'EOF'
311307
#!/bin/sh
@@ -331,6 +327,10 @@ export KUBERNETES_CONFIGURATION={{escape .KUBERNETES_CONFIGURATION}}
331327
{{- end}}
332328
{{- end}}
333329
330+
{{- if .runner_startup_script}}
331+
{{.runner_startup_script}}
332+
{{- end}}
333+
334334
HOME="$(mktemp -d)" exec cml-runner \
335335
{{if .name}} --name {{escape .name}}{{end}} \
336336
{{if .labels}} --labels {{escape .labels}}{{end}} \

0 commit comments

Comments
 (0)