Commit 642209bc authored by Geoff Simmons's avatar Geoff Simmons

Bugfix: skip undefined services or specs when updating backend stats.

parent 265031b9
......@@ -551,6 +551,9 @@ func (vc *VarnishController) updateBeGauges() {
nBeSvcs := 0
nBeEndps := 0
for _, svc := range vc.svcs {
if svc == nil || svc.spec == nil {
continue
}
nBeSvcs += len(svc.spec.spec.AllServices)
for _, beSvc := range svc.spec.spec.AllServices {
nBeEndps += len(beSvc.Addresses)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment