Skip to content

Commit 35858df

Browse files
author
edge-katanomi-app2[bot]
committed
📚 Sync docs from alaudadevops/tektoncd-operator on b148c0cd64fce3641c9e27fe62fd179dcb1683d4
Source: docs: [DEVOPS-43538] add transform description for attributes field (#1545) Author: yzc Ref: refs/heads/main Commit: b148c0cd64fce3641c9e27fe62fd179dcb1683d4 This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: https://github.com/alaudadevops/tektoncd-operator/commit/b148c0cd64fce3641c9e27fe62fd179dcb1683d4 🤖 Synced on 2026-04-03 07:32:04 UTC
1 parent 015caf6 commit 35858df

2 files changed

Lines changed: 33 additions & 4 deletions

File tree

.github/SYNC_INFO.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Documentation Sync Information
22

3-
- **Last synced**: 2026-04-03 07:19:04 UTC
3+
- **Last synced**: 2026-04-03 07:32:04 UTC
44
- **Source repository**: alaudadevops/tektoncd-operator
5-
- **Source commit**: [4ac32a29ec523d327b979d739a2e28f0b8e4b538](https://github.com/alaudadevops/tektoncd-operator/commit/4ac32a29ec523d327b979d739a2e28f0b8e4b538)
5+
- **Source commit**: [b148c0cd64fce3641c9e27fe62fd179dcb1683d4](https://github.com/alaudadevops/tektoncd-operator/commit/b148c0cd64fce3641c9e27fe62fd179dcb1683d4)
66
- **Triggered by**: edge-katanomi-app2[bot]
7-
- **Workflow run**: [#184](https://github.com/alaudadevops/tektoncd-operator/actions/runs/23937930509)
7+
- **Workflow run**: [#185](https://github.com/alaudadevops/tektoncd-operator/actions/runs/23938282244)
88

99
## Files synced:
1010
- docs/

docs/en/pipelines/concepts/integrate_with_connector.mdx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ Output attributes calculated from parameters and connector information, and thei
158158
attributes:
159159
- name: url
160160
param: git-url # Pipeline parameter name (when parameterized)
161+
transform: # Optional value transform
162+
prefix: "https://" # Add prefix before resolved attribute value
163+
suffix: ".git" # Add suffix after resolved attribute value
164+
accessor: "repository" # Read sub-value (field/index) from structured attribute
161165
refPath: # Where this attribute is used
162166
- tasks.git-clone.params.url # PipelineTask parameter that receives this value
163167
- name: revision
@@ -171,8 +175,33 @@ attributes:
171175
- **Attribute value** is calculated using the expression defined in `ResourceInterface.spec.attributes[].expression`
172176
- **Parameterized attributes** create pipeline parameters (specified by `param` field)
173177
- **Static attributes** use fixed values (specified by `value` field)
178+
- **transform** optionally adjusts a resolved attribute value before mapping:
179+
- `prefix`: adds a prefix string to the attribute value
180+
- `suffix`: adds a suffix string to the attribute value
181+
- `accessor`: selects a sub-value from structured attributes:
182+
- for array attributes, use an index (for example, `"0"`)
183+
- for object attributes, use a field name (for example, `"repository"`)
184+
- after `accessor` selects a sub-value, the resulting attribute value is converted to `string`
174185
- **refPath** defines where the attribute value is used in pipeline tasks
175186

187+
**Quick example (`transform`)**
188+
189+
```yaml
190+
attributes:
191+
- name: artifacts
192+
param: chartRef
193+
transform:
194+
accessor: "0"
195+
prefix: "oci://"
196+
suffix: "-prod"
197+
```
198+
199+
If the resolved `artifacts` value is `["registry.example.com/team/app"]`, this mapping uses the first item and produces `oci://registry.example.com/team/app-prod`.
200+
201+
- Use `accessor` when the attribute is an array/object and you only need one item/field.
202+
- Use `prefix` when the downstream task expects a fixed protocol or literal prefix (for example, `oci://`).
203+
- Use `suffix` when the downstream task needs a fixed postfix such as an environment marker (for example, `-prod`).
204+
176205
### Workspaces
177206

178207
Workspace mapping between ResourceInterface workspaces and pipeline workspaces:
@@ -310,4 +339,4 @@ For example:
310339
## References
311340

312341
- <ExternalSiteLink name="connectors" href="/connectors/concepts/connector.html" children="What is Connector" />
313-
- <ExternalSiteLink name="connectors" href="/connectors/concepts/resource_interface.html" children="What is ResourceInterface" />
342+
- <ExternalSiteLink name="connectors" href="/connectors/concepts/resource_interface.html" children="What is ResourceInterface" />

0 commit comments

Comments
 (0)