Skip to content

Commit

Permalink
Merge pull request kubernetes#4899 from lhuard1A/fix_panic_kube_apise…
Browse files Browse the repository at this point in the history
…rver

Fix nil pointer dereference in kube-apiserver when etcd is not there
  • Loading branch information
bgrant0607 committed Feb 27, 2015
2 parents c6175fa + 060ebfc commit 900d58e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/master/pod_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ func (p *PodCache) GarbageCollectPodStatus() {
pods, err := p.pods.ListPods(api.NewContext(), labels.Everything())
if err != nil {
glog.Errorf("Error getting pod list: %v", err)
return
}
keys := map[objKey]bool{}
for _, pod := range pods.Items {
Expand Down

0 comments on commit 900d58e

Please sign in to comment.