auto-deploy-app PodDisruptionBudget is not compatible with Kubernetes 1.25
Problem to solve
Reading the current release notes for gitlab.com:
This release adds full support for Kubernetes version 1.26, released in December 2022. If you use Kubernetes, you can now upgrade your clusters to the most recent version and take advantage of all its features.
However, when I look at the auto-deploy-app templates here in the repository, the pdb still says v1beta1, and when I look at the CI logs of my deploy jobs, they say:
W0412 22:49:16.110315 152 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
It seems to me that if I were to upgrade my Kubernetes cluster to 1.25, I would no longer be able to deploy using the bundled chart unless I disable disruption budgets.
Environment:
- GitLab.com Premium
- auto-deploy-image v2.48.0
- Using the chart bundled in auto-deploy-image
Proposal
Update the PodDisruptionBudget manifest to a supported API version.
Optional: Change one of the existing integration tests in .gitlab/ci/test.gitlab-ci.yml to install the PodDisruptionBudget manifest, or add a new one, to improve Kubernetes version support test coverage.