loft-sh / jspolicy

jsPolicy - Easier & Faster Kubernetes Policies using JavaScript or TypeScript
https://www.jspolicy.com
Apache License 2.0
353 stars 35 forks source link

Allow configure reinvocationPolicy of WebhookConfiguration in the JSPolicy specification #106

Closed verdel closed 9 months ago

verdel commented 9 months ago

I have a feature request. Currently, when creating a WebhookConfiguration for JSPolicy, the specification sets the value Never for the reinvocationPolicy parameter. However, in certain scenarios, it may be necessary to set the value to IfNeeded.

It is possible to add the ability to set values for reinvocationPolicy similar to the way failurePolicy is configured.

alexandradragodan commented 9 months ago

Hey, @verdel

Thanks for the suggestion! We'll prioritise it internally and come back with an update!