feat(rules): add filename as tag
This commit is contained in:
parent
494d9f1a95
commit
0876e720bc
|
@ -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: '$'
|
||||
|
|
|
@ -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: '$'
|
||||
|
|
|
@ -4,11 +4,9 @@ rules:
|
|||
level: info
|
||||
tags:
|
||||
- important
|
||||
- salty-dog
|
||||
|
||||
select: '$.rules[*]'
|
||||
filter:
|
||||
type: object
|
||||
|
||||
check:
|
||||
type: object
|
||||
additionalProperties: false
|
||||
|
|
Loading…
Reference in New Issue