aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/security/k8s/src')
-rw-r--r--test/security/k8s/src/check/cmd/check/check.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/security/k8s/src/check/cmd/check/check.go b/test/security/k8s/src/check/cmd/check/check.go
index 5a29fa9d5..80a17f0c5 100644
--- a/test/security/k8s/src/check/cmd/check/check.go
+++ b/test/security/k8s/src/check/cmd/check/check.go
@@ -11,7 +11,7 @@ import (
var (
ranchercli = flag.Bool("ranchercli", false, "use rancher utility for accessing cluster nodes")
- rke = flag.Bool("rke", true, "use RKE cluster definition and ssh for accessing cluster nodes (default)")
+ rke = flag.Bool("rke", false, "use RKE cluster definition and ssh for accessing cluster nodes (default)")
)
func main() {
@@ -20,6 +20,11 @@ func main() {
log.Fatal("Not supported.")
}
+ // Use default cluster access method if none was declared explicitly.
+ if !(*ranchercli || *rke) {
+ *rke = true
+ }
+
var (
k8sParams []string
err error