-
-
Notifications
You must be signed in to change notification settings - Fork 11
shell: Port the shell package from cilium/cilium #59
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
Conversation
e07c842 to
ff591c3
Compare
mhofstetter
left a comment
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.
Thanks, makes sense!
pippolo84
left a comment
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.
Overall LGTM, some nits and cosmetic suggestions left inline
smagnani96
left a comment
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.
LGTM, minor nit (Cilium reference in the code).
0bf32c5 to
3fe7e53
Compare
3fe7e53 to
893c9a1
Compare
Port over the shell server and client from cilium/cilium so it is easier to use in other projects. Signed-off-by: Jussi Maki <jussi@isovalent.com>
Adapted from Dylan's prior work. Authored-by: Dylan Reimerink <dylan.reimerink@isovalent.com> Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com> Signed-off-by: Jussi Maki <jussi.maki@isovalent.com>
Add the shell server to the example application and add the shell command. To start the example application: go run ./example In another terminal connect to the example application shell: go run ./example shell Signed-off-by: Jussi Maki <jussi@isovalent.com>
893c9a1 to
2c0f11f
Compare
Let's move the shell implementation into cilium/hive so it can be easily used in other projects as well.
The main changes from cilium/cilium:
Cellis nowServerCelland takes as argument the default path for the socketServerCellcreates its own job group. The providing ofjob.Groupas part ofcell.Moduleis only inpkg/hiveofcilium/cilium. Maybe should change that...ServerCellprints a info log message when it starts that includes the socket pathShellCmdnow takes the default socket path and a function to print the greetingSecond commit extends the
exampleapplication to add in the shell server and client.