-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Docs: Add TaskRun Status documentation section #7147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tekton-robot
merged 1 commit into
tektoncd:main
from
HamzaMateen:docs/taskruns-status-section
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,10 +28,12 @@ weight: 202 | |
| - [Specifying `Retries`](#specifying-retries) | ||
| - [Configuring the failure timeout](#configuring-the-failure-timeout) | ||
| - [Specifying `ServiceAccount` credentials](#specifying-serviceaccount-credentials) | ||
| - [<code>TaskRun</code> status](#taskrun-status) | ||
| - [The <code>status</code> field](#the-status-field) | ||
| - [Monitoring execution status](#monitoring-execution-status) | ||
| - [Monitoring `Steps`](#monitoring-steps) | ||
| - [Steps](#steps) | ||
| - [Monitoring `Results`](#monitoring-results) | ||
| - [Monitoring `Steps`](#monitoring-steps) | ||
| - [Steps](#steps) | ||
| - [Monitoring `Results`](#monitoring-results) | ||
| - [Cancelling a `TaskRun`](#cancelling-a-taskrun) | ||
| - [Debugging a `TaskRun`](#debugging-a-taskrun) | ||
| - [Breakpoint on Failure](#breakpoint-on-failure) | ||
|
|
@@ -771,6 +773,30 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas | |
| set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/). | ||
|
|
||
| For more information, see [`ServiceAccount`](auth.md). | ||
| ## `TaskRun` status | ||
| The `status` field defines the observed state of `TaskRun` | ||
| ### The `status` field | ||
| - Required: | ||
| - `status` - The most relevant information about the TaskRun's state. This field includes: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NIT: I think the "most relevant" comment is not necessary, but it's also ok to keep |
||
| - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. | ||
| - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. | ||
| - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format. | ||
| - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format. | ||
| - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`. | ||
|
|
||
| - Optional: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| - `results` - List of results written out by the `task`'s containers. | ||
|
|
||
| - `provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are: | ||
| - `refSource`: the source from where a remote `Task` definition was fetched. | ||
| - `featureFlags`: Identifies the feature flags used during the `TaskRun`. | ||
| - `steps` - Contains the `state` of each `step` container. | ||
| - `retriesStatus` - Contains the history of `TaskRun`'s `status` in case of a retry in order to keep record of failures. No `status` stored within `retriesStatus` will have any `date` within as it is redundant. | ||
|
|
||
| - [`sidecars`](tasks.md#using-a-sidecar-in-a-task) - This field is a list. The list has one entry per `sidecar` in the manifest. Each entry represents the imageid of the corresponding sidecar. | ||
| - `spanContext` - Contains tracing span context fields. | ||
|
|
||
|
|
||
|
|
||
| ## Monitoring execution status | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
podNameis missing in the "Required" sectionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I generated the API spec using Swagger, I found out that
podNamewas required but default so I skipped it. I will add it in my next edition. Thanks