mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +00:00
NK-31: Updated validation field in crd.yaml. Added new constraints. Fixed patch value type from string to AnyValue
This commit is contained in:
parent
a9ebf2b7e3
commit
6844c606ff
2 changed files with 25 additions and 3 deletions
26
crd/crd.yaml
26
crd/crd.yaml
|
@ -42,6 +42,25 @@ spec:
|
|||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- ConfigMap
|
||||
- CronJob
|
||||
- DaemonSet
|
||||
- Deployment
|
||||
- Endpoints
|
||||
- HorizontalPodAutoscaler
|
||||
- Ingress
|
||||
- Job
|
||||
- LimitRange
|
||||
- Namespace
|
||||
- NetworkPolicy
|
||||
- PersistentVolumeClaim
|
||||
- PodDisruptionBudget
|
||||
- PodTemplate
|
||||
- ResourceQuota
|
||||
- Secret
|
||||
- Service
|
||||
- StatefulSet
|
||||
name:
|
||||
type: string
|
||||
selector:
|
||||
|
@ -73,14 +92,17 @@ spec:
|
|||
required:
|
||||
- path
|
||||
- op
|
||||
- value
|
||||
properties:
|
||||
path:
|
||||
type: string
|
||||
op:
|
||||
type: string
|
||||
enum:
|
||||
- add
|
||||
- replace
|
||||
- remove
|
||||
value:
|
||||
type: string
|
||||
AnyValue: {}
|
||||
configMapGenerator:
|
||||
type: object
|
||||
required:
|
||||
|
|
|
@ -17,5 +17,5 @@ spec:
|
|||
- test2
|
||||
patches:
|
||||
- path: /
|
||||
op : Add
|
||||
op : add
|
||||
value : "20"
|
||||
|
|
Loading…
Add table
Reference in a new issue