1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

fix(kubernetes): fix data-race in GetKubeClient() EE-4436 (#8498)

This commit is contained in:
andres-portainer 2023-03-14 20:11:28 -03:00 committed by GitHub
parent 347f66b1f1
commit 2b17cb9104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 40 deletions

View file

@ -2,7 +2,6 @@ package cli
import (
"context"
"sync"
"testing"
portainer "github.com/portainer/portainer/api"
@ -40,7 +39,6 @@ func Test_NamespaceAccessPoliciesDeleteNamespace_updatesPortainerConfig_whenConf
k := &KubeClient{
cli: kfake.NewSimpleClientset(),
instanceID: "instance",
lock: &sync.Mutex{},
}
config := &ktypes.ConfigMap{