Skip to content

feat: add capacityBlocks field to AKSNodeClass CRD#1534

Draft
comtalyst wants to merge 1 commit intomainfrom
eidolon/capacity-blocks-crd
Draft

feat: add capacityBlocks field to AKSNodeClass CRD#1534
comtalyst wants to merge 1 commit intomainfrom
eidolon/capacity-blocks-crd

Conversation

@comtalyst
Copy link
Copy Markdown
Collaborator

@comtalyst comtalyst commented Mar 16, 2026

No description provided.

@comtalyst comtalyst marked this pull request as draft March 17, 2026 00:36
Add CapacityBlockSpec struct and capacityBlocks list field to
AKSNodeClassSpec in both v1beta1 and v1alpha2 API versions. This enables
users to reference Azure Capacity Block reservations in their
AKSNodeClass configuration.

The field accepts a list of capacity block references with:
- resourceID (required): ARM resource ID with regex validation
- skuName (optional): VM SKU constraint
- startTime/endTime (optional): reservation time window
- quantity (optional): reserved instance count for validation

Includes regenerated CRD YAML, deepcopy functions, hash tests, CEL
validation tests, and a TODO in aksmachineinstancehelpers.go for future
Machine API integration.

Phase 1 only: CRD field + validation + tests. No scheduling logic.
Refs: karpenter-poc#1606

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@comtalyst comtalyst force-pushed the eidolon/capacity-blocks-crd branch from 743e277 to a866e65 Compare March 17, 2026 08:11
@comtalyst comtalyst added the experimental-please-ignore Issues or PRs that should be ignored unless been told otherwise. label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

experimental-please-ignore Issues or PRs that should be ignored unless been told otherwise.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant