mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
8c1d79ab28
* cleanup phase 1 * linter fixes phase 2
38 lines
984 B
YAML
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."
|