Skip to content

feat: add /scale subresource to WorkloadDeployment - #201

Open
savme wants to merge 1 commit into
mainfrom
feat/workloaddeployment-scale-subresource
Open

feat: add /scale subresource to WorkloadDeployment#201
savme wants to merge 1 commit into
mainfrom
feat/workloaddeployment-scale-subresource

Conversation

@savme

@savme savme commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Add the WorkloadDeployment scale foundation needed for load-driven autoscaling.

Summary

This exposes the standard Kubernetes /scale subresource for WorkloadDeployment. HPA and other scalers can use it to write the desired replica count at spec.replicas, read the current count from status.replicas, and discover backing Pods through status.selector.

The selector uses the workload deployment UID label: compute.datumapis.com/workload-deployment-uid=<workloaddeployment uid>

The reconciler now initializes/backfills spec.replicas from scaleSettings.minReplicas and uses that scale-backed value when deciding how many Instance objects to create.

Notes

This PR does not create HPA objects, add metrics, or implement autoscaling policy.

Depends on datum-cloud/unikraft-provider#93
Related to datum-cloud/enhancements#799

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.

1 participant