1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2025-07-15 11:08:23 +00:00

Don't override version specified on command line

This commit is contained in:
Liz Rice 2018-06-29 10:35:44 +01:00
parent 0bc004468b
commit 223ac14642

View File

@ -52,13 +52,12 @@ func runChecks(t check.NodeType) {
ver = kubeVersion ver = kubeVersion
} else { } else {
ver = getKubeVersion() ver = getKubeVersion()
}
switch ver { switch ver {
case "1.9", "1.10": case "1.9", "1.10":
continueWithError(nil, fmt.Sprintf("No CIS spec for %s - using tests from CIS 1.2.0 spec for Kubernetes 1.8\n", ver)) continueWithError(nil, fmt.Sprintf("No CIS spec for %s - using tests from CIS 1.2.0 spec for Kubernetes 1.8\n", ver))
ver = "1.8" ver = "1.8"
} }
}
path := filepath.Join(cfgDir, ver) path := filepath.Join(cfgDir, ver)
def := filepath.Join(path, file) def := filepath.Join(path, file)