-
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.
Prior to this, object parameters were not being propagated to the spec during resolution. After following the same logic as that for propagating parameters, we can not also propagate object params.
- Loading branch information
1 parent
d1956e5
commit a11c385
Showing
18 changed files
with
1,268 additions
and
124 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
28 changes: 28 additions & 0 deletions
28
examples/v1beta1/pipelineruns/alpha/propagated-pipeline-object-param.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,28 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
generateName: pipelinerun-object-param-result | ||
spec: | ||
params: | ||
- name: gitrepo | ||
value: | ||
url: abc.com | ||
commit: sha123 | ||
pipelineSpec: | ||
tasks: | ||
- name: task1 | ||
params: | ||
- name: gitrepo | ||
value: | ||
branch: main | ||
url: xyz.com | ||
taskSpec: | ||
steps: | ||
- name: write-result | ||
image: bash | ||
args: [ | ||
"echo", | ||
"--url=$(params.gitrepo.url)", | ||
"--commit=$(params.gitrepo.commit)", | ||
"--branch=$(params.gitrepo.branch)", | ||
] |
19 changes: 19 additions & 0 deletions
19
examples/v1beta1/taskruns/alpha/propagated-object-parameters.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,19 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: TaskRun | ||
metadata: | ||
generateName: object-param-result- | ||
spec: | ||
params: | ||
- name: gitrepo | ||
value: | ||
url: "xyz.com" | ||
commit: "sha123" | ||
taskSpec: | ||
steps: | ||
- name: echo-object-params | ||
image: bash | ||
args: [ | ||
"echo", | ||
"--url=$(params.gitrepo.url)", | ||
"--commit=$(params.gitrepo.commit)", | ||
] |
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.