mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
744 added validation for operator property in condition
This commit is contained in:
parent
6b1498b770
commit
c6dd8443ef
2 changed files with 20 additions and 0 deletions
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue