-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add step-breakpoint container monitoring failure situations When this API detail is provided in the TaskRun payload, step-breakpoint container is added to the TaskRun Pod which can be used upon the failure of a step. Add -breakpoint_on_failure to entrypointer -breakpoint_on_failure disables exit of container upon failure Complete breakpoint execution if no failure If the TaskRun does not fail, free the step-breakpoint container Add continue script for breakpoint container debug-continue script is added to /tekton/debug which the users can use to mark the step as a success
- Loading branch information
1 parent
bad4550
commit 5636cf3
Showing
10 changed files
with
316 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 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
39 changes: 39 additions & 0 deletions
39
examples/v1beta1/taskruns/task-result-with-breakpoint.yaml
This file contains 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: TaskRun | ||
metadata: | ||
generateName: print-date- | ||
spec: | ||
debug: | ||
breakpoint: ["onFailure"] | ||
taskSpec: | ||
description: | | ||
A simple task that prints the date. | ||
results: | ||
- name: current-date-unix-timestamp | ||
description: The current date in unix timestamp format | ||
- name: current-date-human-readable | ||
description: The current date in human readable format | ||
steps: | ||
- name: print-date-unix-timestamp | ||
image: bash:latest | ||
script: | | ||
#!/usr/bin/env bash | ||
date +%s | tee /tekton/results/current-date-unix-timestamp | ||
exit 1 | ||
- name: print-date-human-readable | ||
image: bash:latest | ||
script: | | ||
#!/usr/bin/env bash | ||
date | tee /tekton/results/current-date-human-readable | ||
- name: print-date-unix-timestamp2 | ||
image: bash:latest | ||
script: | | ||
#!/usr/bin/env bash | ||
date +%s | tee /tekton/results/current-date-unix-timestamp2 | ||
- name: print-date-human-readable2 | ||
image: bash:latest | ||
script: | | ||
#!/usr/bin/env bash | ||
date | tee /tekton/results/current-date-human-readable2 | ||
exit 1 | ||
This file contains 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 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 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 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 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
Oops, something went wrong.