2019-09-09 10:36:56 -07:00
|
|
|
# file path relative to project root
|
|
|
|
input:
|
2019-10-08 21:30:19 -07:00
|
|
|
policy: samples/best_practices/deny_runasrootuser.yaml
|
2019-10-14 12:36:19 -07:00
|
|
|
resource: test/scenarios/resources/deny_runasrootuser.yaml
|
2019-09-09 10:36:56 -07:00
|
|
|
expected:
|
|
|
|
validation:
|
|
|
|
policyresponse:
|
|
|
|
policy: validate-deny-runasrootuser
|
|
|
|
resource:
|
|
|
|
kind: Pod
|
|
|
|
apiVersion: v1
|
|
|
|
namespace: ''
|
|
|
|
name: check-root-user
|
|
|
|
rules:
|
|
|
|
- name: deny-runasrootuser
|
|
|
|
type: Validation
|
2019-09-17 18:36:24 -07:00
|
|
|
message: "Validation rule 'deny-runasrootuser' anyPattern[1] succesfully validated"
|
2019-09-09 10:36:56 -07:00
|
|
|
success: true
|
2019-09-09 10:56:19 -07:00
|
|
|
|