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:
parent
347f66b1f1
commit
2b17cb9104
4 changed files with 31 additions and 40 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue