• Matthew Fisher's avatar
    fix(kube): fix race condition · 33bb8885
    Matthew Fisher authored
    .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: 's avatarMatthew Fisher <matt.fisher@microsoft.com>
    33bb8885
Name
Last commit
Last update
..
client.go Loading commit data...
client_test.go Loading commit data...
config.go Loading commit data...
log.go Loading commit data...
namespace.go Loading commit data...
namespace_test.go Loading commit data...
resource_policy.go Loading commit data...
resource_policy_test.go Loading commit data...
result.go Loading commit data...
result_test.go Loading commit data...
tunnel.go Loading commit data...
tunnel_test.go Loading commit data...
wait.go Loading commit data...