diff --git a/internal/cli/cmd/sysdump.go b/internal/cli/cmd/sysdump.go index d2ba45e4d4..f2ddadaaba 100644 --- a/internal/cli/cmd/sysdump.go +++ b/internal/cli/cmd/sysdump.go @@ -29,10 +29,10 @@ func newCmdSysdump() *cobra.Command { Short: "Collects information required to troubleshoot issues with Cilium and Hubble", Long: ``, RunE: func(cmd *cobra.Command, args []string) error { + sysdumpOptions.CiliumNamespace = namespace // Silence klog to avoid displaying "throttling" messages - those are expected. klog.SetOutput(io.Discard) // Collect the sysdump. - sysdumpOptions.CiliumNamespace = namespace collector, err := sysdump.NewCollector(k8sClient, sysdumpOptions, time.Now(), Version) if err != nil { return fmt.Errorf("failed to create sysdump collector: %v", err)