mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
feat: handle all namespaces
This commit is contained in:
parent
8c932c48dd
commit
8501fdf396
@ -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").
|
||||
|
||||
Loading…
Reference in New Issue
Block a user