2020-05-26 10:36:56 -07:00
|
|
|
# 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
|
2020-09-23 04:49:09 +05:30
|
|
|
message: successfully processed stragetic merge patch
|