1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-12 10:56:54 +00:00
kyverno/test/conformance/chainsaw/mutate/clusterpolicy/standard/mutate-node-status
gcp-cherry-pick-bot[bot] 1e46816e00
chore: bump chainsaw (#11161) (#11177)
* chore: bump chainsaw



* more template use



* v0.2.10



* go mod



---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-09-17 10:09:15 +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) (#11177) 2024-09-17 10:09:15 +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