-
Epic
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
CLI: Add TriggerTemplate
-
To Do
-
67% To Do, 0% In Progress, 33% Done
Goal
As a developer, I want to use the Tekton CLI to create a webhook for my pipeline so that I can add the webhook url in my Git repository settings to start the pipeline on the configured Git events.
tkn triggertemplate create
The create command would be interactive and similar to the tkn pipeline start command, with additional inputs for TriggerBinding/ClusterTriggerBinding and EventListener.
Acceptance Criteria
- Tekton CLI has a create command for adding webhooks
- create command is interactive and similar to the tkn pipeline start command
- User can select trigger bindings from a list of ClusterTriggerBinding and TriggerBinding available in the active namespace
- Use can select an EventListener
- If no EventListener exists, the command should create a default EventListener
- The URL for the webhook is displayed with a brief note instructing user to add the webhook on the Git repository settings.
Estimate
M
- links to