Skip to content

feat: add HPA controller for workload deployments - #203

Merged
savme merged 2 commits into
mainfrom
feat/workloaddeployment-hpa-controller
Aug 13, 2026
Merged

feat: add HPA controller for workload deployments#203
savme merged 2 commits into
mainfrom
feat/workloaddeployment-hpa-controller

Conversation

@savme

@savme savme commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR adds the cell-local autoscaling controller for WorkloadDeployment.

When a WorkloadDeployment has autoscaling enabled, the controller creates and keeps a matching HPA up to date. The HPA stays local to the cell and is not propagated through karmada. This uses the existing CPU and memory metric settings for configuration.

Note that Resource metrics still need to be served for pods created by kraftlet. This will be added in a follow-up.

Related to datum-cloud/enhancements#799

@savme
savme requested a review from scotwells August 3, 2026 17:02
scotwells
scotwells previously approved these changes Aug 3, 2026

@scotwells scotwells left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@savme can we add a chainsaw end to end test to validate this behavior? I think for this we can just validate that the HPA is lifecycle correctly based on auto-scale settings.

Longer-term we need to think about how we can validate auto-scaling behavior in CI so we can confirm that custom metrics we export for instances can trigger auto-scaling.

@savme
savme force-pushed the feat/workloaddeployment-hpa-controller branch from 4517f0d to 77e6dca Compare August 4, 2026 13:56
scotwells
scotwells previously approved these changes Aug 5, 2026
stack merge was automatically disabled August 11, 2026 10:22

Pull Request is not mergeable

stack merge was automatically disabled August 11, 2026 10:22

Pull Request is not mergeable

@savme
savme force-pushed the feat/workloaddeployment-hpa-controller branch from 77e6dca to dd973b7 Compare August 11, 2026 10:23
Base automatically changed from feat/workloaddeployment-scale-subresource to main August 11, 2026 10:25
@savme
savme force-pushed the feat/workloaddeployment-hpa-controller branch from dd973b7 to 6371c6d Compare August 11, 2026 10:26
@savme

savme commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

No changes since the last review. Just github stacked PRs being a bit awkward to use 😒

@savme
savme requested a review from scotwells August 12, 2026 13:13
@savme
savme merged commit e67fe80 into main Aug 13, 2026
9 checks passed
@savme
savme deleted the feat/workloaddeployment-hpa-controller branch August 13, 2026 17:44
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