-
Notifications
You must be signed in to change notification settings - Fork 228
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
Align eval output with render #1907
Conversation
Why does this show the resources instead of the PASS/FAIL? Per discussion, we need a document
|
The output destination here is controlled by |
|
Makes sense, but controlling both reading from stdin and writing to stdout keeps consistent with |
We need to prioritized this, filed an issue #1915, will start working on hashing these details out otherwise it will be hard to make progress on these PRs. |
To unblock this, we can address the piping behavior separeately. For now, this output lgtm:
|
func newFnRunner(ctx context.Context, f *kptfilev1alpha2.Function, pkgPath types.UniquePath) (kio.Filter, error) { | ||
// NewContainerRunner returns a kio.Filter given a specification of a container function | ||
// and it's config. | ||
func NewContainerRunner(ctx context.Context, f *kptfilev1alpha2.Function, pkgPath types.UniquePath) (kio.Filter, error) { |
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.
Not happy with this name since the name represent lower level than FunctionRunner.
But unable to find a good name, not worth blocking the PR :)
@@ -438,27 +443,30 @@ func (r *RunFns) defaultFnFilterProvider(spec runtimeutil.FunctionSpec, fnConfig | |||
AllowMount: true, | |||
}, | |||
} | |||
cf := &runtimeutil.FunctionFilter{ | |||
fltr = &runtimeutil.FunctionFilter{ |
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.
I would like to get away from crafting this filter here manually but it will be easier once my structured result changes are merged in.
* refactor fn runner * update eval output format * omit output when the result is printed to stdout * fix test * improve comment * always use FunctionRunner
Align the output of
fn eval
withfn render
.Example output:
close #1861