1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/test/scenarios/other/scenario_mutate_pod_spec.yaml
Mohan B E bd406f5bb8
added conversion of overlay to patch strategic merge (#1138)
* added conversion of overlay to patch strategic merge and modified unittest for the same

* updated best practice policy
2020-09-22 16:19:09 -07:00

19 lines
No EOL
610 B
YAML

# file path relative to project root
input:
policy: test/policy/mutate/policy_mutate_pod_spec.yaml
resource: test/resources/resource_mutate_pod_spec.yaml
expected:
mutation:
patchedresource: test/output/output_mutate_pod_spec.yaml
policyresponse:
policy: mutate-pods-spec
resource:
kind: Deployment
apiVersion: apps/v1
namespace: test-foo-aaaaaaaaa-bbbbbbbb
name: nginx-deployment
rules:
- name: disable-servicelink-and-token
type: Mutation
success: true
message: successfully processed stragetic merge patch