Skip to content

Commit

Permalink
Remove logsURL from step status
Browse files Browse the repository at this point in the history
In tektoncd#549 @hrishin pointed out that it's hard to understand from the step
status exactly which step did what. While looking at this I realized
that we have included a field `logsURL` which we never populate - I
thought this was copied over from Build but it was actually from our
original prototype API and we have never used it. In #107 we should be
revisiting making logs available and we may add in something like this,
but since we're not using it and it's not clear if we ever will, let's
remove it for now.
  • Loading branch information
bobcatfish committed Feb 28, 2019
1 parent 19dbd0d commit 851bdcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
27 changes: 9 additions & 18 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,13 @@ status:
podName: echo-hello-world-task-run-pod-85ca51
startTime: 2018-12-11T15:49:39Z
steps:
- logsURL: ""
terminated:
- terminated:
containerID: docker://fcfe4a004...6729d6d2ad53faff41
exitCode: 0
finishedAt: 2018-12-11T15:50:01Z
reason: Completed
startedAt: 2018-12-11T15:50:01Z
- logsURL: ""
terminated:
- terminated:
containerID: docker://fe86fc5f7...eb429697b44ce4a5b
exitCode: 0
finishedAt: 2018-12-11T15:50:02Z
Expand Down Expand Up @@ -306,15 +304,13 @@ status:
podName: build-docker-image-from-git-source-task-run-pod-24d414
startTime: 2018-12-11T18:14:29Z
steps:
- logsURL: ""
terminated:
- terminated:
containerID: docker://138ce30c722eed....c830c9d9005a0542
exitCode: 0
finishedAt: 2018-12-11T18:14:47Z
reason: Completed
startedAt: 2018-12-11T18:14:47Z
- logsURL: ""
terminated:
- terminated:
containerID: docker://4a75136c029fb1....4c94b348d4f67744
exitCode: 0
finishedAt: 2018-12-11T18:14:48Z
Expand Down Expand Up @@ -512,15 +508,13 @@ status:
podName: tutorial-pipeline-run-1-build-skaffold-web-pod-21ddf0
startTime: 2018-12-11T20:30:19Z
steps:
- logsURL: ""
terminated:
- terminated:
containerID: docker://c699fcba94....f96108ac9f4db22b94e0c
exitCode: 0
finishedAt: 2018-12-11T20:30:36Z
reason: Completed
startedAt: 2018-12-11T20:30:36Z
- logsURL: ""
terminated:
- terminated:
containerID: docker://f5f752d....824262ad6ce7675
exitCode: 0
finishedAt: 2018-12-11T20:31:17Z
Expand All @@ -534,22 +528,19 @@ status:
podName: tutorial-pipeline-run-1-deploy-web-pod-7a796b
startTime: 2018-12-11T20:32:11Z
steps:
- logsURL: ""
terminated:
- terminated:
containerID: docker://eaefb7b6d685....f001f895430f71374
exitCode: 0
finishedAt: 2018-12-11T20:32:28Z
reason: Completed
startedAt: 2018-12-11T20:32:28Z
- logsURL: ""
terminated:
- terminated:
containerID: docker://4cfc6eba47a7a....dcaef1e9b1eee3661b8a85f
exitCode: 0
finishedAt: 2018-12-11T20:32:31Z
reason: Completed
startedAt: 2018-12-11T20:32:31Z
- logsURL: ""
terminated:
- terminated:
containerID: docker://01b376b92....dce4ccec9641d77
exitCode: 0
finishedAt: 2018-12-11T20:32:35Z
Expand Down
5 changes: 1 addition & 4 deletions pkg/apis/pipeline/v1alpha1/taskrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,9 @@ func (tr *TaskRunStatus) SetCondition(newCond *duckv1alpha1.Condition) {
}
}

// StepState reports the results of running a step in the Task. Each
// task has the potential to succeed or fail (based on the exit code)
// and produces logs.
// StepState reports the results of running a step in the Task.
type StepState struct {
corev1.ContainerState
LogsURL string `json:"logsURL"`
}

// +genclient
Expand Down

0 comments on commit 851bdcd

Please sign in to comment.