From e57850f59c6e6c8c25579e14cffe0a83cd0c0806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reigota?= Date: Thu, 27 May 2021 17:41:47 +0100 Subject: [PATCH] fix(analyzer): Removed spec property from K8s file Analyzer #3461 #3462 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Reigota --- pkg/analyzer/analyzer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/analyzer/analyzer.go b/pkg/analyzer/analyzer.go index 0ef2244c10b..f7cf2eea8f9 100644 --- a/pkg/analyzer/analyzer.go +++ b/pkg/analyzer/analyzer.go @@ -28,7 +28,6 @@ var ( k8sRegex = regexp.MustCompile("(\\s*\"apiVersion\":)|(\\s*apiVersion:)") k8sRegexKind = regexp.MustCompile("(\\s*\"kind\":)|(\\s*kind:)") k8sRegexMetadata = regexp.MustCompile("(\\s*\"metadata\":)|(\\s*metadata:)") - k8sRegexSpec = regexp.MustCompile("(\\s*\"spec\":)|(\\s*spec:)") ) const ( @@ -129,7 +128,6 @@ var types = map[string]regexSlice{ k8sRegex, k8sRegexKind, k8sRegexMetadata, - k8sRegexSpec, }, }, "cloudformation": {