gatekeeper-library icon indicating copy to clipboard operation
gatekeeper-library copied to clipboard

Incorrect PodDisruptionBudget ConstraintTemplate description

Open LilWatson opened this issue 1 year ago • 0 comments

Hi everybody,

just want to let you know that the description of the PodDisruptionBudget ConstraintTemplate says Deployment/Statefulset 's replicas are not allowed to be equal to the PDB's minAvailable, while it actualy checks if spec.replicas is greater then minAvailable.

Description: https://github.com/open-policy-agent/gatekeeper-library/blob/525a0050e47678a5500660d205742d7ed070e8e8/library/general/poddisruptionbudget/template.yaml#L21

Replicas check: https://github.com/open-policy-agent/gatekeeper-library/blob/525a0050e47678a5500660d205742d7ed070e8e8/library/general/poddisruptionbudget/template.yaml#L81

Playground Example with violation for minAvailable < spec.replicas https://play.openpolicyagent.org/p/lh2tKpzfMN

Have a nice day! :)

LilWatson avatar Sep 02 '24 12:09 LilWatson