mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
add type in openapi schema (#629)
This commit is contained in:
parent
379755721b
commit
2f1c8c688c
2 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,8 @@ spec:
|
|||
enum:
|
||||
- enforce # blocks the resorce api-reques if a rule fails.
|
||||
- audit # allows resource creation and reports the failed validation rules as violations. Default
|
||||
background:
|
||||
type: boolean
|
||||
rules:
|
||||
type: array
|
||||
items:
|
||||
|
|
|
@ -30,7 +30,9 @@ spec:
|
|||
enum:
|
||||
- enforce # blocks the resorce api-reques if a rule fails.
|
||||
- audit # allows resource creation and reports the failed validation rules as violations. Default
|
||||
rules:
|
||||
background:
|
||||
type: boolean
|
||||
rules:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
|
|
Loading…
Add table
Reference in a new issue