• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Azure / ARO-RP / 44014742763

17 Nov 2026 04:05AM UTC coverage: 40.769% (-0.004%) from 40.773%
44014742763

push

github

web-flow
[ARO-4021] Add retry-on-conflict to operator controller condition updates (#5190)

* [ARO-4021] Add retry-on-conflict to operator controller condition updates

Multiple operator controllers concurrently update the singleton Cluster
CR, causing 409 Conflict errors when one controller's stale copy is
used for an update after another controller has modified the object.

Fix base.AROController.SetConditions to wrap its Get→Modify→Update in
retry.RetryOnConflict (matching the pattern already used by
conditions.SetCondition). Change the method to return errors instead of
silently swallowing them, and update all wrapper methods (SetProgressing,
ClearProgressing, SetDegraded, ClearDegraded, ClearConditions) and their
callers across all operator controllers to handle the returned error.

Fix PullSecret controller to re-read the cluster object inside a
retry.RetryOnConflict loop before updating RedHatKeysPresent status,
preventing stale-object conflicts.

Fix ClusterOperatorARO controller to wrap its Update and status update
in retry.RetryOnConflict, re-reading both the Cluster and
ClusterOperator objects inside the retry loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [ARO-4021] Address review: propagate SetProgressing error, add retry tests

Address Copilot review comments on the retry-on-conflict changes:

1. node_controller.go: Propagate the SetProgressing error instead of
   silently dropping it. Since there is no primary error to preserve at
   that point, returning the error lets controller-runtime requeue.

2. base/aro_controller_test.go: Add conflict-injection regression tests
   for SetConditions verifying that (a) retry re-reads the cluster and
   preserves concurrent condition changes from another controller,
   (b) exhausted retries return a conflict error, and (c) non-conflict
   errors are returned immediately without retry.

3. clusteroperatoraro_controller_test.go: Add retry tests covering
   (a) conflict during metadata Updat... (continued)

74 of 124 new or added lines in 16 files covered. (59.68%)

6 existing lines in 3 files now uncovered.

32804 of 80464 relevant lines covered (40.77%)

0.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.59
/pkg/operator/controllers/node/node_controller.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc