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:
|
2021-06-30 00:43:11 +03:00
|
|
|
policy:
|
|
|
|
name: mutate-pods-spec
|
2020-05-26 10:36:56 -07:00
|
|
|
resource:
|
|
|
|
kind: Deployment
|
|
|
|
apiVersion: apps/v1
|
|
|
|
namespace: test-foo-aaaaaaaaa-bbbbbbbb
|
|
|
|
name: nginx-deployment
|
|
|
|
rules:
|
|
|
|
- name: disable-servicelink-and-token
|
|
|
|
type: Mutation
|
2021-09-30 00:04:13 -07:00
|
|
|
status: pass
|
2022-01-04 17:36:33 -08:00
|
|
|
message: mutated Deployment/nginx-deployment in namespace test-foo-aaaaaaaaa-bbbbbbbb
|