2019-10-14 10:47:54 -07:00
|
|
|
# file path relative to project root
|
|
|
|
input:
|
2019-10-14 12:36:19 -07:00
|
|
|
policy: test/scenarios/mutate/policy_mutate_pod_disable_automountingapicred.yaml
|
|
|
|
resource: test/scenarios/mutate/resource_mutate_pod_disable_automountingapicred.yaml
|
2019-10-14 10:47:54 -07:00
|
|
|
expected:
|
|
|
|
mutation:
|
|
|
|
patchedresource: test/output/output_mutate_pod_disable_automoutingapicred.yaml
|
|
|
|
policyresponse:
|
|
|
|
policy: mutate-pod-disable-automoutingapicred
|
|
|
|
resource:
|
|
|
|
kind: Pod
|
|
|
|
apiVersion: v1
|
|
|
|
namespace: ''
|
|
|
|
name: myapp-pod
|
|
|
|
rules:
|
|
|
|
- name: pod-disable-automoutingapicred
|
|
|
|
type: Mutation
|
|
|
|
message: "succesfully process overlay"
|
|
|
|
success: true
|