1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/test/policy/cli/cli.yaml
Shivkumar Dudhani 8c1d79ab28
linter suggestions (#655)
* cleanup phase 1

* linter fixes phase 2
2020-01-24 12:05:53 -08:00

38 lines
984 B
YAML

# file path relative to project root
input:
policy: test/scenarios/cli/policy_deployment.yaml
resource: test/scenarios/cli/nginx.yaml
expected:
passes: true
mutation:
patched_resource: test/output/nginx.yaml
rules:
- name: add-label
type: Mutation
messages:
- "Rule add-label: Patches successfully applied."
validation:
rules:
- name: check-image
type : Validation
messages:
- "Rule check-image: Validation successfully."
---
input:
policy: test/scenarios/cli/policy_deployment.yaml
resource: test/scenarios/cli/ghost.yaml
expected:
passes: true
mutation:
patched_resource: test/output/ghost.yaml
rules:
- name: add-label
type: Mutation
messages:
- "Rule add-label: Patches successfully applied."
validation:
rules:
- name: check-image
type : Validation
messages:
- "Rule check-image: Validation successfully."