Skip to content

feat: Support autoscaling from zero#66

Merged
hrak merged 1 commit intodevelopfrom
scale_from_zero
Jul 17, 2025
Merged

feat: Support autoscaling from zero#66
hrak merged 1 commit intodevelopfrom
scale_from_zero

Conversation

@hrak
Copy link
Member

@hrak hrak commented Jul 16, 2025

Issue #, if available:

Description of changes:

This change adds support for scaling from zero as defined in this cluster-api proposal.

The PR adds a Status to the CloudStackMachineTemplate resource with a single field Capacity that stores the amount of CPUs and memory for the machine. A small controller for the CloudStackMachineTemplate is added that updates the capacity field using the service offering referenced in the machine template. CloudStack API is queried to determine the amount of CPUs and memory.

Testing performed:

Added several tests for the feature.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@hrak hrak added the enhancement New feature or request label Jul 16, 2025
@hrak hrak changed the base branch from main to develop July 17, 2025 07:54
@hrak hrak merged commit 08016e3 into develop Jul 17, 2025
3 checks passed
@hrak hrak deleted the scale_from_zero branch July 17, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants