mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Fix nil pointer dereference in kube-apiserver when etcd is not there
This commit is contained in:
parent
08402d798c
commit
060ebfcea0
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue