-
Notifications
You must be signed in to change notification settings - Fork 225
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
proper error message for fn eval/render when there are non-KRM resources #2198
Conversation
70d6c58
to
efe4a9e
Compare
I am actually thinking of another approach. It's important to enforce this invariant on input/output resources of each function execution(doing it in fnruntime can cover both Doing above is not sufficient to ensure the package is valid because if a package doesn't have any pipeline, function runner will not be invoked, we can have an explicit call for such cases (I think , in function named So, tests should include case where non-KRM resources with no pipeline as well. |
Will do |
@droot I moved the check to |
9c67b58
to
2d102eb
Compare
@droot please take a look, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please wait for @droot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New approach is neat! Thank you.
partially addresses #2039, improves error message for
fn eval
andfn render
when there are non-KRM resourcesBefore:
After:
Will do the same for
fn source
andfn sink
in a separate PR.