Skip to content

Commit

Permalink
fix: maybe use --all-namespace and -n
Browse files Browse the repository at this point in the history
  • Loading branch information
ndj888 committed Sep 15, 2021
1 parent c2f927d commit 3c3ee94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubefwd/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Try:

// if use --all-namespace ,from v1 api get all ns.
if isAllNs {
if len(namespaces) >= 1 {
if len(namespaces) > 1 {
log.Fatalf("Error --all-namespace not use -n.")
}
setAllNamespace(clientSet, listOptions, &namespaces)
Expand Down

0 comments on commit 3c3ee94

Please sign in to comment.