mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-08-18 20:07:56 +00:00
cli: mark 'console' as non-functional / under refactoring
Hub PR #464 moved scripting-console log streaming off the /scripts/logs WebSocket onto a Connect-RPC streaming service (ScriptLogsDashboard). The console command still dials ws://.../api/scripts/logs, a route the hub no longer serves, so it never streams and spins in its reconnect loop. Surface this in the command help (Short/Long) and as a runtime warning until the client is re-pointed at the Connect-RPC stream.
This commit is contained in:
+9
-1
@@ -21,7 +21,13 @@ import (
|
||||
|
||||
var consoleCmd = &cobra.Command{
|
||||
Use: "console",
|
||||
Short: "Stream the scripting console logs into shell",
|
||||
Short: "Stream the scripting console logs into shell (temporarily non-functional — under refactoring after hub API changes)",
|
||||
Long: `Stream the scripting console logs into shell.
|
||||
|
||||
NOTE: This command is currently non-functional and under refactoring. The hub
|
||||
moved scripting-console log streaming off the /scripts/logs WebSocket onto a
|
||||
Connect-RPC streaming service, and this client has not yet been updated to use
|
||||
it, so no logs will stream until the migration lands.`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
runConsole()
|
||||
return nil
|
||||
@@ -122,6 +128,8 @@ func runConsoleWithoutProxy() {
|
||||
}
|
||||
|
||||
func runConsole() {
|
||||
log.Warn().Msg(fmt.Sprintf(utils.Yellow, "The 'console' command is temporarily non-functional and under refactoring: the hub moved scripting-console log streaming off the /scripts/logs WebSocket onto a Connect-RPC service, and this client has not yet been updated. No logs will stream."))
|
||||
|
||||
go runConsoleWithoutProxy()
|
||||
|
||||
// Create interrupt channel and setup signal handling once
|
||||
|
||||
Reference in New Issue
Block a user