karmada/pkg/webhook/work
Mohamed Awnallah bd847422af pkg/webhook: test Work
In this commit, we introduce unit tests for the `MutatingAdmission`
webhook specifically for the `Work` resource. The mutation webhook
tests include the following:

- Handles decode errors and denies admission when decoding fails.
- Provides full coverage of policy mutation, including setting default
  and validating no unnecessary patches.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-12 07:28:03 +03:00
..
mutating.go Adopt controller-runtime braking changes: generics support PR2783 2024-07-13 16:49:01 +08:00
mutating_test.go pkg/webhook: test Work 2024-09-12 07:28:03 +03:00