Default PodDisruptionBudget to policy/v1
What does this MR do?
Default the PodDisruptionBudget apiVersion to policy/v1.
When the chart is rendered without cluster API discovery (for example helm template without --api-versions), the PDB apiVersion fell back to policy/v1beta1. Kubernetes removed that version in 1.25. Every Kubernetes version the chart supports serves policy/v1, so this MR makes it the default and drops the capability probe.
Explicit global.pdb.apiVersion and local pdb.apiVersion overrides still work. The bundled nginx-ingress PDBs use the same helper, so they get the new default too.
Verification:
helm templatewith minimal values and no--api-versions: all 6 PDBs renderpolicy/v1(before this change:policy/v1beta1).--set global.pdb.apiVersion=policy/v1beta1: all 6 PDBs render the override.spec/configuration/pdb_spec.rbis updated, but I did not run rspec locally (no suitable Ruby available). It relies on CI.
Kubernetes references:
policy/v1beta1PodDisruptionBudget is no longer served as of Kubernetes 1.25: Deprecated API Migration Guide – PodDisruptionBudget v1.25
Related issues
Author checklist
For general guidance, please follow our Contributing guide.
Required
For anything in this list which will not be completed, please provide a reason in the MR discussion.
- Merge Request Title and Description are up to date, accurate, and descriptive.
- MR targeting the appropriate branch.
- MR has a green pipeline.
- Documentation created/updated.
- No documentation change needed:
doc/charts/globals.mddoes not document the fallback version.
- No documentation change needed:
- Tests added/updated.
- Have you validated that your change works end-to-end on a real cluster deployment?
- Describe how you did it in a comment.
- Equivalent MR/issue for omnibus-gitlab opened.
- Not applicable: chart-only change.
- When ready for review, MR is marked as ready (not a draft) and assigned to a reviewer.
Reviewers checklist
- As soon as you begin reviewing, select Start a review on your first comment so the MR shows Reviewer started review.
- MR has a green pipeline on https://gitlab.com/gitlab-org/charts/gitlab.
- Consider downstream impact to the Operator, as per evaluating impact from changes to GitLab chart.