1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/test/policy/validate/check_hostpath.yaml
2019-11-13 13:56:20 -08:00

19 lines
350 B
YAML

apiVersion : kyverno.io/v1
kind: ClusterPolicy
metadata:
name: check-host-path
spec:
rules:
- name: check-host-path
match:
resources:
kinds:
- Pod
validate:
message: "Host path is not allowed"
pattern:
spec:
volumes:
- name: "*"
hostPath:
path: ""