Skip to content

Commit f6d13d2

Browse files
author
edge-katanomi-app2[bot]
committed
📚 Sync docs from alaudadevops/tektoncd-operator on 50edd5065f3d778e6b7361de15fd225e826c5e78
Source: docs(results): clarify tkn-results quick start (#1539) Author: l-qing Ref: refs/heads/release-4.0 Commit: 50edd5065f3d778e6b7361de15fd225e826c5e78 This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: https://github.com/alaudadevops/tektoncd-operator/commit/50edd5065f3d778e6b7361de15fd225e826c5e78 🤖 Synced on 2026-03-31 16:09:42 UTC
1 parent 69d755f commit f6d13d2

4 files changed

Lines changed: 42 additions & 11 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-03-30 13:24:46 UTC
3+
- **Last synced**: 2026-03-31 16:09:42 UTC
44
- **Source repository**: alaudadevops/tektoncd-operator
5-
- **Source commit**: [dab5aa32dec0742c4a9b2b17a3c6f16f86d1175e](https://github.com/alaudadevops/tektoncd-operator/commit/dab5aa32dec0742c4a9b2b17a3c6f16f86d1175e)
5+
- **Source commit**: [50edd5065f3d778e6b7361de15fd225e826c5e78](https://github.com/alaudadevops/tektoncd-operator/commit/50edd5065f3d778e6b7361de15fd225e826c5e78)
66
- **Triggered by**: edge-katanomi-app2[bot]
7-
- **Workflow run**: [#167](https://github.com/alaudadevops/tektoncd-operator/actions/runs/23747030875)
7+
- **Workflow run**: [#173](https://github.com/alaudadevops/tektoncd-operator/actions/runs/23807382418)
88

99
## Files synced:
1010
- docs/

‎docs/en/install.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,6 @@ spec:
324324

325325
After successfully installing the Alauda DevOps Pipelines Operator:
326326

327-
- [Adjusting Optional Configuration Items of Subcomponents](../configure/customize_options)
328-
- [Configuring Resource Quotas for Pipeline Components](../configure/customize_tekton_pipeline)
329-
- [Regular Cleanup of TaskRun and PipelineRun Resources](../configure/pruner_resources)
327+
- [Adjusting Optional Configuration Items of Subcomponents](./configure/customize_options.mdx)
328+
- [Configuring Resource Quotas for Pipeline Components](./configure/customize_tekton_pipeline.mdx)
329+
- [Regular Cleanup of TaskRun and PipelineRun Resources](./configure/pruner_resources.mdx)

‎docs/en/overview/release_notes.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Release Notes
1414
The maintenance period for version **v4.0.z** is from April 8, 2025 to April 8, 2026.
1515
:::
1616

17-
## Compatibility and support matrix
17+
## Compatibility and support matrix \{#compatibility-and-support-matrix}
1818

1919
The following table shows the compatibility and support matrix between the `Alauda DevOps Pipelines` operator and ACP versions.
2020

‎docs/en/results/quick_start.mdx‎

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ hello True Succeeded 11s
201201
```yaml
202202
$ cat <<EOF | kubectl create -f -
203203
apiVersion: rbac.authorization.k8s.io/v1
204-
kind: Role
204+
kind: ClusterRole
205205
metadata:
206206
name: tekton-results-readonly
207207
rules:
@@ -241,7 +241,6 @@ apiVersion: rbac.authorization.k8s.io/v1
241241
kind: ClusterRoleBinding
242242
metadata:
243243
name: tekton-results-user
244-
namespace: default
245244
subjects:
246245
- kind: ServiceAccount
247246
name: impersonate-user
@@ -313,6 +312,9 @@ $ curl -s -k \
313312
> [tkn](https://github.com/tektoncd/cli/releases) is a command-line tool for interacting with Tekton. You can download it from the [official page](https://github.com/tektoncd/cli/releases).
314313
>
315314
> You need to build [tkn-results](https://github.com/tektoncd/results/blob/main/cmd/tkn-results/main.go) using golang.
315+
>
316+
> Do not always build from `main`. Use the release branch that matches the Tekton Results version deployed in your environment.
317+
> You can find the Results component version in [Release Notes](../overview/release_notes.mdx#compatibility-and-support-matrix) (the `Results` column), and then checkout the corresponding branch `release-v<version>.x`.
316318
317319
```sh
318320
# 1. Clone the repository
@@ -321,12 +323,25 @@ git clone https://github.com/tektoncd/results.git
321323
# 2. Change to the project directory
322324
cd results
323325

324-
# 3. Build the binary
326+
# 3. Checkout the matching release branch (example: Results 0.15.x -> release-v0.15.x)
327+
git checkout release-v<version>.x
328+
329+
# 4. Build the binary
325330
go build -o tkn-results ./cmd/tkn-results/main.go
326331

327-
# 4. Copy the binary to a directory in your PATH
332+
# 5. Copy the binary to a directory in your PATH
328333
```
329334

335+
##### Connection behavior
336+
337+
> When `--addr` is not set, `tkn-results` attempts to auto port-forward to the Results API service.
338+
>
339+
> In many versions (including `release-v0.15.x`), the auto target is `tekton-pipelines/tekton-results-api-service`.
340+
> If your Results deployment uses a different namespace or service name, auto mode may fail.
341+
>
342+
> When `--addr` is set, `tkn-results` connects to that address directly.
343+
> In that case, you typically need to run `kubectl port-forward` yourself.
344+
330345
##### Querying the execution record list
331346

332347
```sh
@@ -336,6 +351,19 @@ default/results/209dcb81-e3c0-47cd-b082-d910e15702ae/records/209dcb81-e3c0-47cd-
336351
default/results/209dcb81-e3c0-47cd-b082-d910e15702ae/records/a750035d-0479-34a1-9db2-9a256b53243f results.tekton.dev/v1alpha3.Log 2025-02-19 16:17:21 +0800 CST 2025-02-19 16:17:21 +0800 CST
337352
```
338353

354+
##### Fallback when auto port-forward fails
355+
356+
```sh
357+
$ kubectl port-forward -n <results-namespace> service/tekton-results-api-service 8080
358+
359+
$ tkn results --insecure --addr localhost:8080 records list default/results/-
360+
$ tkn results --insecure --addr localhost:8080 records get -o textproto default/results/<result-uid>/records/<record-uid>
361+
$ tkn results --insecure --addr localhost:8080 logs list default/results/-
362+
$ tkn results --insecure --addr localhost:8080 logs get -o textproto default/results/<result-uid>/logs/<log-uid>
363+
# If logs get returns "unknown service tekton.results.v1alpha3.Logs", retry with:
364+
$ tkn results --insecure --addr localhost:8080 --v1alpha2 logs get -o textproto default/results/<result-uid>/logs/<log-uid>
365+
```
366+
339367
##### Querying a single execution record
340368

341369
```sh
@@ -377,6 +405,9 @@ default/results/209dcb81-e3c0-47cd-b082-d910e15702ae/logs/a750035d-0479-34a1-9db
377405

378406
##### Querying a single log
379407

408+
> The Logs API version may vary by deployment.
409+
> If you encounter `unknown service tekton.results.v1alpha3.Logs`, retry the command with the `--v1alpha2` flag.
410+
380411
```sh
381412
$ tkn results --insecure logs get -o textproto default/results/209dcb81-e3c0-47cd-b082-d910e15702ae/logs/a750035d-0479-34a1-9db2-9a256b53243f
382413

0 commit comments

Comments
 (0)