charts
charts copied to clipboard
feat: Add PDB API version override to support Kubernetes 1.25+
Makes the Pod Disruption Budget API version configurable in the k8soketi Helm chart and defaults to the stable policy/v1 API.
Changes
-
Template: Modified
pdb.yamltemplate to use{{ .Values.pdb.apiVersion | default "policy/v1beta1" }}instead of hardcodedpolicy/v1beta1 -
Values: Added
pdb.apiVersion: policy/v1to use the stable API by default
Background
The policy/v1beta1 API for PodDisruptionBudget was:
- Deprecated in Kubernetes 1.21
- Removed in Kubernetes 1.25
Benefits
- ✅ Forward compatible: Defaults to stable
policy/v1API - ✅ Backward compatible: Allows override to
policy/v1beta1for older clusters - ✅ Configurable: Users can set any API version via values
- ✅ Safe upgrade path: Existing deployments continue working with fallback default
Testing
- Verified template renders correctly with both API versions
- Maintains existing functionality while supporting modern Kubernetes clusters