1
0
Fork 0
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:
belyshevdenis 2019-03-14 15:09:48 +02:00
parent a9ebf2b7e3
commit 6844c606ff
2 changed files with 25 additions and 3 deletions

View file

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

View file

@ -17,5 +17,5 @@ spec:
- test2
patches:
- path: /
op : Add
op : add
value : "20"