kubewarden / kubewarden-controller

Manage admission policies in your Kubernetes cluster with ease
https://kubewarden.io
Apache License 2.0
182 stars 30 forks source link

Feature Request: allow `PolicyServer` to have Pod disruption budget #692

Closed flavio closed 2 months ago

flavio commented 3 months ago

Is your feature request related to a problem?

This is a feature part of this epic

Solution you'd like

Users must be allowed to specify Disruption Budget for the Policy Server workloads.

The PolicyServer CRD must be extended to have the following new numerical attributes:

Note, both fields are optional. According to PodDisruptionBudgetSpec they are both omitempty.

When set, the kubewarden-controller will create a v1/PodDisruptionBudget object that has the attributed provided by the user. The selector attribute will be created by the controller to match the pods of the PolicyServer instance the CRD refers to.

Note: the PDB spec has a beta feature called unhealthyPodEvictionPolicy. This is currently in beta phase, we will not handle it during this first iteration.

Admission Criteria

jvanz commented 2 months ago

Issue should not be close until all PRs are merged