name: add-nodeselector
policies:
  - policy.yaml
resources:
  - resource.yaml
results:
  - policy: add-label
    rule: add-label
    resource: resource-equal-to-patch-res-for-cp
    patchedResource: patchedResource1.yaml
    kind: Pod
    namespace: practice
    result: skip
  - policy: add-label
    rule: add-label
    resource: same-name-but-diff-namespace
    patchedResource: patchedResource2.yaml
    kind: Pod
    namespace: testing
    result: pass
  - policy: add-label
    rule: add-label
    resource: same-name-but-diff-namespace
    patchedResource: patchedResource3.yaml
    kind: Pod
    namespace: production
    result: pass
  - policy: add-label
    rule: add-label
    resource: mydeploy
    patchedResource: patchedResource4.yaml
    kind: Deployment
    result: pass
  - policy: add-label
    rule: add-label
    resource: same-name-but-diff-kind
    patchedResource: patchedResource5.yaml
    kind: Service
    result: skip
  - policy: add-label
    rule: add-label
    resource: same-name-but-diff-kind
    patchedResource: patchedResource6.yaml
    kind: Pod
    result: pass
  - policy: add-ndots
    rule: add-ndots
    resource: resource-equal-to-patch-res-for-cp
    namespace: practice
    patchedResource: patchedResource7.yaml
    kind: Pod
    result: skip
  - policy: add-ndots
    rule: add-ndots
    resource: same-name-but-diff-namespace
    patchedResource: patchedResource8.yaml
    namespace: testing
    kind: Pod
    result: pass
  - policy: add-ndots
    rule: add-ndots
    resource: same-name-but-diff-namespace
    patchedResource: patchedResource9.yaml
    kind: Pod
    namespace: production
    result: skip
  - policy: add-ndots
    rule: add-ndots
    resource: mydeploy
    patchedResource: patchedResource10.yaml
    kind: Deployment
    result: skip
  - policy: add-ndots
    rule: add-ndots
    resource: same-name-but-diff-kind
    patchedResource: patchedResource5.yaml
    kind: Service
    result: skip
  - policy: add-ndots
    rule: add-ndots
    resource: same-name-but-diff-kind
    patchedResource: patchedResource11.yaml
    kind: Pod
    result: skip
  - policy: example
    rule: object_from_lists
    resource: example
    patchedResource: patched-resource.yaml
    kind: Pod
    result: pass