mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-02-16 17:42:05 +00:00
Don't override version specified on command line
This commit is contained in:
parent
0bc004468b
commit
223ac14642
@ -52,12 +52,11 @@ func runChecks(t check.NodeType) {
|
|||||||
ver = kubeVersion
|
ver = kubeVersion
|
||||||
} else {
|
} else {
|
||||||
ver = getKubeVersion()
|
ver = getKubeVersion()
|
||||||
}
|
switch ver {
|
||||||
|
case "1.9", "1.10":
|
||||||
switch ver {
|
continueWithError(nil, fmt.Sprintf("No CIS spec for %s - using tests from CIS 1.2.0 spec for Kubernetes 1.8\n", ver))
|
||||||
case "1.9", "1.10":
|
ver = "1.8"
|
||||||
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"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
path := filepath.Join(cfgDir, ver)
|
path := filepath.Join(cfgDir, ver)
|
||||||
|
Loading…
Reference in New Issue
Block a user