Unverified Commit 33bb8885 authored by Matthew Fisher's avatar Matthew Fisher
Browse files

fix(kube): fix race condition


.Get() calls perform() on a list of infos, populating two shared maps. perform() now concurrently calls the ResourceActorFunc concurrently based on GVK, causing a data race condition in .Get()

This fixes that condition by locking the function to ensure these functions run serially for Helm 2 to fix the data race condition. This has since been optimized in Helm 3 so it's no longer an issue.

Signed-off-by: default avatarMatthew Fisher <matt.fisher@microsoft.com>
Showing with 4 additions and 0 deletions
+4 -0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment