Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Include reconciler name in validation errors #230

Merged
merged 2 commits into from
May 9, 2022

Conversation

mamachanko
Copy link
Collaborator

Makes it easier to find invalid reconcilers by including the offending reconciler's name in the error message.

@mamachanko mamachanko force-pushed the better-must-implement-errors branch from 19935b5 to db7bd0f Compare May 9, 2022 06:17
@codecov
Copy link

codecov bot commented May 9, 2022

Codecov Report

Merging #230 (db7bd0f) into main (af55ebc) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #230   +/-   ##
=======================================
  Coverage   65.07%   65.07%           
=======================================
  Files           9        9           
  Lines        1008     1008           
=======================================
  Hits          656      656           
  Misses        330      330           
  Partials       22       22           
Impacted Files Coverage Δ
reconcilers/reconcilers.go 81.69% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af55ebc...db7bd0f. Read the comment docs.

mamachanko and others added 2 commits May 9, 2022 16:30
- all reconciler are now named
- include reconciler type/name in field validation that is a nil check

Signed-off-by: Scott Andrews <andrewssc@vmware.com>
@scothis scothis force-pushed the better-must-implement-errors branch from db7bd0f to 11d1639 Compare May 9, 2022 20:55
@scothis scothis merged commit c7766dc into vmware-labs:main May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants