Skip to content

Commit aafce35

Browse files
authored
Merge pull request #35460 from sounix000/prunning_pipelinerun_taskrun_RHDEVDOCS-2381
RHDEVDOCS-2381 Document prunning of PipelineRun and TaskRun
2 parents 5334d86 + 31cc2e6 commit aafce35

File tree

4 files changed

+59
-45
lines changed

4 files changed

+59
-45
lines changed

modules/op-tkn-pipeline-management.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
= Pipelines management commands
77

88
== pipeline
9-
Manage Pipelines.
9+
Manage pipelines.
1010

1111
.Example: Display help
1212
[source,terminal]
@@ -16,45 +16,45 @@ $ tkn pipeline --help
1616

1717
== pipeline delete
1818

19-
Delete a Pipeline.
19+
Delete a pipeline.
2020

21-
.Example: Delete the `mypipeline` Pipeline from a namespace
21+
.Example: Delete the `mypipeline` pipeline from a namespace
2222
[source,terminal]
2323
----
2424
$ tkn pipeline delete mypipeline -n myspace
2525
----
2626

2727
== pipeline describe
28-
Describe a Pipeline.
28+
Describe a pipeline.
2929

30-
.Example: Describe `mypipeline` Pipeline
30+
.Example: Describe the `mypipeline` pipeline
3131
[source,terminal]
3232
----
3333
$ tkn pipeline describe mypipeline
3434
----
3535

3636
== pipeline list
37-
List Pipelines.
37+
Display a list of pipelines.
3838

39-
.Example: Display a list of Pipelines
39+
.Example: Display a list of pipelines
4040
[source,terminal]
4141
-----
4242
$ tkn pipeline list
4343
-----
4444

4545
== pipeline logs
46-
Display Pipeline logs for a specific Pipeline.
46+
Display the logs for a specific pipeline.
4747

48-
.Example: Stream live logs for the `mypipeline` Pipeline
48+
.Example: Stream the live logs for the `mypipeline` pipeline
4949
[source,terminal]
5050
----
5151
$ tkn pipeline logs -f mypipeline
5252
----
5353

5454
== pipeline start
55-
Start a Pipeline.
55+
Start a pipeline.
5656

57-
.Example: Start `mypipeline` Pipeline
57+
.Example: Start the `mypipeline` pipeline
5858
[source,terminal]
5959
----
6060
$ tkn pipeline start mypipeline

modules/op-tkn-pipeline-run.adoc

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// * cli_reference/tkn_cli/op-tkn-references.adoc
44

55
[id="op-tkn-pipeline-run_{context}"]
6-
= PipelineRun commands
6+
= Pipeline run commands
77

88

99
== pipelinerun
10-
Manage PipelineRuns.
10+
Manage pipeline runs.
1111

1212
.Example: Display help
1313
[source,terminal]
@@ -16,45 +16,52 @@ $ tkn pipelinerun -h
1616
----
1717

1818
== pipelinerun cancel
19-
Cancel a PipelineRun.
19+
Cancel a pipeline run.
2020

21-
.Example: Cancel the `mypipelinerun` PipelineRun from a namespace
21+
.Example: Cancel the `mypipelinerun` pipeline run from a namespace
2222
[source,terminal]
2323
----
2424
$ tkn pipelinerun cancel mypipelinerun -n myspace
2525
----
2626

2727
== pipelinerun delete
28-
Delete a PipelineRun.
28+
Delete a pipeline run.
2929

30-
.Example: Delete PipelineRuns from a namespace
30+
.Example: Delete pipeline runs from a namespace
3131
[source,terminal]
3232
----
3333
$ tkn pipelinerun delete mypipelinerun1 mypipelinerun2 -n myspace
3434
----
3535

36+
.Example: Delete all pipeline runs from a namespace, except the five most recently executed pipeline runs
37+
[source,terminal]
38+
----
39+
$ tkn pipelinerun delete -n myspace --keep 5 <1>
40+
----
41+
<1> Replace `5` with the number of most recently executed pipeline runs you want to retain.
42+
3643
== pipelinerun describe
37-
Describe a PipelineRun.
44+
Describe a pipeline run.
3845

39-
.Example: Describe the `mypipelinerun` PipelineRun in a namespace
46+
.Example: Describe the `mypipelinerun` pipeline run in a namespace
4047
[source,terminal]
4148
----
4249
$ tkn pipelinerun describe mypipelinerun -n myspace
4350
----
4451

4552
== pipelinerun list
46-
List PipelineRuns.
53+
List pipeline runs.
4754

48-
.Example: Display a list of PipelineRuns in a namespace
55+
.Example: Display a list of pipeline runs in a namespace
4956
[source,terminal]
5057
----
5158
$ tkn pipelinerun list -n myspace
5259
----
5360

5461
== pipelinerun logs
55-
Display the logs of a PipelineRun.
62+
Display the logs of a pipeline run.
5663

