mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 12:42:09 -05:00
Update Kuberentes File Detection (#4375)
Co-authored-by: Zack Koppert <zkoppert@github.com>
This commit is contained in:
parent
a5b893a892
commit
dea6e50722
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,8 @@ DetectKubernetesFile() {
|
|||
debug "Checking if ${FILE} is a Kubernetes descriptor..."
|
||||
if grep -q -v 'kustomize.config.k8s.io' "${FILE}" &&
|
||||
grep -q -v "tekton" "${FILE}" &&
|
||||
grep -q -E '(apiVersion):' "${FILE}" &&
|
||||
grep -q -E '(kind):' "${FILE}"; then
|
||||
grep -q -E '(^apiVersion):' "${FILE}" &&
|
||||
grep -q -E '(^kind):' "${FILE}"; then
|
||||
debug "${FILE} is a Kubernetes descriptor"
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue