diff --git a/find.go b/find.go index 917b49b..d906325 100644 --- a/find.go +++ b/find.go @@ -102,7 +102,7 @@ func secretCommands(ctx context.Context, name string, opt options) ([]*exec.Cmd, return []*exec.Cmd{kubectlGetSecret(ctx, append([]string{name, "-n", opt.Namespace}, o...)...)}, nil } var ns []string - if opt.AllNamespace { + if opt.AllNamespaces { namespaecs, err := getAllNamespaces(ctx) if err != nil { return nil, err