1
0
Fork 0
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:
Shivkumar Dudhani 2020-02-18 14:55:12 -08:00 committed by GitHub
parent 379755721b
commit 2f1c8c688c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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:

View file

@ -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