File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,25 @@ includes the following pre-commit hooks:
60
60
- You must [install Docker](https://docs.docker.com/engine/install/) before
61
61
running this pre-commit hook.
62
62
63
+ # # Using KubeLinter as part of your CI pipeline
64
+
65
+ If you're using GitHub, there's the [KubeLinter GitHub Action](README.md#kubelinter-github-action) available.
66
+
67
+ Alternatively, you can grab the latest binary release with the following commands
68
+ ` ` ` bash
69
+ LOCATION=$(curl -s https://api.github.com/repos/stackrox/kube-linter/releases/latest \
70
+ | jq -r '.tag_name
71
+ | "https://github.com/stackrox/kube-linter/releases/download/\( .)/kube-linter-linux.tar.gz"')
72
+ curl -L -o kube-linter-linux.tar.gz $LOCATION
73
+ mkdir kube-linter/
74
+ tar -xf kube-linter-linux.tar.gz -C "kube-linter/"
75
+
76
+ ` ` `
77
+ and pass `--fail-on-invalid-resource` as an option to have your pipeline fail if your YAML file can't be parsed. See the following example :
78
+ ` ` ` bash
79
+ ./kube-linter/kube-linter lint --fail-on-invalid-resource /path/to/yaml-file.yaml
80
+ ` ` `
81
+
63
82
# # KubeLinter commands
64
83
65
84
This section covers kube-linter command syntax, describes the command
You can’t perform that action at this time.
0 commit comments