Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Run linters with GitHub actions
Browse files Browse the repository at this point in the history
- for custom resources use yamllint since kubeval won't work
- for Kubernetes standard definitions use kubeval
- for charts use helm lint
  • Loading branch information
stefanprodan committed Jan 23, 2019
1 parent acce91d commit 0777b92
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/main.workflow
@@ -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/*"]
}
2 changes: 1 addition & 1 deletion releases/mongodb.yaml
Expand Up @@ -23,4 +23,4 @@ spec:
securityContext:
enabled: true
fsGroup: 0
runAsUser: 0
runAsUser: 0
2 changes: 1 addition & 1 deletion releases/redis-auth.yaml
Expand Up @@ -7,4 +7,4 @@ metadata:
name: redis-auth
namespace: demo
data:
values.yaml: cGFzc3dvcmQ6IGFkbWlu
values.yaml: cGFzc3dvcmQ6IGFkbWlu

0 comments on commit 0777b92

Please sign in to comment.