• 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
.circleci Loading commit data...
.github Loading commit data...
_proto Loading commit data...
cmd Loading commit data...
docs Loading commit data...
pkg Loading commit data...
rootfs Loading commit data...
scripts Loading commit data...
testdata Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
KEYS Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
SECURITY_CONTACTS Loading commit data...
code-of-conduct.md Loading commit data...
glide.lock Loading commit data...
glide.yaml Loading commit data...
versioning.mk Loading commit data...