-
Notifications
You must be signed in to change notification settings - Fork 250
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
Conversation
pkg/cmd/pipeline/start.go
Outdated
@@ -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)") |
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.
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 😅
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.
Yeah, I was wondering about this myself so thanks for mentioning. Think --prefix-name
works.
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.
sounds good to me too!
/retest |
/test pull-tekton-cli-integration-tests |
1 similar comment
/test pull-tekton-cli-integration-tests |
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.
/meow
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. |
/approve 🥳 |
[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 |
@vdemeester you meowed but you didnt lgtmed :D |
/lgtm |
Part of #671
Adding
--name
option fortkn pipeline start
to allow a user to specify what the name of the PipelineRun they will create is. Default name will follow the formatpipelinename-run-
.This option will override
--last
, which will use the name of the last PipelineRun for a pipeline if nothing is specified.Submitter Checklist
make check
make generated
Release Notes