k8s: Change default cluster access method choice logic 97/96297/1
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 26 Sep 2019 12:50:16 +0000 (14:50 +0200)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 26 Sep 2019 17:02:01 +0000 (19:02 +0200)
commit664ce36e4606ba855bb997059f43d89bb51385e5
treea34e3aeb054606d17b099be9843f793b9021d3b5
parent48d0f8c98b3511875768085af12c21389a465ab4
k8s: Change default cluster access method choice logic

Previous way of choosing it led to impractical calls, e.g.

$ ./check -rke                   # (works fine)
$ ./check -ranchercli            # "Not supported."
$ ./check -ranchercli -rke=false # (works fine)

Disabling default cluster access method is no longer necessary.

Issue-ID: SECCOM-235
Change-Id: I2b4d5bff10c5470e567351abeac0431bed3b7938
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
test/security/k8s/src/check/cmd/check/check.go