Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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.

@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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants