Skip to content

Commit

Permalink
Merge pull request #5136 from k0sproject/backport-5128-to-release-1.31
Browse files Browse the repository at this point in the history
[Backport release-1.31] Fix env variables propagation to k0s service
  • Loading branch information
makhov authored Oct 22, 2024
2 parents 5998f53 + a2dcc08 commit 4d42131
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 4d42131

Please sign in to comment.