mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-08-02 03:48:21 +00:00
added eks 1.7 for supported kubernetes version
This commit is contained in:
parent
6a383c0766
commit
54931baa06
@ -519,9 +519,13 @@ func IsAKS(ctx context.Context, k8sClient kubernetes.Interface) (bool, error) {
|
|||||||
|
|
||||||
func getPlatformBenchmarkVersion(platform Platform) string {
|
func getPlatformBenchmarkVersion(platform Platform) string {
|
||||||
glog.V(3).Infof("getPlatformBenchmarkVersion platform: %s", platform)
|
glog.V(3).Infof("getPlatformBenchmarkVersion platform: %s", platform)
|
||||||
switch platform.Name {
|
|
||||||
case "eks":
|
case "eks":
|
||||||
return "eks-1.7.0"
|
switch platform.Name {
|
||||||
|
case "1.29", "1.30", "1.31":
|
||||||
|
return "eks-1.7.0"
|
||||||
|
default:
|
||||||
|
return "eks-1.5.0"
|
||||||
|
}
|
||||||
case "aks":
|
case "aks":
|
||||||
return "aks-1.7"
|
return "aks-1.7"
|
||||||
case "gke":
|
case "gke":
|
||||||
|
Loading…
Reference in New Issue
Block a user