Skip to content

Return all health errors instead of just the first one #265

@ahrtr

Description

@ahrtr

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())
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions