fix(catalogue): zone requirement follows the node class's offerings #29

Merged
mikluko merged 2 commits from catalogue-zones into main 2026-11-28 13:16:20 +00:00
Owner

catalogue.List narrows each returned type's topology.kubernetes.io/zone and capacity-type requirements to exactly the offerings it returns for that node class, on a per-call copy (exoscale's finding): otherwise Karpenter treats zones outside the node class as topology domains that can never get a node, so a zone spread with DoNotSchedule leaves replicas pending. A nil node class still covers every zone with offerings. Tests: requirement equals the node class's zones with offerings, an offering-less zone is absent, the cache is unchanged across Lists with different node classes.

🤖 Generated with Claude Code

catalogue.List narrows each returned type's topology.kubernetes.io/zone and capacity-type requirements to exactly the offerings it returns for that node class, on a per-call copy (exoscale's finding): otherwise Karpenter treats zones outside the node class as topology domains that can never get a node, so a zone spread with DoNotSchedule leaves replicas pending. A nil node class still covers every zone with offerings. Tests: requirement equals the node class's zones with offerings, an offering-less zone is absent, the cache is unchanged across Lists with different node classes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(catalogue): narrow zone and capacity-type requirements to the listed offerings
All checks were successful
CI / verify (pull_request) Has been skipped
CI / changelog (pull_request) Successful in 4s
CI / check (pull_request) Successful in 12s
CI / ci (pull_request) Successful in 0s
Vulnerabilities / govulncheck-1 (pull_request) Successful in 23s
Vulnerabilities / govulncheck (pull_request) Successful in 0s
29b06cd5f5
Karpenter turns a type's zone requirement into topology domains; zones of
the cloud outside the node class became empty domains no node could fill.

Assisted-By: Claude <noreply@anthropic.com>
fix(catalogue): read offering zone and capacity type through offering.KeyOf
All checks were successful
CI / verify (pull_request) Has been skipped
CI / changelog (pull_request) Successful in 5s
Vulnerabilities / govulncheck-1 (pull_request) Successful in 35s
Vulnerabilities / govulncheck (pull_request) Successful in 0s
CI / check (pull_request) Successful in 5m9s
CI / ci (pull_request) Successful in 0s
CI / check (push) Successful in 4s
CI / verify (push) Has been skipped
CI / changelog (push) Has been skipped
CI / ci (push) Successful in 0s
Vulnerabilities / govulncheck-1 (push) Successful in 35s
Vulnerabilities / govulncheck (push) Successful in 0s
e010243afe
Requirement.Any returns a random value for an Exists requirement; an
offering not pinned to one value now contributes none to the narrowed
requirements. The narrowed requirements keep the source's minValues.

Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch catalogue-zones 2026-11-28 13:16:20 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
karpenter/kit!29
No description provided.