-
-
Notifications
You must be signed in to change notification settings - Fork 8
Hive script #17
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
Hive script #17
Conversation
Extended usage in cilium/statedb#57 More example usage in https://github.com/cilium/cilium/pull/35154/files |
e42dd02
to
bba2710
Compare
3cbab08
to
020e486
Compare
020e486
to
e71815f
Compare
sorry for the reviewer noise, bumped Go to v1.23 in this PR and then realized it's a bad idea to bump it for solely being able to use the "maps" package (especially as we have older cilium releases using hive and deps being bumped), so reverted that change. |
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.
Nice! 💯
Vendor in the rsc.io/script library. As it was essentially a code dump out from go's internals and is unmaintained by rsc, it's easiest to vendor it here. It is vendored into cilium/hive instead of its own repo as its use and extensions will be somewhat coupled with hive. As first extension, add support for interactive use that doesn't wait for the section end. Signed-off-by: Jussi Maki <[email protected]>
e71815f
to
fc01caf
Compare
Add the ScriptCmd* types for providing script commands within hive and the ScriptCommands() method for pulling them out from *Hive. Signed-off-by: Jussi Maki <[email protected]>
fc01caf
to
a5b8462
Compare
Command for showing or grepping the output from the simple module health that allows testing the health reporting of a cell. Signed-off-by: Jussi Maki <[email protected]>
Vendors in rsc.io/script and adds the facility to collect script commands from the hive.
For example usage see
replCmd
inexample/main.go
andshowEventsCommand
inexample/events.go
.