support CIS Amazon Elastic Kubernetes Service (EKS) Benchmark v1.2.0 (#1449)

closes #1448
This commit is contained in:
Huang Huang
2023-05-21 22:53:58 +08:00
committed by GitHub
parent 124c57c6f4
commit 60dde65d72
15 changed files with 1669 additions and 5 deletions

View File

@@ -450,6 +450,12 @@ func TestValidTargets(t *testing.T) {
targets: []string{"node", "policies", "controlplane", "managedservices"},
expected: true,
},
{
name: "eks-1.2.0 valid",
benchmark: "eks-1.2.0",
targets: []string{"node", "policies", "controlplane", "managedservices"},
expected: true,
},
}
for _, c := range cases {

View File

@@ -462,7 +462,7 @@ func getPlatformBenchmarkVersion(platform Platform) string {
glog.V(3).Infof("getPlatformBenchmarkVersion platform: %s", platform)
switch platform.Name {
case "eks":
return "eks-1.1.0"
return "eks-1.2.0"
case "gke":
switch platform.Version {
case "1.15", "1.16", "1.17", "1.18", "1.19":

View File

@@ -636,7 +636,7 @@ func Test_getPlatformBenchmarkVersion(t *testing.T) {
args: args{
platform: Platform{Name: "eks"},
},
want: "eks-1.1.0",
want: "eks-1.2.0",
},
{
name: "gke 1.19",