2019-10-10 10:29:10 -07:00
|
|
|
# file path relative to project root
|
|
|
|
input:
|
2019-11-11 17:55:54 -08:00
|
|
|
policy: samples/more/restrict_image_registries.yaml
|
2019-10-14 14:10:34 -07:00
|
|
|
resource: test/resources//trusted_image_registries.yaml
|
2019-10-10 10:29:10 -07:00
|
|
|
expected:
|
|
|
|
validation:
|
|
|
|
policyresponse:
|
2019-11-10 18:13:01 -08:00
|
|
|
policy: restrict-image-registries
|
2019-10-10 10:29:10 -07:00
|
|
|
resource:
|
|
|
|
kind: Pod
|
|
|
|
apiVersion: v1
|
|
|
|
namespace: ''
|
|
|
|
name: k8s-nginx
|
|
|
|
rules:
|
2019-11-10 18:13:01 -08:00
|
|
|
- name: validate-registries
|
2019-10-10 10:29:10 -07:00
|
|
|
type: Validation
|
|
|
|
success: true
|