name: test-variables
policies:
  - cm-variable-example.yaml
  - cm-multiple-example.yaml
  - cm-array-example.yaml
  - cm-blk-scalar-example.yaml
  - cm-globalval-example.yaml
  - image-example.yaml
resources:
  - resources.yaml
variables: variables.yaml
results:
  - policy: cm-multiple-example
    rule: example-configmap-lookup
    resource: test-env-test
    kind: Pod
    result: pass
  - policy: cm-multiple-example
    rule: example-configmap-lookup
    resource: test-env-dev
    kind: Pod
    result: fail
  - policy: cm-variable-example
    rule: example-configmap-lookup
    resource: test-env-test
    kind: Pod
    result: pass
  - policy: cm-variable-example
    rule: example-configmap-lookup
    resource: test-env-dev
    kind: Pod
    result: fail
  - policy: cm-array-example
    rule: validate-role-annotation
    resource: test-web
    kind: Pod
    result: fail
  - policy: cm-array-example
    rule: validate-role-annotation
    resource: test-app
    kind: Pod
    result: pass
  - policy: cm-blk-scalar-example
    rule: validate-blk-role-annotation
    resource: test-blk-web
    kind: Pod
    result: fail
  - policy: cm-blk-scalar-example
    rule: validate-blk-role-annotation
    resource: test-blk-app
    kind: Pod
    result: pass
  - policy: cm-globalval-example
    rule: validate-mode
    resource: test-global-dev
    kind: Pod
    result: pass
  - policy: cm-globalval-example
    rule: validate-mode
    resource: test-global-prod
    kind: Pod
    result: fail
  - policy: images
    rule: only-allow-trusted-images
    resource: test-pod-with-non-root-user-image
    kind: Pod
    status: pass
  - policy: images
    rule: only-allow-trusted-images
    resource: test-pod-with-trusted-registry
    kind: Pod
    status: pass
  - policy: images
    rule: only-allow-trusted-images
    resource: test-pod-with-non-trusted-registry
    kind: Pod
    status: fail
