mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 12:42:09 -05:00
Merge pull request #827 from PascalBourdier/ignore-kustomize-file
ignore kustomize file with kubeval
This commit is contained in:
commit
e8091a4ee9
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ DetectKubernetesFile() {
|
|||
FILE="${1}" # File that we need to validate
|
||||
debug "Checking if ${FILE} is a Kubernetes descriptor..."
|
||||
|
||||
if grep -q -E '(apiVersion):' "${FILE}" >/dev/null; then
|
||||
if grep -v 'kustomize.config.k8s.io' "${FILE}" | grep -q -E '(apiVersion):'; then
|
||||
debug "${FILE} is a Kubernetes descriptor"
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue