1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 10:04:25 +00:00

Merge pull request from nirmata/doc-fixes

fix label example
This commit is contained in:
shuting 2019-06-12 21:09:10 -07:00 committed by GitHub
commit d738aabada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,24 +43,26 @@ metadata :
name : validation-example
spec :
rules:
- resource:
- name: check-label
resource:
# Kind specifies one or more resource types to match
kinds:
- Deployment
- StatefuleSet
- DaemonSet
# Name is optional and can use wildcards
name: *
name: "*"
# Selector is optional
selector:
validate:
# Message is optional
message: "The label app is required"
message: "The label app is required"
pattern:
spec:
selector:
matchLabels:
app: "?*"
template:
metadata:
labels:
app: "?*"
````