Files
helm/pkg
Terry Howe d591a19b95 fix: protect FailingKubeClient.RecordedWaitOptions from data race (#31925)
* fix: protect FailingKubeClient.RecordedWaitOptions from concurrent access

Add a sync.Mutex to guard the append to RecordedWaitOptions in
GetWaiterWithOptions, fixing a data race detected by -race when
concurrent goroutines (e.g. upgrade + rollback) both call
GetWaiterWithOptions on the same FailingKubeClient instance.

Fixes race failures in TestUpgradeRelease_Interrupted_RollbackOnFailure
and TestInstallRelease_RollbackOnFailure_Interrupted.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: extract appendRecordedWaitOptionsLocked helper with defer unlock

Signed-off-by: Terry Howe <terrylhowe@gmail.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
(cherry picked from commit a5552edf9f)
2026-06-11 22:59:21 -04:00
..
2026-05-05 21:06:02 -07:00
2025-05-30 08:12:11 +02:00
2025-06-15 08:50:39 -06:00
2025-12-09 08:24:36 +01:00
2025-09-01 10:49:01 -07:00
2026-02-23 16:46:35 -08:00