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
data:
spec:
podSelector:
matchLabels: {}
matchExpressions: []
policyTypes: []
# select all pods in the namespace
podSelector: {}
policyTypes:
- Ingress
metadata:
labels:
policyname: "default"

View file

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