mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
* feat: add support for subresources to validating and mutating policies Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com> * Add CLI test cases with subresources for validating policies Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com> * Fix existing e2e tests for validating policies and remove tests migrated to kuttl Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com> * Add kuttl e2e tests for validating policies with subresources Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com> * Add kuttl e2e tests for mutating policies with subresources Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com> * Add kuttl e2e tests for validating policy by-pass by manipulating preconditions Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com> Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.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.