Support CIS Amazon Elastic Kubernetes Service (EKS) Benchmark v1.1.0 (#1222)

* Support CIS Amazon Elastic Kubernetes Service (EKS) Benchmark v1.1.0

* fix yaml lint error
This commit is contained in:
Huang Huang
2022-09-15 14:04:54 +08:00
committed by GitHub
parent a34047c105
commit 07e01cf38c
14 changed files with 738 additions and 5 deletions

View File

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

View File

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

View File

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