From 66abb237441dad71f6146f39742ef4c52c436180 Mon Sep 17 00:00:00 2001 From: Juan Date: Sat, 29 Nov 2025 22:44:17 -0500 Subject: [PATCH] fix: eks error with kube bench --- cmd/linter/kubebench/util.go | 2 +- cmd/linter/kubebench/util_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/linter/kubebench/util.go b/cmd/linter/kubebench/util.go index 027d978f..c3835b0d 100644 --- a/cmd/linter/kubebench/util.go +++ b/cmd/linter/kubebench/util.go @@ -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.2.0" + return "eks-1.4.0" case "gke": switch platform.Version { case "1.15", "1.16", "1.17", "1.18", "1.19": diff --git a/cmd/linter/kubebench/util_test.go b/cmd/linter/kubebench/util_test.go index e9b99a9c..527e0af5 100644 --- a/cmd/linter/kubebench/util_test.go +++ b/cmd/linter/kubebench/util_test.go @@ -636,7 +636,7 @@ func Test_getPlatformBenchmarkVersion(t *testing.T) { args: args{ platform: Platform{Name: "eks"}, }, - want: "eks-1.2.0", + want: "eks-1.4.0", }, { name: "gke 1.19",