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

tkn pipeline create Command #492

Merged
merged 1 commit into from
Dec 5, 2019
Merged

tkn pipeline create Command #492

merged 1 commit into from
Dec 5, 2019

Conversation

danielhelfand
Copy link
Member

This pull request adds a tkn pipeline create command that helps address #192. It draws a lot of its design from #265 with some fixes from the original proposal.

This implementation only supports YAML. It can create a pipeline via a pipeline defined in a local or remote file.

Usage:

Local file:
tkn pipeline create -f localfile.yaml

Remote file:
tkn pipeline create -f https://foo.com/remotefile.yaml

Co-Authored-By: Jie Shen [email protected]

Submitter Checklist

  • Includes tests (if functionality changed/added)
  • Includes docs (if user facing)
  • Regenerate the manpages and docs with make docs and make man if needed.
  • Run the code checkers with make check
  • Commit messages follow commit message best practices

Release Notes

Adding tkn pipeline create command to create pipelines

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 3, 2019
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 80.6%

@danielhelfand
Copy link
Member Author

@gavinfish Thanks for a lot of your work in helping put this pr together. I would like to give you co-authorship of this pr. Would you be willing to sign the CLA?

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 80.6%

},
}
f.AddFlags(c)
c.Flags().StringVarP(&opts.from, "from", "f", "", "local or remote filename to use to create the pipeline")
Copy link
Member Author

Choose a reason for hiding this comment

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

Question here is whether to include option or just accept arg at command line.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is fine, no issue

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 80.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 80.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 80.6%

@danielhelfand
Copy link
Member Author

/test pull-tekton-cli-unit-tests
/test pull-tekton-cli-integration-tests

@danielhelfand
Copy link
Member Author

danielhelfand commented Dec 3, 2019

/test pull-tekton-cli-integration-tests

@danielhelfand
Copy link
Member Author

/test pull-tekton-cli-unit-tests

@danielhelfand
Copy link
Member Author

/retest

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes and removed cla: no labels Dec 3, 2019
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 80.6%

Copy link
Contributor

@piyush-garg piyush-garg 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 Dec 4, 2019
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 4, 2019
@danielhelfand
Copy link
Member Author

@piyush-garg Thanks! Added licenses.

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 80.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot tekton-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 5, 2019
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

@tekton-robot tekton-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 5, 2019
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

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 Dec 5, 2019
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 5, 2019
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/create.go Do not exist 93.3%
pkg/helper/file/file.go Do not exist 51.6%

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 Dec 5, 2019
@tekton-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@danielhelfand danielhelfand mentioned this pull request Dec 5, 2019
5 tasks
@tekton-robot tekton-robot merged commit 8aae696 into tektoncd:master Dec 5, 2019
pradeepitm12 pushed a commit to pradeepitm12/cli that referenced this pull request Jun 30, 2021
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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants