You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove TaskRuns and Runs Fields of PipelineRunStatus
This commit removes `status.taskruns` and `status.runs` for
PipelineRunStatus since they have been deprecated. The corresponding usage in
the test cases are replaced with `childReferences`.
"step-fetch-and-write" exited with code 1 (image: "docker.io/library/ubuntu@sha256:26c68657ccce2cb0a31b330cb0be2b5e108d467f641c62e13ab40cbec258c68d"); for logs run: kubectl -n default logs recipe-time-v5scg-fetch-the-recipe-pod -c step-fetch-and-write
1167
-
reason: Failed
1168
-
status: "False"
1169
-
type: Succeeded
1170
-
...
1171
-
taskSpec:
1172
-
steps:
1173
-
- image: ubuntu
1174
-
name: fetch-and-write
1175
-
resources: {}
1176
-
script: | # See below: Replacements do not happen.
1177
-
echo hi >> $(workspaces.shared-data.path)/recipe.txt
1082
+
childReferences:
1083
+
- name: recipe-time-v5scg-fetch-the-recipe
1084
+
pipelineTaskName: fetch-the-recipe
1085
+
kind: TaskRun
1178
1086
```
1179
1087
1180
1088
#### Referenced TaskRuns within Embedded PipelineRuns
@@ -1253,32 +1161,13 @@ status:
1253
1161
type: Succeeded
1254
1162
pipelineSpec:
1255
1163
...
1256
-
taskRuns:
1257
-
recipe-time-pj6l7-fetch-the-recipe:
1258
-
pipelineTaskName: fetch-the-recipe
1259
-
status:
1260
-
...
1261
-
taskSpec:
1262
-
steps:
1263
-
- image: ubuntu
1264
-
name: fetch-and-write
1265
-
resources: {}
1266
-
script: |
1267
-
echo /workspace/shared-data
1268
-
workspaces:
1269
-
- name: shared-data
1270
-
recipe-time-pj6l7-print-the-recipe:
1271
-
pipelineTaskName: print-the-recipe
1272
-
status:
1273
-
...
1274
-
taskSpec:
1275
-
steps:
1276
-
- image: ubuntu
1277
-
name: print-secrets
1278
-
resources: {}
1279
-
script: cat /workspace/shared-data/recipe.txt
1280
-
workspaces:
1281
-
- name: shared-data
1164
+
childReferences:
1165
+
- name: recipe-time-pj6l7-fetch-the-recipe
1166
+
pipelineTaskName: fetch-the-recipe
1167
+
kind: TaskRun
1168
+
- name: recipe-time-pj6l7-print-the-recipe
1169
+
pipelineTaskName: print-the-recipe
1170
+
kind: TaskRun
1282
1171
```
1283
1172
1284
1173
### Specifying `LimitRange` values
@@ -1376,8 +1265,6 @@ Your `PipelineRun`'s `status` field can contain the following fields:
1376
1265
- `completionTime`- The time at which the `PipelineRun` finished executing, in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
1377
1266
- [`pipelineSpec`](pipelines.md#configuring-a-pipeline) - The exact `PipelineSpec` used when starting the `PipelineRun`.
1378
1267
- Optional:
1379
-
- `taskRuns`- A map of `TaskRun` names to detailed information about the status of that `TaskRun`. This is deprecated and will be removed in favor of using `childReferences`.
1380
-
- `runs`- A map of custom task `Run` names to detailed information about the status of that `Run`. This is deprecated and will be removed in favor of using `childReferences`.
1381
1268
- [`pipelineResults`](pipelines.md#emitting-results-from-a-pipeline) - Results emitted by this `PipelineRun`.
1382
1269
- `skippedTasks`- A list of `Task`s which were skipped when running this `PipelineRun` due to [when expressions](pipelines.md#guard-task-execution-using-when-expressions), including the when expressions applying to the skipped task.
1383
1270
- `childReferences` - A list of references to each `TaskRun` or `Run` in this `PipelineRun`, which can be used to look up the status of the underlying `TaskRun` or `Run`. Each entry contains the following:
0 commit comments