We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbeb2a2 commit ffcd01dCopy full SHA for ffcd01d
docs/contrib.md
@@ -10,7 +10,7 @@ Add the following to your Kubernetes configs repository in `.git/hooks/pre-commi
10
This will validate all the `yaml` files in the top directory of the repository.
11
12
```shell
13
-#!/bin/sh
+#!/bin/sh -e
14
15
echo "Running kubeval validations..."
16
@@ -20,11 +20,7 @@ if ! [ -x "$(command -v kubeval)" ]; then
20
fi
21
22
# Inspect code using kubeval
23
-find . -maxdepth 1 -name '*.yaml' -exec kubeval {} \;
24
-
25
-status=$?
26
27
-if [ "$status" = 0 ] ; then
+if kubeval --strict -d . ; then
28
echo "Static analysis found no problems."
29
exit 0
30
else
0 commit comments