57-
.Example: Display the logs of the `mypipelinerun` PipelineRun with all tasks and steps in a namespace
64+
.Example: Display the logs of the `mypipelinerun` pipeline run with all tasks and steps in a namespace
5865
[source,terminal]
5966
----
6067
$ tkn pipelinerun logs mypipelinerun -a -n myspace

modules/op-tkn-task-management.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
= Task management commands
77

88
== task
9-
Manage Tasks.
9+
Manage tasks.
1010

1111
.Example: Display help
1212
[source,terminal]
@@ -15,45 +15,45 @@ $ tkn task -h
1515
----
1616

1717
== task delete
18-
Delete a Task.
18+
Delete a task.
1919

20-
.Example: Delete `mytask1` and `mytask2` Tasks from a namespace
20+
.Example: Delete `mytask1` and `mytask2` tasks from a namespace
2121
[source,terminal]
2222
----
2323
$ tkn task delete mytask1 mytask2 -n myspace
2424
----
2525

2626
== task describe
27-
Describe a Task.
27+
Describe a task.
2828

29-
.Example: Describe the `mytask` Task in a namespace
29+
.Example: Describe the `mytask` task in a namespace
3030
[source,terminal]
3131
----
3232
$ tkn task describe mytask -n myspace
3333
----
3434

3535
== task list
36-
List Tasks.
36+
List tasks.
3737

38-
.Example: List all the Tasks in a namespace
38+
.Example: List all the tasks in a namespace
3939
[source,terminal]
4040
----
4141
$ tkn task list -n myspace
4242
----
4343

4444
== task logs
45-
Display Task logs.
45+
Display task logs.
4646

47-
.Example: Display logs for the `mytaskrun` TaskRun of the `mytask` Task
47+
.Example: Display logs for the `mytaskrun` task run of the `mytask` task
4848
[source,terminal]
4949
----
5050
$ tkn task logs mytask mytaskrun -n myspace
5151
----
5252

5353
== task start
54-
Start a Task.
54+
Start a task.
5555

56-
.Example: Start the `mytask` Task in a namespace
56+
.Example: Start the `mytask` task in a namespace
5757
[source,terminal]
5858
----
5959
$ tkn task start mytask -s <ServiceAccountName> -n myspace

modules/op-tkn-task-run.adoc

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// * cli_reference/tkn_cli/op-tkn-reference.adoc
44

55
[id="op-tkn-task-run_{context}"]
6-
= TaskRun commands
6+
= Task run commands
77

88
== taskrun
9-
Manage TaskRuns.
9+
Manage task runs.
1010

1111
.Example: Display help
1212
[source,terminal]
@@ -15,9 +15,9 @@ $ tkn taskrun -h
1515
----
1616

1717
== taskrun cancel
18-
Cancel a TaskRun.
18+
Cancel a task run.
1919

20-
.Example: Cancel the `mytaskrun` TaskRun from a namespace
20+
.Example: Cancel the `mytaskrun` task run from a namespace
2121
[source,terminal]
2222
----
2323
$ tkn taskrun cancel mytaskrun -n myspace
@@ -26,35 +26,42 @@ $ tkn taskrun cancel mytaskrun -n myspace
2626
== taskrun delete
2727
Delete a TaskRun.
2828

29-
.Example: Delete `mytaskrun1` and `mytaskrun2` TaskRuns from a namespace
29+
.Example: Delete the `mytaskrun1` and `mytaskrun2` task runs from a namespace
3030
[source,terminal]
3131
----
3232
$ tkn taskrun delete mytaskrun1 mytaskrun2 -n myspace
3333
----
3434

35+
.Example: Delete all but the five most recently executed task runs from a namespace
36+
[source,terminal]
37+
----
38+
$ tkn taskrun delete -n myspace --keep 5 <1>
39+
----
40+
<1> Replace `5` with the number of most recently executed task runs you want to retain.
41+
3542
== taskrun describe
36-
Describe a TaskRun.
43+
Describe a task run.
3744

38-
.Example: Describe the `mytaskrun` TaskRun in a namespace
45+
.Example: Describe the `mytaskrun` task run in a namespace
3946
[source,terminal]
4047
----
4148
$ tkn taskrun describe mytaskrun -n myspace
4249
----
4350

4451
== taskrun list
45-
List TaskRuns.
52+
List task runs.
4653

47-
.Example: List all TaskRuns in a namespace
54+
.Example: List all the task runs in a namespace
4855
[source,terminal]
4956
----
5057
$ tkn taskrun list -n myspace
5158
----
5259

5360

5461
== taskrun logs
55-
Display TaskRun logs.
62+
Display task run logs.
5663

57-
.Example: Display live logs for the `mytaskrun` TaskRun in a namespace
64+
.Example: Display live logs for the `mytaskrun` task run in a namespace
5865

5966
[source,terminal]
6067
----

0 commit comments

Comments
 (0)