double-fix crash on my cluster

This commit is contained in:
Daniel Smith
2015-03-11 09:48:01 -07:00
parent 88e0b04916
commit 6606f9c9f5
2 changed files with 4 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/registry/pod"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/golang/glog"
)
@@ -264,6 +265,7 @@ func (p *PodCache) UpdateAllContainers() {
pod := &pods.Items[i]
wg.Add(1)
go func() {
defer util.HandleCrash()
defer wg.Done()
err := p.updatePodStatus(pod)
if err != nil && err != client.ErrPodInfoNotAvailable {