-
Notifications
You must be signed in to change notification settings - Fork 263
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
Adds service get command #90
Adds service get command #90
Conversation
Hi @navidshaikh. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
d801da9
to
1f09723
Compare
1f09723
to
67b3c2a
Compare
@cppforlife : Addressed your review comments PTAL, if the structure looks good, I will add some unit tests. |
67b3c2a
to
32b0864
Compare
/ok-to-test |
After analysing the test errors, I think we have a more serious issue here when we want to use the
The two options, to try cli-runtime with client-go 1.12 or to try knative-serving with client-go 1.14 both failed. Afais, we have two options if we want to reuse the functionality of the printers package in cli-runtime:
But maybe there are other solutions ? Maybe we should also reconsider the re-usage of @cppforlife @sixolet wdyt ? |
replaces service list command
32b0864
to
662a562
Compare
@rhuss : I think there was a mess up for vendors files due to multiple rebases (this PR was rebased onto another one, which is now merged). I reset hard to point to master and added / updated the files in this PR to create fresh commits, the failure is gone! |
The following is the coverage report on pkg/.
|
@navidshaikh I think so, too. I was a bit confused about the reference to So, if there is no direct usage of 1.14 Looks all good to me now, and sorry for the noise ... |
|
||
// ToPrinter attempts to find a composed set of ServiceGetFlags suitable for | ||
// returning a printer based on current flag values. | ||
func (f *ServiceGetFlags) ToPrinter() (hprinters.ResourcePrinter, 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.
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.
Yes, that was it. As long as you don't have a reference into 'cli-runtime/pkg/printers' anymore, there is no need for 'go modules' to add a newer version of cli-runtime (i.e. 1.14) which conflicts with serving 0.5.2 (and k8s 1.12).
So this is actually the important change and of course a better fix then copying over stuff.
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.
lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: navidshaikh, rhuss, sixolet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
* Adds service get command replaces service list command * Updates go.mod and vendors/* * Adds message if no services found in requested namespace * Adds tests for service get
* Adds service get command replaces service list command * Updates go.mod and vendors/* * Adds message if no services found in requested namespace * Adds tests for service get
* Adds service get command replaces service list command * Updates go.mod and vendors/* * Adds message if no services found in requested namespace * Adds tests for service get
Fixes #40