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
|
||||
data:
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels: {}
|
||||
matchExpressions: []
|
||||
policyTypes: []
|
||||
# select all pods in the namespace
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
metadata:
|
||||
labels:
|
||||
policyname: "default"
|
||||
|
|
|
@ -134,10 +134,10 @@ spec :
|
|||
- Deployment
|
||||
# Name is optional and can use wildcards
|
||||
name: "*"
|
||||
# Selector is optional
|
||||
selector:
|
||||
validate:
|
||||
pattern:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
^(containers):
|
||||
resources:
|
||||
|
|
Loading…
Add table
Reference in a new issue