mirror of
https://github.com/super-linter/super-linter.git
synced 2025-01-09 16:04:53 -05:00
fix tekton to not trigger kuber
This commit is contained in:
parent
8ccb75ef15
commit
c3a1403fa0
1 changed files with 1 additions and 2 deletions
|
@ -654,14 +654,13 @@ DetectKubernetesFile() {
|
||||||
FILE="${1}" # File that we need to validate
|
FILE="${1}" # File that we need to validate
|
||||||
debug "Checking if ${FILE} is a Kubernetes descriptor..."
|
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"
|
debug "${FILE} is a Kubernetes descriptor"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug "${FILE} is NOT a Kubernetes descriptor"
|
debug "${FILE} is NOT a Kubernetes descriptor"
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function DetectAWSStatesFIle ##############################################
|
#### Function DetectAWSStatesFIle ##############################################
|
||||||
|
|
Loading…
Reference in a new issue