mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 15:37:19 +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
|
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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue