k0sproject / k0sctl

A bootstrapping and management tool for k0s clusters.
Other
378 stars 77 forks source link

Upload new k0s binary directly to final directory #685

Closed kke closed 5 months ago

kke commented 5 months ago

Fixes #679

To avoid problems with noexec TMPDIR, upload the k0s binary directly to K0sBinaryPath() + ".tmp." + timestamp instead of using the tempdir given by mktemp.

Another option would be to keep uploading to TMPDIR but install it temporarily to a similar path.