Skip to content

Commit

Permalink
[TEP-0075, 0076] Make array and object support implementable 👷‍♀️
Browse files Browse the repository at this point in the history
Update the TEPs about array and object support (TEP-0075 and TEP-0076)
to be implementable.

Also addressing feedback from @afrittoli in #479
  • Loading branch information
bobcatfish authored and tekton-robot committed Apr 11, 2022
1 parent 59f1bcc commit 8e7b274
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions teps/0075-object-param-and-result-types.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
status: proposed
status: implementable
title: Object/Dictionary param and result types
creation-date: '2021-07-14'
last-updated: '2022-02-02'
last-updated: '2022-03-18'
authors:
- '@bobcatfish'
- '@skaegi' # I didn't check with @skaegi before adding his name here, but I wanted to credit him b/c he proposed most of this in https://github.com/tektoncd/pipeline/issues/1393 1.5 years ago XD
Expand Down Expand Up @@ -421,6 +421,9 @@ Declaring defaults for parameters that are of type object would follow the patte
[array param defaults](https://github.com/tektoncd/pipeline/blob/main/docs/tasks.md#specifying-parameters) which is
to declare the value in the expected format in yaml (which is treated as json by the k8s APIs).

If a value is provided for the param, the default will not be used (i.e. there will be no behavior to merge the
default with the provided value, if for example the provided value specified some fields but not others).

Params example with default value:

```yaml
Expand Down Expand Up @@ -595,11 +598,13 @@ In the above example:
cat /place/with/actual/cloned/gitrepo.json > $(results.cloned-gitrepo.path)
```

`$(results.cloned-gitrepo.path)` refers to the path at which to write the `clone-gitrepo` object as json (tt does not
`$(results.cloned-gitrepo.path)` refers to the path at which to write the `clone-gitrepo` object as json (it does not
refer to an attribute of `cloned-gitrepo` called `path`, and even if `cloned-gitrepo` had a `path` attribute, there
would be no collision because variable replacement for individual attributes of the result is not supported within the
Task.

(See [emitting object reesults](#emitting-object-results) for more details.)

#### Within a Pipeline Task

Within the context of a Pipeline Task, the Pipeline author can refer to individual attributes of the object results of
Expand Down
4 changes: 2 additions & 2 deletions teps/0076-array-result-types.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
status: proposed
status: implementable
title: Array result types
creation-date: '2021-07-14'
last-updated: '2022-02-03'
last-updated: '2022-03-18'
authors:
- '@bobcatfish'
---
Expand Down
4 changes: 2 additions & 2 deletions teps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ This is the complete list of Tekton teps:
|[TEP-0072](0072-results-json-serialized-records.md) | Results: JSON Serialized Records | implementable | 2021-07-26 |
|[TEP-0073](0073-simplify-metrics.md) | Simplify metrics | implemented | 2022-02-28 |
|[TEP-0074](0074-deprecate-pipelineresources.md) | Deprecate PipelineResources | proposed | 2022-02-25 |
|[TEP-0075](0075-object-param-and-result-types.md) | Object/Dictionary param and result types | proposed | 2022-02-02 |
|[TEP-0076](0076-array-result-types.md) | Array result types | proposed | 2022-02-03 |
|[TEP-0075](0075-object-param-and-result-types.md) | Object/Dictionary param and result types | implementable | 2022-03-18 |
|[TEP-0076](0076-array-result-types.md) | Array result types | implementable | 2022-03-18 |
|[TEP-0079](0079-tekton-catalog-support-tiers.md) | Tekton Catalog Support Tiers | proposed | 2022-01-25 |
|[TEP-0080](0080-support-domainscoped-parameterresult-names.md) | Support domain-scoped parameter/result names | implemented | 2021-08-19 |
|[TEP-0081](0081-add-chains-subcommand-to-the-cli.md) | Add Chains sub-command to the CLI | implementable | 2021-10-21 |
Expand Down

0 comments on commit 8e7b274

Please sign in to comment.