Skip to content

fix(workerpool-controller): support percentage PDB and hasKey-based template guards#136

Open
kutluhanmetin wants to merge 2 commits intomainfrom
CU-869d5hpj3-support-percentage-pdb
Open

fix(workerpool-controller): support percentage PDB and hasKey-based template guards#136
kutluhanmetin wants to merge 2 commits intomainfrom
CU-869d5hpj3-support-percentage-pdb

Conversation

@kutluhanmetin
Copy link
Copy Markdown
Contributor

@kutluhanmetin kutluhanmetin commented May 6, 2026

Related to: https://github.com/spacelift-io/kube-workerpool-controller/pull/205

Two related fixes to the PDB feature shipped in #134:

  1. Sync the updated Worker CRD (with a scale subresource) from kube-workerpool-controller. Without this, percentage-based PDBs land in SyncFailed: workers.workers.spacelift.io does not implement the scale subresource — the chart-default minAvailable: "100%" doesn't enforce its documented semantics.
  2. Fix a Go-template falsy bug in templates/pdb.yaml: {{- if .Values.pdb.maxUnavailable }} (and the symmetric minAvailable check, plus the mutually-exclusive guard) treats integer 0 as false, sopdb.maxUnavailable: 0 is silently dropped from the rendered spec. The resulting PDB has neither minAvailable nor maxUnavailable and gets accepted by Kubernetes but enforces nothing.
  • A chart version is updated
    • No changes on CRDs
    • CRDs are updated

@kutluhanmetin kutluhanmetin requested a review from a team as a code owner May 6, 2026 09:08
@kutluhanmetin kutluhanmetin requested a review from a team May 6, 2026 09:32
@sephriot
Copy link
Copy Markdown

sephriot commented May 7, 2026

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants