During each reconciliation process, etcd-operator performs health check on all etcd members. Currently it just returns the first error if any. We should return all errors instead.
|
for _, healthInfo := range healthInfos { |
|
if !healthInfo.Health { |
|
// TODO: also update metrics? |
|
return memberlistResp, healthInfos, errors.New(healthInfo.String()) |
|
} |
|
lg.Info(healthInfo.String()) |
|
} |
During each reconciliation process, etcd-operator performs health check on all etcd members. Currently it just returns the first error if any. We should return all errors instead.
etcd-operator/internal/controller/utils.go
Lines 543 to 549 in 6791fdc