1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00

Merge pull request #513 from nirmata/510_update_policy

update policy
This commit is contained in:
shuting 2019-11-18 11:08:58 -08:00 committed by GitHub
commit 730eca9b10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -19,5 +19,5 @@ spec:
pattern:
spec:
=(volumes):
=(hostPath):
path: "!/var/run/docker.sock"
- =(hostPath):
path: "!/var/run/docker.sock"

View file

@ -14,5 +14,5 @@ expected:
rules:
- name: validate-docker-sock-mount
type: Validation
message: "Validation error: Use of the Docker Unix socket is not allowed\nValidation rule 'validate-docker-sock-mount' failed at path '/spec/volumes/'."
message: "Validation error: Use of the Docker Unix socket is not allowed\nValidation rule 'validate-docker-sock-mount' failed at path '/spec/volumes/0/hostPath/path/'."
success: false