rules: add meta-schema for rules
This commit is contained in:
parent
f7b60495e0
commit
9de751b62b
|
@ -1,5 +1,6 @@
|
|||
rules:
|
||||
- name: kubernetes-resources
|
||||
desc: containers must have complete resources specified
|
||||
level: info
|
||||
tags:
|
||||
- cluster-health
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
rules:
|
||||
- name: salty-dog-rule
|
||||
desc: rules must be complete
|
||||
level: info
|
||||
tags:
|
||||
- important
|
||||
|
||||
select: '$.rules[*]'
|
||||
filter:
|
||||
type: object
|
||||
|
||||
check:
|
||||
type: object
|
||||
additionalProperties: false
|
||||
required:
|
||||
# metadata
|
||||
- name
|
||||
- desc
|
||||
- level
|
||||
- tags
|
||||
# data
|
||||
- select
|
||||
- filter
|
||||
- check
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
desc:
|
||||
type: string
|
||||
level:
|
||||
type: string
|
||||
tags:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
select:
|
||||
type: string
|
||||
filter:
|
||||
type: object
|
||||
check:
|
||||
type: object
|
Loading…
Reference in New Issue