Skip to content

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

Merged
merged 3 commits into from
Oct 9, 2024
Merged

Hive script #17

merged 3 commits into from
Oct 9, 2024

Conversation

joamaki
Copy link
Contributor

@joamaki joamaki commented Oct 1, 2024

Vendors in rsc.io/script and adds the facility to collect script commands from the hive.

For example usage see replCmd in example/main.go and showEventsCommand in example/events.go.

@joamaki
Copy link
Contributor Author

joamaki commented Oct 1, 2024

@joamaki joamaki force-pushed the pr/joamaki/script branch 3 times, most recently from e42dd02 to bba2710 Compare October 8, 2024 07:30
@joamaki joamaki changed the title [DRAFT] Hive scripts Hive script Oct 8, 2024
@joamaki joamaki marked this pull request as ready for review October 8, 2024 07:31
@joamaki joamaki requested a review from a team as a code owner October 8, 2024 07:31
@joamaki joamaki requested review from pippolo84 and removed request for a team October 8, 2024 07:31
@joamaki joamaki force-pushed the pr/joamaki/script branch 3 times, most recently from 3cbab08 to 020e486 Compare October 8, 2024 08:29
@joamaki joamaki requested review from a team as code owners October 8, 2024 08:29
@joamaki joamaki requested review from aanm and christarazi and removed request for a team October 8, 2024 08:29
@joamaki joamaki force-pushed the pr/joamaki/script branch from 020e486 to e71815f Compare October 8, 2024 08:32
@joamaki joamaki removed request for aanm and christarazi October 8, 2024 08:33
@joamaki
Copy link
Contributor Author

joamaki commented Oct 8, 2024

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.

Copy link
Member

@pippolo84 pippolo84 left a 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]>
@joamaki joamaki force-pushed the pr/joamaki/script branch from e71815f to fc01caf Compare October 9, 2024 10:08
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]>
@joamaki joamaki force-pushed the pr/joamaki/script branch from fc01caf to a5b8462 Compare October 9, 2024 10:10
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]>
@joamaki joamaki merged commit 2ab6888 into main Oct 9, 2024
1 check passed
@joamaki joamaki deleted the pr/joamaki/script branch October 9, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants