-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major refactor of the tool #27
Conversation
4151bde
to
85b811a
Compare
Refactoring is done, shutdown/reboot from vSphere seems to work and vSphere shows correct hostname and IP-info. I think refactoring is done and it's time for a review/merge/release. |
4163bd2
to
b80971b
Compare
2409e1f
to
7855aa6
Compare
All the testing is complete, even the linters are happy now. We have tested the tool in the following ways:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, I will approve this PR so that you're not blocked, feel free to /m
it whenever you're ready.
if you need other reviewers with actual VMWare knowledge, please ping them :)
I'm about to double check functionality of the tool as system-extension and as a daemonset. |
54b3783
to
871c8e5
Compare
We are going to release this as a new major version, as flags/env vars have been renamed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested as a daemonset as well as a system extension.
* update go mods, golang ci and k8s manifest * split the tool into subcommands, leveraging cobra/viper * refactored the logging, using a current framework (log/slog) * repair project name "self-detection" and startup message * moved reusable components into pkg/ * restricted accessibility, improved delegation/demaraction * refactor connection to Talos API (consistent naming) * refactor of toolbox command dispatching * fetch uptime from Talos, instead of system * use upstream GuestNicInfo (= less code to maintain) * fix licensing (version.go was MPL by accident), reduce header bloat * reduce talosquery subcommand complexity * update README BREAKING CHANGE: command line flags and env vars have been changed Signed-off-by: Jorik Jonker <[email protected]>
Goals:
pkg/
packageslog/slog
This should also lay the groundwork for the implementation of #25