Skip to content

feat: add replica retention rules to karmada - #202

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

feat: add replica retention rules to karmada#202
savme wants to merge 1 commit into
mainfrom
feat/workloaddeployment-scale-retention

Conversation

@savme

@savme savme commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Karmada retention for WorkloadDeployment.spec.replicas.

Why

WorkloadDeployment now exposes /scale, backed by spec.replicas. HPA will write that field in the member cluster. Without retention, Karmada resyncs would overwrite the member cluster's local spec.replicas value with the hub copy, undoing local scale decisions.

Details

  • Adds a retention interpreter to the existing WorkloadDeployment ResourceInterpreterCustomization.
  • Retains only spec.replicas from the observed member-cluster object.
  • Adds make interpreter-test using karmadactl interpret.
  • Wires interpreter validation into make test.

Test

make interpreter-test

Related to #201
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