Skip to content

Commit

Permalink
sysdump: always log used namespaces
Browse files Browse the repository at this point in the history
Also log the namespaces in case they were specified on the command line.

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Jan 24, 2023
1 parent b269675 commit 6a4411b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sysdump/sysdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,19 @@ func NewCollector(k KubernetesClient, o Options, startTime time.Time, cliVersion
}
c.log("🔮 Detected Cilium installation in namespace %q", ns)
c.Options.CiliumNamespace = ns
} else {
c.log("ℹ️ Cilium namespace: %s", c.Options.CiliumNamespace)
}

if c.Options.CiliumOperatorNamespace == "" {
ns, err := detectCiliumOperatorNamespace(k)
if err != nil {
return nil, err
}
c.log("Detected Cilium operator in namespace %q", ns)
c.log("🔮 Detected Cilium operator in namespace %q", ns)
c.Options.CiliumOperatorNamespace = ns
} else {
c.log("ℹ️ Cilium operator namespace: %s", c.Options.CiliumOperatorNamespace)
}

// Grab the Kubernetes nodes for the target cluster.
Expand Down

0 comments on commit 6a4411b

Please sign in to comment.