-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Checklist:
- [ X ] I've included steps to reproduce the bug.
- [ X ] I've included the version of argo rollouts.
Describe the bug
When adding a new label to spec.selector.matchLabels
and spec.template.metadata.labels
in a Rollout, the old ReplicaSet is not removed from the revision history list and old workloads keep running on the old app version, even when revisionHistoryLimit is set.
To Reproduce
- Create a Rollout using the manifest below:
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: rollouts-demo
spec:
replicas: 2
strategy:
canary:
steps:
- setWeight: 20
- pause: {duration: 2}
- setWeight: 80
- pause: {duration: 5}
revisionHistoryLimit: 2
selector:
matchLabels:
app: rollouts-demo
template:
metadata:
labels:
app: rollouts-demo
spec:
containers:
- name: rollouts-demo
image: argoproj/rollouts-demo:blue
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
requests:
memory: 32Mi
cpu: 5m
- Apply the manifest
- Update the Rollout by adding a new label under
spec.selector.matchLabels
andspec.template.metadata.labels
. - Observe the ReplicaSets.
Expected behavior
Old ReplicaSet should be removed (garbage collected) according to revisionHistoryLimit.
Screenshots

Version
v1.8.3
Logs
Paste the logs from the rollout controller
Logs for a specific rollout:
kubectl logs -n argo-rollouts deployment/argo-rollouts | grep rollout= rollouts-demo
time="2025-09-19T20:08:09Z" level=info msg="Started syncing rollout" generation=12 namespace=default resourceVersion=1758311752248175012 rollout=rollouts-demo
time="2025-09-19T20:08:09Z" level=info msg="No TrafficRouting Reconcilers found" namespace=default rollout=rollouts-demo
time="2025-09-19T20:08:09Z" level=info msg="No StableRS exists to reconcile or matches newRS" namespace=default rollout=rollouts-demo
time="2025-09-19T20:08:09Z" level=info msg="No Steps remain in the canary steps" namespace=default rollout=rollouts-demo
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
chicocvenancio and flaviolemos78
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working