Run linters with GitHub actions
- for custom resources use yamllint since kubeval won't work - for Kubernetes standard definitions use kubeval - for charts use helm lintmaster
parent
acce91da56
commit
0777b92ce2
|
@ -0,0 +1,21 @@
|
|||
workflow "Validate manifests" {
|
||||
on = "push"
|
||||
resolves = ["helm-lint"]
|
||||
}
|
||||
|
||||
action "yaml-lint" {
|
||||
uses = "stefanprodan/gh-actions/yamllint@master"
|
||||
args = ["-d '{extends: relaxed, rules: {line-length: {max: 120}}}' -f parsable ./releases/*"]
|
||||
}
|
||||
|
||||
action "kube-lint" {
|
||||
needs = ["yaml-lint"]
|
||||
uses = "stefanprodan/gh-actions/kubeval@master"
|
||||
args = "workloads/*"
|
||||
}
|
||||
|
||||
action "helm-lint" {
|
||||
needs = ["yaml-lint"]
|
||||
uses = "stefanprodan/gh-actions/helm@master"
|
||||
args = ["lint charts/*"]
|
||||
}
|
|
@ -23,4 +23,4 @@ spec:
|
|||
securityContext:
|
||||
enabled: true
|
||||
fsGroup: 0
|
||||
runAsUser: 0
|
||||
runAsUser: 0
|
||||
|
|
|
@ -7,4 +7,4 @@ metadata:
|
|||
name: redis-auth
|
||||
namespace: demo
|
||||
data:
|
||||
values.yaml: cGFzc3dvcmQ6IGFkbWlu
|
||||
values.yaml: cGFzc3dvcmQ6IGFkbWlu
|
||||
|
|
Loading…
Reference in New Issue