mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-08-01 19:38:27 +00:00
change methodoloy
This commit is contained in:
parent
acd4a23605
commit
cf9ca5ba75
12
cmd/util.go
12
cmd/util.go
@ -521,14 +521,14 @@ func getPlatformBenchmarkVersion(platform Platform) string {
|
||||
glog.V(3).Infof("getPlatformBenchmarkVersion platform: %s", platform)
|
||||
switch platform.Name {
|
||||
case "eks":
|
||||
v, err := strconv.ParseFloat(platform.Version, 64)
|
||||
if err == nil {
|
||||
if v < 1.29 {
|
||||
return "eks-1.5.0"
|
||||
}
|
||||
switch platform.Version {
|
||||
case "1.29", "1.30", "1.31", "1.32", "1.33": // add more if needed
|
||||
return "eks-1.7.0"
|
||||
case "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25", "1.26", "1.27", "1.28":
|
||||
return "eks-1.5.0"
|
||||
default:
|
||||
return "eks-1.7.0"
|
||||
}
|
||||
return "eks-1.7.0"
|
||||
case "aks":
|
||||
return "aks-1.7"
|
||||
case "gke":
|
||||
|
Loading…
Reference in New Issue
Block a user