mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Merge pull request #1711 from erictune/vets
Use pointer for struct holding lock.
This commit is contained in:
@@ -109,7 +109,7 @@ type Kubelet struct {
|
|||||||
dockerClient dockertools.DockerInterface
|
dockerClient dockertools.DockerInterface
|
||||||
rootDirectory string
|
rootDirectory string
|
||||||
networkContainerImage string
|
networkContainerImage string
|
||||||
podWorkers podWorkers
|
podWorkers *podWorkers
|
||||||
resyncInterval time.Duration
|
resyncInterval time.Duration
|
||||||
pods []Pod
|
pods []Pod
|
||||||
|
|
||||||
@@ -171,8 +171,8 @@ type podWorkers struct {
|
|||||||
workers util.StringSet
|
workers util.StringSet
|
||||||
}
|
}
|
||||||
|
|
||||||
func newPodWorkers() podWorkers {
|
func newPodWorkers() *podWorkers {
|
||||||
return podWorkers{
|
return &podWorkers{
|
||||||
workers: util.NewStringSet(),
|
workers: util.NewStringSet(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user