fix label example
@@ -43,14 +43,15 @@ 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:
@@ -58,8 +59,9 @@ spec :
message: "The label app is required"
pattern:
spec:
- selector:
- matchLabels:
+ template:
+ metadata:
+ labels:
app: "?*"
````
