feat: handle all namespaces

This commit is contained in:
Kevin Franklin Kim 2024-01-12 14:04:33 +01:00
parent 8c932c48dd
commit 8501fdf396
No known key found for this signature in database

View File

@ -134,8 +134,10 @@ func (c *Command) execute(ctx context.Context, r *readline.Readline) error {
return err
}
if value := c.namespaceFn(cluster, fleet, squad); value != "" {
args = append(args, "-n", value)
if value := c.namespaceFn(cluster, fleet, squad); value == "all" {
args = append(args, "--all-namespaces")
} else if value != "" {
args = append(args, "--namespace", value)
}
return shell.New(ctx, c.l, "k9s", "--logoless").