Skip to content

Commit da400b4

Browse files
committed
Add --resolvertype flag to rerun a resolver based pipelinerun
- Add --resolvertype flag supporting hub, git, http, cluster, bundle and remote resolver type - Implement special remote resolver that finds latest PipelineRun with any resolver type and rerun it - If --resolvertype flag value is except remote, filters pipelinerun by that resolver type - Integrate --resolvertype with existing --last flag functionality - With --resolvertype and --last flags pipeline name is optional - With --last flag pipeline name is optional - Add validation: resolvertype requires pipeline name except for remote type - Support all flag combinations: --resolvertype only, --last only, both together - Include the unit tests closes: #2422 Signed-off-by: Shiv Verma <[email protected]>
1 parent 611c0fe commit da400b4

File tree

4 files changed

+938
-1
lines changed

4 files changed

+938
-1
lines changed

docs/cmd/tkn_pipeline_start.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ my-csi-template and my-volume-claim-template)
7474
--pipeline-timeout string timeout for PipelineRun
7575
--pod-template string local or remote file containing a PodTemplate definition
7676
--prefix-name string specify a prefix for the PipelineRun name (must be lowercase alphanumeric characters)
77+
--resolvertype string resolver type for remote pipelines (hub, git, http, cluster, bundles, remote)
7778
-s, --serviceaccount string pass the serviceaccount name
7879
--showlog show logs right after starting the Pipeline
7980
--skip-optional-workspace skips the prompt for optional workspaces

docs/man/man1/tkn-pipeline-start.1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ Parameters, at least those that have no default value
7575
\fB\-\-prefix\-name\fP=""
7676
specify a prefix for the PipelineRun name (must be lowercase alphanumeric characters)
7777

78+
.PP
79+
\fB\-\-resolvertype\fP=""
80+
resolver type for remote pipelines (hub, git, http, cluster, bundles, remote)
81+
7882
.PP
7983
\fB\-s\fP, \fB\-\-serviceaccount\fP=""
8084
pass the serviceaccount name

0 commit comments

Comments
 (0)