.github: Add kube-linter check
This commit is contained in:
parent
8407c97d96
commit
2208cb1122
2 changed files with 24 additions and 0 deletions
20
.github/workflows/tests.yml
vendored
20
.github/workflows/tests.yml
vendored
|
|
@ -152,3 +152,23 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: PR_STATUS
|
name: PR_STATUS
|
||||||
path: SKIP_CI.txt
|
path: SKIP_CI.txt
|
||||||
|
|
||||||
|
kube-linter:
|
||||||
|
name: "🎀 kube-linter"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: redhat-actions/oc-installer@v1
|
||||||
|
- name: Process template
|
||||||
|
run: |
|
||||||
|
mkdir processed-templates
|
||||||
|
oc process -f templates/composer.yml \
|
||||||
|
-p IMAGE_TAG=image_tag \
|
||||||
|
--local \
|
||||||
|
-o yaml > processed-templates/composer.yml
|
||||||
|
|
||||||
|
- uses: stackrox/kube-linter-action@v1.0.4
|
||||||
|
with:
|
||||||
|
directory: processed-templates
|
||||||
|
config: templates/.kube-linter-config.yml
|
||||||
|
version: 0.3.0
|
||||||
|
|
|
||||||
4
templates/.kube-linter-config.yml
Normal file
4
templates/.kube-linter-config.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
checks:
|
||||||
|
exclude:
|
||||||
|
- "no-read-only-root-fs"
|
||||||
|
- "run-as-non-root"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue