From 3c3ee94397c1457386f3a897ff99234afb721c62 Mon Sep 17 00:00:00 2001
From: longbob <710190609@qq.com>
Date: Wed, 15 Sep 2021 14:22:04 +0800
Subject: [PATCH] fix: maybe use --all-namespace and -n

---
 cmd/kubefwd/services/services.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/kubefwd/services/services.go b/cmd/kubefwd/services/services.go
index 832cf74c..5cd5bc7e 100644
--- a/cmd/kubefwd/services/services.go
+++ b/cmd/kubefwd/services/services.go
@@ -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)