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

--prefix-name option for tkn pipeline start #719

Merged
merged 1 commit into from
Feb 17, 2020
Merged

--prefix-name option for tkn pipeline start #719

merged 1 commit into from
Feb 17, 2020

Conversation

danielhelfand
Copy link
Member

@danielhelfand danielhelfand commented Feb 12, 2020

Part of #671

Adding --name option for tkn pipeline start to allow a user to specify what the name of the PipelineRun they will create is. Default name will follow the format pipelinename-run-.

This option will override --last, which will use the name of the last PipelineRun for a pipeline if nothing is specified.

Submitter Checklist

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

Release Notes

--prefix-name option that allows user to specify name of pipelinerun

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 12, 2020
@@ -159,6 +160,7 @@ like cat,foo,bar
c.Flags().StringSliceVarP(&opt.Labels, "labels", "l", []string{}, "pass labels as label=value.")
c.Flags().BoolVarP(&opt.DryRun, "dry-run", "", false, "preview pipelinerun without running it")
c.Flags().StringVarP(&opt.Output, "output", "", "", "format of pipelinerun dry-run (yaml or json)")
c.Flags().StringVarP(&opt.Name, "name", "", "", "specify a name for the pipelinerun (must be lowercase alphanumeric characters)")
Copy link
Member

Choose a reason for hiding this comment

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

Should it be call prefixName or something ? just name would either make me think it's the pipeline name or will be the full pipelinerun name 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I was wondering about this myself so thanks for mentioning. Think --prefix-name works.

Copy link
Member

Choose a reason for hiding this comment

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

sounds good to me too!

@danielhelfand danielhelfand changed the title --name option for tkn pipeline start --prefix-name option for tkn pipeline start Feb 13, 2020
@danielhelfand
Copy link
Member Author

/retest

@danielhelfand
Copy link
Member Author

/test pull-tekton-cli-integration-tests

1 similar comment
@danielhelfand
Copy link
Member Author

/test pull-tekton-cli-integration-tests

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.

/meow

@tekton-robot
Copy link
Contributor

@vdemeester: cat image

In response to this:

/meow

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.

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 14, 2020
@chmouel
Copy link
Member

chmouel commented Feb 14, 2020

/approve

🥳

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chmouel, 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

@chmouel
Copy link
Member

chmouel commented Feb 14, 2020

@vdemeester you meowed but you didnt lgtmed :D

@vdemeester
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 17, 2020
@tekton-robot tekton-robot merged commit e96f29c into tektoncd:master Feb 17, 2020
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.

5 participants