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 template with minimal values and no --api-versions: all 6 PDBs render policy/v1 (before this change: policy/v1beta1).
  • --set global.pdb.apiVersion=policy/v1beta1: all 6 PDBs render the override.
  • spec/configuration/pdb_spec.rb is updated, but I did not run rspec locally (no suitable Ruby available). It relies on CI.

Kubernetes references:

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.md does not document the fallback version.
  • 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

🤖 Generated with Claude Code

Edited by João Alexandre Cunha

Merge request reports

Loading
Loading