From c3a1403fa0051f1e2e9afb6128e17b95ada73724 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 13 Oct 2020 12:54:14 -0500 Subject: [PATCH] fix tekton to not trigger kuber --- lib/linter.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 32fd4f88..0094a18e 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -654,14 +654,13 @@ DetectKubernetesFile() { FILE="${1}" # File that we need to validate debug "Checking if ${FILE} is a Kubernetes descriptor..." - if grep -v 'kustomize.config.k8s.io' "${FILE}" | grep -q -E '(apiVersion):'; then + if grep -v 'kustomize.config.k8s.io' "${FILE}" | grep -v tekton "${FILE}" | grep -q -E '(apiVersion):'; then debug "${FILE} is a Kubernetes descriptor" return 0 fi debug "${FILE} is NOT a Kubernetes descriptor" return 1 - } ################################################################################ #### Function DetectAWSStatesFIle ##############################################