1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/conformance/chainsaw/mutate/clusterpolicy/standard/mutate-node-status
Charles-Edouard Brétéché 5a0ce6bb67
chore: bump chainsaw (#11161)
* chore: bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* more template use

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* v0.2.10

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* go mod

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-09-17 09:28:33 +00:00
..
chainsaw-step-01-apply-1-1.yaml chore: convert chainsaw tests to Test resource (#9113) 2023-12-07 22:38:30 +01:00
chainsaw-step-01-assert-1-1.yaml chore: convert chainsaw tests to Test resource (#9113) 2023-12-07 22:38:30 +01:00
chainsaw-step-02-assert-1-1.yaml chore: convert chainsaw tests to Test resource (#9113) 2023-12-07 22:38:30 +01:00
chainsaw-test.yaml chore: bump chainsaw (#11161) 2024-09-17 09:28:33 +00:00
clear-modified-node-status.sh chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
modify-resource-filters.sh chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
README.md chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
send-request-to-status-subresource.sh chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00

Description

This test validates that an incoming request to Node/status is mutated by the mutation policy matching on Node/status.

Expected Behavior

The request is mutated.

Steps

Test Steps

  1. Create a ClusterPolicy that matches on Node/status and mutates the request.
  2. Modify kyverno resourceFilters to allow mutating requests for Node resource.
  3. Send a update request to Node/status.
  4. Mutate the incoming request (done by kyverno).
  5. Verify that the request is mutated.

Reference Issue(s)

https://github.com/kyverno/kyverno/issues/2843