Skip to content

Commit

Permalink
Merge pull request #5128 from apedriza/fix/env_variables_reading
Browse files Browse the repository at this point in the history
Fix env variables propagation to k0s service
  • Loading branch information
apedriza authored Oct 22, 2024
2 parents 182b1c5 + 4cafc83 commit 0962379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/install/linux_systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ConditionFileIsExecutable={{.Path|cmdEscape}}
StartLimitInterval=5
StartLimitBurst=10
ExecStart={{.Path|cmdEscape}}{{range .Arguments}} {{.|cmdEscape}}{{end}}
Environment="{{- range $key, $value := .EnvVars}}{{$key}}={{$value}} {{- end}}"
{{- if .Option.Environment}}{{range .Option.Environment}}
Environment="{{.}}"{{end}}{{- end}}
RestartSec=10
Delegate=yes
Expand Down

0 comments on commit 0962379

Please sign in to comment.