Use policy/v1 PodDisruptionBudget when available
What does this MR do?
This MR introduces gitlab.pdb.apiVersion
helper template that find the appropriate version of PodDisruptionBudget
based on the capabilities of the cluster and uses it to set the apiVersions
of all PodDisruptionBudget
, including the forked nginx-ingress
. It helps to replace the deprecated policy/v1beta1
version with the policy/v1
when available. It also supports global and local apiVersion
override values for PDBs.
Related issues
Closes #3037 (closed) Closes #3070 (closed)
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion.
Required
-
Merge Request Title and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Tests added -
Integration tests added to GitLab QA -
Equivalent MR/issue for omnibus-gitlab opened
Closes #3037 (closed)
Edited by Jason Plum