2019-10-04 16:50:23 -07:00
|
|
|
|
|
|
|
# file path relative to project root
|
|
|
|
input:
|
2019-10-14 12:42:31 -07:00
|
|
|
policy: samples/more/policy_validate_user_group_fsgroup_id.yaml
|
2019-10-14 14:10:34 -07:00
|
|
|
resource: test/resources/resource_validate_fsgroup.yaml
|
2019-10-04 16:50:23 -07:00
|
|
|
expected:
|
|
|
|
validation:
|
|
|
|
policyresponse:
|
2019-10-10 12:22:07 -07:00
|
|
|
policy: validate-userid-groupid-fsgroup
|
2019-10-04 16:50:23 -07:00
|
|
|
resource:
|
|
|
|
kind: Pod
|
|
|
|
apiVersion: v1
|
|
|
|
namespace: ''
|
|
|
|
name: fsgroup-demo
|
|
|
|
rules:
|
2019-10-10 12:22:07 -07:00
|
|
|
- name: validate-userid
|
|
|
|
type: Validation
|
|
|
|
message: Validation rule 'validate-userid' succesfully validated
|
|
|
|
success: true
|
|
|
|
- name: validate-groupid
|
|
|
|
type: Validation
|
|
|
|
message: Validation rule 'validate-groupid' succesfully validated
|
|
|
|
success: true
|
2019-10-04 16:50:23 -07:00
|
|
|
- name: validate-fsgroup
|
|
|
|
type: Validation
|
2019-10-10 12:22:07 -07:00
|
|
|
message: Validation rule 'validate-fsgroup' succesfully validated
|
|
|
|
success: true
|