1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 15:37:19 +00:00

update examples

This commit is contained in:
shivkumar dudhani 2020-02-07 12:03:53 -08:00
parent 4e1b11c1d4
commit fd71612794
2 changed files with 12 additions and 12 deletions

View file

@ -68,10 +68,10 @@ spec:
namespace: "{{request.object.metadata.name}}" # namespace that triggers this rule namespace: "{{request.object.metadata.name}}" # namespace that triggers this rule
data: data:
spec: spec:
podSelector: # select all pods in the namespace
matchLabels: {} podSelector: {}
matchExpressions: [] policyTypes:
policyTypes: [] - Ingress
metadata: metadata:
labels: labels:
policyname: "default" policyname: "default"

View file

@ -134,17 +134,17 @@ spec :
- Deployment - Deployment
# Name is optional and can use wildcards # Name is optional and can use wildcards
name: "*" name: "*"
# Selector is optional
selector:
validate: validate:
pattern: pattern:
spec: spec:
^(containers): template:
resources: spec:
requests: ^(containers):
memory: "$(<=./../../limits/memory)" resources:
limits: requests:
memory: "2048Mi" memory: "$(<=./../../limits/memory)"
limits:
memory: "2048Mi"
```` ````
### Logical OR across validation patterns ### Logical OR across validation patterns