mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
* feat: add subresource support to resource filters Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * filter Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * values Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> |
||
---|---|---|
.. | ||
01-assert.yaml | ||
01-manifests.yaml | ||
02-assert.yaml | ||
02-script.yaml | ||
99-cleanup.yaml | ||
clear-modified-node-status.sh | ||
modify-resource-filters.sh | ||
README.md | ||
send-request-to-status-subresource.sh |
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
- Create a
ClusterPolicy
that matches onNode/status
and mutates the request. - Modify kyverno
resourceFilters
to allow mutating requests forNode
resource. - Send a update request to
Node/status
. - Mutate the incoming request (done by kyverno).
- Verify that the request is mutated.