1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-23 15:18:07 +00:00

Update default Kubernetes to 1.18 (#657)

* Update default Kubernetes to 1.18

* Add missing mapping

* Show pod logs on failure
This commit is contained in:
Liz Rice 2020-08-04 14:40:12 +01:00 committed by GitHub
parent e69b2fe549
commit b0d175bf5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -213,6 +213,7 @@ func TestMapToCISVersion(t *testing.T) {
{kubeVersion: "1.15", succeed: true, exp: "cis-1.5"},
{kubeVersion: "1.16", succeed: true, exp: "cis-1.5"},
{kubeVersion: "1.17", succeed: true, exp: "cis-1.5"},
{kubeVersion: "1.18", succeed: true, exp: "cis-1.5"},
{kubeVersion: "gke-1.0", succeed: true, exp: "gke-1.0"},
{kubeVersion: "ocp-3.10", succeed: true, exp: "rh-0.7"},
{kubeVersion: "ocp-3.11", succeed: true, exp: "rh-0.7"},

View File

@ -34,7 +34,7 @@ type FilterOpts struct {
var (
envVarsPrefix = "KUBE_BENCH"
defaultKubeVersion = "1.11"
defaultKubeVersion = "1.18"
kubeVersion string
benchmarkVersion string
cfgFile string

View File

@ -113,10 +113,10 @@ func findPodForJob(clientset *kubernetes.Clientset, jobName string, duration tim
if cp.Status.Phase == apiv1.PodFailed {
fmt.Printf("pod (%s) - %s - retrying...\n", cp.Name, cp.Status.Phase)
fmt.Printf(getPodLogs(clientset, &cp))
failedPods[cp.Name] = struct{}{}
break podfailed
}
}
}
}