You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New versions of kubelogin are required to work with newer infrastructure (new configs, new systems, etc). Investigate options to have kubelogin check whether it is up-to-date and download the newest version if available.
Brief test examples show that Windows locks binaries while executing, meaning this needs a secondary program to update kubelogin.exe
We could include a subpackage called updater and have the resulting updater check its own version, then download a newer copy to replace the existing kubelogin binary.
Run kubelogin
Kubelogin detects it is out of date
Kubelogin spawns updater (optional: passes all args to updater)
Kubelogin exits, reporting that it is updating itself
Updater downloads new kubelogin, replaces existing kubelogin executable
(Optional: relaunch kubelogin with args)
I'm not sure if we want to "error out" with a message asking someone to run kubelogin again, but that could be a good first step.
New versions of
kubelogin
are required to work with newer infrastructure (new configs, new systems, etc). Investigate options to have kubelogin check whether it is up-to-date and download the newest version if available.Quick google results include:
https://github.com/inconshreveable/go-update
https://github.com/rcrowley/goagain
Obligatory StackOverflow: https://stackoverflow.com/questions/27823042/is-it-possible-for-a-go-binary-to-reload-itself
The text was updated successfully, but these errors were encountered: