-
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.
TEP-0142: Surface step results via termination message
This PR surfaces step results (i.e results written to $(step.results.<resultName>.path)) via termination messages. A followup PR will handle surfacing the results via sidecar logs.
- Loading branch information
1 parent
54bda50
commit 751dda7
Showing
9 changed files
with
177 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: StepAction | ||
metadata: | ||
name: step-action-uri | ||
spec: | ||
results: | ||
- name: uri | ||
params: | ||
- name: uri | ||
image: alpine | ||
script: | | ||
echo $(params.uri) > $(step.results.uri.path) | ||
--- | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: StepAction | ||
metadata: | ||
name: step-action-uri-digest | ||
spec: | ||
results: | ||
- name: digest | ||
- name: uri | ||
params: | ||
- name: uri | ||
- name: digest | ||
image: alpine | ||
script: | | ||
echo $(params.digest) > $(step.results.digest.path) | ||
echo $(params.uri) > $(step.results.uri.path) | ||
--- | ||
apiVersion: tekton.dev/v1 | ||
kind: TaskRun | ||
metadata: | ||
name: step-action-run | ||
spec: | ||
TaskSpec: | ||
results: | ||
- name: step-1-uri | ||
value: $(steps.step1.results.uri) | ||
- name: step-2-uri | ||
value: $(steps.step2.results.uri) | ||
- name: digest | ||
steps: | ||
- name: step1 | ||
ref: | ||
name: step-action-uri | ||
params: | ||
- name: uri | ||
value: "https://github.com/tektoncd/pipeline" | ||
name: step2 | ||
- ref: | ||
name: step-action-uri-digest | ||
params: | ||
- name: uri | ||
value: "https://github.com/tektoncd/other" | ||
- name: digest | ||
value: "c8381846241cac4c93c30b6a5ac04cac51fa0a6e" |
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.