From 728cb0765fafb82ef68efd437e6299ed9d66b5c4 Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Wed, 4 Apr 2018 10:44:32 +0100 Subject: [PATCH] Use 1.8 tests for k8s 1.9 and 1.10 --- cmd/common.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/common.go b/cmd/common.go index cce49b3..752a337 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -48,8 +48,13 @@ func runChecks(t check.NodeType) { } ver := getKubeVersion() - path := filepath.Join(cfgDir, ver) + switch ver { + case "1.9", "1.10": + continueWithError(nil, fmt.Sprintf("No CIS spec for %s - using tests from CIS 1.2.0 spec for Kubernetes 1.8\n", ver)) + ver = "1.8" + } + path := filepath.Join(cfgDir, ver) def := filepath.Join(path, file) in, err := ioutil.ReadFile(def)