mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-07-16 03:51:33 +00:00
Merge branch 'master' into gated-auth
This commit is contained in:
@@ -22,9 +22,15 @@ 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()
|
||||
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, so the command exits without doing anything."))
|
||||
return nil
|
||||
},
|
||||
}
|
||||
@@ -42,6 +48,7 @@ func init() {
|
||||
consoleCmd.Flags().StringP(configStructs.ReleaseNamespaceLabel, "s", defaultTapConfig.Release.Namespace, "Release namespace of Kubeshark")
|
||||
}
|
||||
|
||||
//nolint:unused // retained for the in-progress console refactoring; re-wired once the Connect-RPC client lands
|
||||
func runConsoleWithoutProxy() {
|
||||
log.Info().Msg("Starting scripting console ...")
|
||||
time.Sleep(5 * time.Second)
|
||||
@@ -138,7 +145,10 @@ func runConsoleWithoutProxy() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:unused // retained for the in-progress console refactoring; re-wired once the Connect-RPC client lands
|
||||
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