1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

744 added validation for operator property in condition

This commit is contained in:
shravan 2020-05-06 20:46:34 +05:30
parent 6b1498b770
commit c6dd8443ef
2 changed files with 20 additions and 0 deletions

View file

@ -220,6 +220,16 @@ spec:
- key # can be of any type - key # can be of any type
- operator # typed - operator # typed
- value # can be of any type - value # can be of any type
properties:
operator:
type: string
enum:
- Equal
- NotEqual
key:
type: string
value:
type: string
generate: generate:
type: object type: object
required: required:

View file

@ -220,6 +220,16 @@ spec:
- key # can be of any type - key # can be of any type
- operator # typed - operator # typed
- value # can be of any type - value # can be of any type
properties:
operator:
type: string
enum:
- Equal
- NotEqual
key:
type: string
value:
type: string
generate: generate:
type: object type: object
required: required: