Add GitHub workflow for manifests validation

- validate kustomize build with kubeval strict mode
- deny containers with latest image tag
- deny deployments and services without app label selector
- warn if deployments have no prometheus pod annotations
This commit is contained in:
stefanprodan
2019-10-23 17:10:21 +03:00
parent 3d6d0bed69
commit 7e36892e26
4 changed files with 113 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
on: [push, pull_request]
name: kustomize
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: kubeval
uses: stefanprodan/kube-tools@v1
with:
command: |
kustomize build ./kustomize | kubeval --strict
- name: conftest
uses: stefanprodan/kube-tools@v1
with:
command: |
kustomize build ./kustomize | conftest test -p .github/policy -