2019-08-30 00:22:37 -07:00
|
|
|
# file path relative to project root
|
|
|
|
input:
|
2019-10-14 14:10:34 -07:00
|
|
|
policy: test/policy/mutate/policy_mutate_endpoint.yaml
|
|
|
|
resource: test/resources/resource_mutate_endpoint.yaml
|
2019-08-30 00:22:37 -07:00
|
|
|
expected:
|
|
|
|
mutation:
|
|
|
|
patchedresource: test/output/output_mutate_endpoint.yaml
|
|
|
|
policyresponse:
|
2021-06-30 00:43:11 +03:00
|
|
|
policy:
|
|
|
|
namespace: ''
|
|
|
|
name: policy-endpoints
|
2019-08-30 00:22:37 -07:00
|
|
|
resource:
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
namespace: ''
|
|
|
|
name: test-endpoint
|
|
|
|
rules:
|
|
|
|
- name: pEP
|
|
|
|
type: Mutation
|
|
|
|
success: true
|
2020-01-24 12:05:53 -08:00
|
|
|
message: successfully process JSON patches
|