From 875113a31183785363cdbbcc6a1f6be96a79499f Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Sun, 18 Dec 2022 14:59:32 +0200 Subject: [PATCH] Move assignment to the top Signed-off-by: ChrsMark --- internal/cli/cmd/sysdump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)