Skip to content

Commit

Permalink
Update default Kubernetes to 1.18 (#657)
Browse files Browse the repository at this point in the history
* Update default Kubernetes to 1.18

* Add missing mapping

* Show pod logs on failure
  • Loading branch information
lizrice committed Aug 4, 2020
1 parent e69b2fe commit b0d175b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type FilterOpts struct {

var (
envVarsPrefix = "KUBE_BENCH"
defaultKubeVersion = "1.11"
defaultKubeVersion = "1.18"
kubeVersion string
benchmarkVersion string
cfgFile string
Expand Down
2 changes: 1 addition & 1 deletion integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

}
}
}
Expand Down

0 comments on commit b0d175b

Please sign in to comment.