Skip to content
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 describe subcommand #37

Merged
merged 1 commit into from
May 27, 2019
Merged

Add describe subcommand #37

merged 1 commit into from
May 27, 2019

Conversation

pradeepitm12
Copy link
Contributor

@pradeepitm12 pradeepitm12 commented May 21, 2019

This adds a describe subcommand to pipeline subcommand,to describe
given pipeline.

eg - tkn pipeline describe pipelinename

Signed-off-by: Pradeep Kumar pradkuma@redhat.com

Changes

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

release-note

@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 21, 2019
@hrishin
Copy link
Member

hrishin commented May 22, 2019

/ok-to-test

@tekton-robot tekton-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 22, 2019
Copy link
Member

@hrishin hrishin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Show resolved Hide resolved
pkg/cmd/pipeline/describe_test.go Show resolved Hide resolved
@pradeepitm12
Copy link
Contributor Author

/retest

Copy link
Member

@hrishin hrishin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! 👍 @pradeepitm12

Also, could we keep a line gap between printing each resource and make resource name in plural form like TASKS, RUNS?
e.g.

NAME : pipeline

RESOURCES
NAME   TYPE
No resources

TASKS
NAME   TASKREF   RUNAFTER
No tasks

RUNS
NAME             STARTED          DURATION     STATUS
pipeline-run-1   15 minutes ago   10 minutes   Succeeded

pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
@pradeepitm12
Copy link
Contributor Author

/retest

@hrishin
Copy link
Member

hrishin commented May 22, 2019

@vdemeester could you review it, please?

Copy link
Member

@hrishin hrishin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please address the comment and squash the commit messages?

pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
@pradeepitm12
Copy link
Contributor Author

/retest

pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to UPPERCASE everything I think 👼 (only the table column headers), like below

Name : voting-build-pipeline

Resources
NAME                  TYPE
samples-git           git
voting-vote-image     image
voting-worker-image   image
voting-result-image   image

Tasks
NAME                 TASKREF     RUNAFTER
build-worker         mvn-build   []
build-worker-image   buildah     []
build-vote-image     buildah     []
build-result-image   buildah     []

Runs
No runs

Otherwise, few comments, but looks good 👍

pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe_test.go Outdated Show resolved Hide resolved
pkg/cmd/pipeline/describe_test.go Show resolved Hide resolved
@pradeepitm12
Copy link
Contributor Author

/retest

This adds a describe subcommand to pipeline subcommand,to describe
given pipeline.

eg - tkn pipeline describe pipelinename

Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 27, 2019
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hrishin, piyush-garg, pradeepitm12, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 27, 2019
@tekton-robot tekton-robot merged commit 47ba596 into tektoncd:master May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants