-
Notifications
You must be signed in to change notification settings - Fork 246
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
Add resource list command #128
Conversation
/ok-to-test |
|
||
options := v1.ListOptions{} | ||
prec := cs.Tekton.TektonV1alpha1().PipelineResources(p.Namespace()) | ||
pres, err := prec.List(options) |
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.
How about we group the objects by type?
I also wonder if we can ensure the order remains the same between subsequent invocations; perhaps sorted by time?.
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.
@sthaha you mean type: ImageResource
for a instance (resource.spec.type)`?
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.
Good point. We can work this out in a follow-up :
- Be able to group resources
- Be able to filter based on resource types
/test pull-tekton-cli-go-coverage |
/test pull-tekton-cli-go-coverage |
@hrishin I have addressed your review comment. |
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.
👍
We need to add a few more test cases.
@hrishin Addressed |
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.
few more comments (please)
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.
just last thing @piyush-garg ? then looks good
/LGTM |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the ℹ️ Googlers: Go here for more info. |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
6523bba
to
d880902
Compare
This will add resource list command to list all the pipelineresource available in the default or provided namespace It will show NAME and TYPE fields Add docs regarding the new command Add e2e test This will fix tektoncd#108
@sthaha @vdemeester one more review round? |
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
/meow boxes
We can enhance in follow-ups
### Options inherited from parent commands | ||
|
||
``` | ||
--azure-container-registry-config string Path to the file containing Azure container registry configuration information. |
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.
nit: we need to prepare a follow-up to remove this flag everywhere in the docs 😹
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.
👍
|
||
options := v1.ListOptions{} | ||
prec := cs.Tekton.TektonV1alpha1().PipelineResources(p.Namespace()) | ||
pres, err := prec.List(options) |
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.
Good point. We can work this out in a follow-up :
- Be able to group resources
- Be able to filter based on resource types
Use: "tkn", | ||
Short: "CLI for tekton pipelines", | ||
Long: ``, | ||
Use: "tkn", |
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.
This changes is weird (aka I don't see why goimports
or gofmt
would do that)
@vdemeester: Bad category. Please see https://api.thecatapi.com/api/categories/list In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: piyush-garg, vdemeester 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 |
Changes
This will add resource list command to
list all the pipelineresource available in the default
or provided namespace
It will show NAME and TYPE fields
Add docs regarding the new command
Add e2e test
This will fix #108
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.
Release Notes