1
0
Fork 0

feat(rules): add filename as tag

This commit is contained in:
ssube 2019-06-15 22:54:40 -05:00
parent 494d9f1a95
commit 0876e720bc
3 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,7 @@ rules:
desc: ensure plays have important properties
level: info
tags:
- ansible
- playbook
select: '$'
@ -34,6 +35,7 @@ rules:
desc: ensure roles have complete tasks
level: info
tags:
- ansible
- role
select: '$'

View File

@ -5,9 +5,9 @@ rules:
tags:
- cluster-health
- important
- kubernetes
select: '$.spec.template.spec.containers[*]'
check:
type: object
additionalProperties: true
@ -42,6 +42,7 @@ rules:
desc: resource limits are too low
level: debug
tags:
- kubernetes
- optional
select: '$.spec.template.spec.containers[*].resources'
@ -73,6 +74,7 @@ rules:
level: info
tags:
- important
- kubernetes
# select the root of the document
select: '$'

View File

@ -4,11 +4,9 @@ rules:
level: info
tags:
- important
- salty-dog
select: '$.rules[*]'
filter:
type: object
check:
type: object
additionalProperties: false