Single common fn.Client factory for all commands#824
Single common fn.Client factory for all commands#824knative-prow-robot merged 1 commit intoknative:mainfrom
fn.Client factory for all commands#824Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@lkingland this is how unified fn.Client factory could look like. |
Codecov Report
@@ Coverage Diff @@
## main #824 +/- ##
==========================================
+ Coverage 43.02% 43.26% +0.23%
==========================================
Files 47 48 +1
Lines 4720 4683 -37
==========================================
- Hits 2031 2026 -5
+ Misses 2398 2366 -32
Partials 291 291
Continue to review full report at Codecov.
|
d42108f to
27df622
Compare
Signed-off-by: Matej Vasek <mvasek@redhat.com>
27df622 to
31f0800
Compare
fn.Client factory for all commands.fn.Client factory for all commands
| @@ -0,0 +1,87 @@ | |||
| package cmd | |||
lance
left a comment
There was a problem hiding this comment.
Overall this lgtm and seems to be a big improvement over the more ad hoc method of instantiating a client within each subcommand. I do have one small question about some interrupt behavior that seems to have been removed. I also have some lingering concern about how we will address additional build strategies (e.g. local or s2i). I wouldn't expect you to have given a lot of thought to that, as it's only recently been discussed. But if you have, I would be interested in how you see that working with this flow.
Indeed I didn't think much about it, but I think these changes shouldn't affect it much. |
|
/lgtm |
Added single common factory function of
fn.Clientfor all commands.This allows to set all important settings at one place.