mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 07:26:55 +00:00
update examples
This commit is contained in:
parent
4e1b11c1d4
commit
fd71612794
2 changed files with 12 additions and 12 deletions
|
@ -68,10 +68,10 @@ spec:
|
|||
namespace: "{{request.object.metadata.name}}" # namespace that triggers this rule
|
||||
data:
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels: {}
|
||||
matchExpressions: []
|
||||
policyTypes: []
|
||||
# select all pods in the namespace
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
metadata:
|
||||
labels:
|
||||
policyname: "default"
|
||||
|
|
|
@ -134,17 +134,17 @@ spec :
|
|||
- Deployment
|
||||
# Name is optional and can use wildcards
|
||||
name: "*"
|
||||
# Selector is optional
|
||||
selector:
|
||||
validate:
|
||||
pattern:
|
||||
spec:
|
||||
^(containers):
|
||||
resources:
|
||||
requests:
|
||||
memory: "$(<=./../../limits/memory)"
|
||||
limits:
|
||||
memory: "2048Mi"
|
||||
template:
|
||||
spec:
|
||||
^(containers):
|
||||
resources:
|
||||
requests:
|
||||
memory: "$(<=./../../limits/memory)"
|
||||
limits:
|
||||
memory: "2048Mi"
|
||||
````
|
||||
|
||||
### Logical OR across validation patterns
|
||||
|
|
Loading…
Add table
Reference in a new issue