Skip to content

Commit 6e3f2d0

Browse files
author
edge-katanomi-app2[bot]
committed
📚 Sync docs from alaudadevops/tektoncd-operator on de73530dc026f3e96e3729bb7d2a7f5ec3f4a675
Source: [Cherry-pick #1516] docs: update Tekton operator docs (#1537) Author: edge-katanomi-app2[bot] Ref: refs/heads/release-4.2 Commit: de73530dc026f3e96e3729bb7d2a7f5ec3f4a675 This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: https://github.com/alaudadevops/tektoncd-operator/commit/de73530dc026f3e96e3729bb7d2a7f5ec3f4a675 🤖 Synced on 2026-03-31 07:45:54 UTC
1 parent 24eee22 commit 6e3f2d0

10 files changed

Lines changed: 178 additions & 133 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:27:40 UTC
3+
- **Last synced**: 2026-03-31 07:45:54 UTC
44
- **Source repository**: alaudadevops/tektoncd-operator
5-
- **Source commit**: [50e11286975a242b1aa4c39d61aa26321e94da9c](https://github.com/alaudadevops/tektoncd-operator/commit/50e11286975a242b1aa4c39d61aa26321e94da9c)
5+
- **Source commit**: [de73530dc026f3e96e3729bb7d2a7f5ec3f4a675](https://github.com/alaudadevops/tektoncd-operator/commit/de73530dc026f3e96e3729bb7d2a7f5ec3f4a675)
66
- **Triggered by**: edge-katanomi-app2[bot]
7-
- **Workflow run**: [#169](https://github.com/alaudadevops/tektoncd-operator/actions/runs/23747165167)
7+
- **Workflow run**: [#171](https://github.com/alaudadevops/tektoncd-operator/actions/runs/23786310700)
88

99
## Files synced:
1010
- docs/

‎docs/en/apis/kubernetes_apis/operator/tektonresults.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ sourceSHA: 5ba913e5ea306392d1815b7c6b244f466c87171c0a63feb25ff36c8ff42e7636
66
# TektonResult [operator.tekton.dev/v1alpha1]
77

88
<K8sCrd name="tektonresults.operator.tekton.dev" />
9+
10+
> Note: In current Alauda DevOps Pipelines versions, Tekton Results should be enabled and configured through `TektonConfig.spec.result`.

‎docs/en/concepts/tektonconfig_concept.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ spec:
136136
- name: enable-devconsole-integration
137137
value: "false"
138138

139-
results:
139+
result:
140140
enable: false
141141

142142
chain:
@@ -158,7 +158,7 @@ spec:
158158
- **pipeline**: Configuration for the Pipeline controller
159159
- **trigger**: Configuration for the Triggers controller
160160
- **hub**: Configuration for Tekton Hub
161-
- **results**: Configuration for Tekton Results
161+
- **result**: Configuration for Tekton Results
162162
- **chain**: Configuration for Tekton Chains
163163

164164
4. **Pruner**: Configuration for automatic cleanup of resources
@@ -212,7 +212,7 @@ spec:
212212
hub:
213213
enable: true
214214
215-
results:
215+
result:
216216
enable: true
217217
218218
chain:
@@ -276,4 +276,4 @@ pruner:
276276
- [Tekton Operator Documentation](https://tekton.dev/docs/operator/)
277277
- [TektonConfig Official Documentation](https://tekton.dev/docs/operator/tektonconfig/)
278278
- [Tekton Pipeline Configuration](https://tekton.dev/docs/pipelines/)
279-
- [Tekton Triggers Configuration](https://tekton.dev/docs/triggers/)
279+
- [Tekton Triggers Configuration](https://tekton.dev/docs/triggers/)

‎docs/en/configure/customize_options.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This document introduces the configuration items supported by `options`, as well
1414

1515
## Use Cases
1616

17-
Tekton supports the deployment of subcomponents through the [`TektonConfig`](../apis/kubernetes_apis/operator/tektonconfig.mdx) resource. This resource has a common configuration item `options` under the fields of `spec.pipeline`, `spec.trigger`, `spec.hub`, `spec.chain`, and `spec.results`.
17+
Tekton supports the deployment of subcomponents through the [`TektonConfig`](../apis/kubernetes_apis/operator/tektonconfig.mdx) resource. This resource has a common configuration item `options` under the fields of `spec.pipeline`, `spec.trigger`, `spec.hub`, `spec.chain`, and `spec.result`.
1818

1919
Through the `options` configuration, you can achieve:
2020

‎docs/en/how_to/deploy_global.mdx‎

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -66,36 +66,37 @@ spec:
6666
6767
If users have deployed tekton-results in a global cluster, they also need to configure the `options` for the results component. Similar to the pipeline configuration, you need to configure both ingress and deployment settings for the `tektoncd-results-api` component.
6868

69-
Add the following configuration to the `spec.results.options` section:
69+
Add the following configuration to the `spec.result.options` section:
7070

7171
```yaml
7272
apiVersion: operator.tekton.dev/v1alpha1
73-
kind: TektonResult
73+
kind: TektonConfig
7474
metadata:
75-
name: result
75+
name: config
7676
spec:
77-
options:
78-
ingress:
79-
tektoncd-results-api:
80-
spec:
81-
ingressClassName: global-alb2
82-
deployments:
83-
tektoncd-results-api:
84-
spec:
85-
template:
86-
spec:
87-
containers:
88-
- env:
89-
- name: KUBERNETES_PORT_443_TCP
90-
value: tcp://erebus.cpaas-system:443
91-
- name: KUBERNETES_PORT_443_TCP_ADDR
92-
value: erebus.cpaas-system
93-
- name: KUBERNETES_PORT
94-
value: tcp://erebus.cpaas-system:443
95-
- name: EREBUS
96-
value: https://erebus.cpaas-system:443
97-
- name: KUBERNETES_SERVICE_HOST
98-
value: erebus.cpaas-system
99-
name: tektoncd-results-api
77+
result:
78+
options:
79+
ingress:
80+
tektoncd-results-api:
81+
spec:
82+
ingressClassName: global-alb2
83+
deployments:
84+
tektoncd-results-api:
85+
spec:
86+
template:
87+
spec:
88+
containers:
89+
- env:
90+
- name: KUBERNETES_PORT_443_TCP
91+
value: tcp://erebus.cpaas-system:443
92+
- name: KUBERNETES_PORT_443_TCP_ADDR
93+
value: erebus.cpaas-system
94+
- name: KUBERNETES_PORT
95+
value: tcp://erebus.cpaas-system:443
96+
- name: EREBUS
97+
value: https://erebus.cpaas-system:443
98+
- name: KUBERNETES_SERVICE_HOST
99+
value: erebus.cpaas-system
100+
name: tektoncd-results-api
100101
disabled: false
101102
```

‎docs/en/install.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ First, delete the `TektonConfig` CR and any other Tekton component CRs if they e
146146
- Click **Delete** to confirm the deletion of the CR.
147147
- Deleting the `TektonConfig` resource will cascade delete the automatically created `TektonPipelines`, `TektonTriggers`, `TektonHubs`, `TektonChains`, etc. components.
148148
- Repeat these steps for any other Tekton component CRs that may exist.
149-
- If you manually created `TektonResults` or `OpenShiftPipelinesAsCodes`, you may need to manually delete it.
149+
- If you manually created `OpenShiftPipelinesAsCodes`, you may need to manually delete it.
150+
- For older clusters that still have a standalone `TektonResult` resource, delete it manually before uninstalling.
150151

151152
### Uninstalling the `Alauda DevOps Pipelines` Operator
152153

‎docs/en/overview/architecture.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The webhook component provides validation and defaulting for the custom resource
4848
- Creates necessary CRDs and RBAC permissions
4949

5050
2. **Resource Creation**
51-
- User creates a TektonConfig resource (or individual component resources)
51+
- User creates a TektonConfig resource (for Tekton Results, configure `spec.result`)
5252
- Defines the desired state and configuration
5353

5454
3. **Component Installation**

‎docs/en/overview/quick_start.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ After installing the Tekton Operator, you should verify that it's running proper
9696

9797
The Tekton Operator uses custom resources to manage Tekton components.
9898
By default, the Operator will install Pipeline, Triggers, Chains, and Hub automatically.
99-
You can install Results, Pipelines-as-Code by creating these custom resources.
99+
To enable Tekton Results, configure the `spec.result` section in the `TektonConfig` custom resource. Pipelines-as-Code can be installed by creating its corresponding custom resource.
100100

101101

102102
### Verify Component Installation
@@ -156,4 +156,4 @@ Now that you have successfully installed the Tekton Operator and components, you
156156

157157
1. Learn how to create and run Tekton [Pipeline Tasks and Pipelines](../pipelines/quick_start.mdx)
158158
2. Set up [Tekton Triggers](../triggers/quick_start.mdx) for event-driven pipelines
159-
3. Configure advanced settings for your Tekton components using the Operator
159+
3. Configure advanced settings for your Tekton components using the Operator

‎docs/en/results/configure/database_configuration.mdx‎

Lines changed: 68 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ CREATE DATABASE tekton_results;
4646
Tekton Results supports using external PostgreSQL databases. The configuration is divided into two parts:
4747

4848
1. **Database credentials** (username and password) are stored in Kubernetes Secrets
49-
2. **Database connection parameters** (host, port, database name, SSL settings) are configured in the TektonResult custom resource
49+
2. **Database connection parameters** (host, port, database name, SSL settings) are configured in the TektonConfig custom resource under `spec.result`
5050

5151
### Configuration Parameters Reference
5252

@@ -55,10 +55,10 @@ Tekton Results supports using external PostgreSQL databases. The configuration i
5555
| `is_external_db` | Whether to use external database | `false` | Yes (set to `true` for external DB) |
5656
| `db_host` | Database host address | `localhost` | Yes |
5757
| `db_port` | Database port | `5432` | Yes |
58-
| `db_name` | Database name | `tekton-results` | Yes |
58+
| `db_name` | Database name | `tekton_results` | Yes |
5959
| `db_sslmode` | SSL connection mode | `disable` | No |
6060
| `db_sslrootcert` | SSL root certificate path | Empty | No (required when using SSL) |
61-
| `secret_name` | Secret name for database credentials | Empty | Yes |
61+
| `db_secret_name` | Secret name for database credentials | Empty | Yes |
6262

6363
> The valid options for `db_sslmode` are explained here https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-PROTECTION.
6464
@@ -97,30 +97,31 @@ data:
9797
POSTGRES_PASSWORD: <base64 encoded password>
9898
```
9999
100-
### 2. Configure TektonResult Resource
100+
### 2. Configure TektonConfig Resource
101101
102102
```yaml
103103
apiVersion: operator.tekton.dev/v1alpha1
104-
kind: TektonResult
104+
kind: TektonConfig
105105
metadata:
106-
name: result
106+
name: config
107107
spec:
108-
is_external_db: true
109-
db_host: your-postgres-host.example.com
110-
db_port: 5432
111-
db_name: tekton_results
112-
db_sslmode: allow
113-
secret_name: tekton-results-postgres
108+
result:
109+
is_external_db: true
110+
db_host: your-postgres-host.example.com
111+
db_port: 5432
112+
db_name: tekton_results
113+
db_sslmode: allow
114+
db_secret_name: tekton-results-postgres
114115
```
115116
116117
:::tip
117-
This document only lists the database-related configuration fields. For the complete list of fields, please refer to [Quick Start](../quick_start.mdx#installing-using-operator-crd).
118+
This document only lists the database-related configuration fields. For the complete list of fields, please refer to [Quick Start](../quick_start.mdx#installing-using-tektonconfig-cr).
118119
:::
119120
120121
### 3. Verify Configuration
121122
122123
```bash
123-
kubectl get tektonresults.operator.tekton.dev result
124+
kubectl get tektonconfig config
124125
kubectl get pods -n tekton-pipelines -l app.kubernetes.io/name=tekton-results-api
125126
```
126127

@@ -171,56 +172,57 @@ If you have a CA certificate file named `root.crt`, create a ConfigMap:
171172
kubectl create configmap db-root-crt -n tekton-pipelines --from-file ca.crt=./root.crt
172173
```
173174

174-
#### Step 2: Configure TektonResult with Volume Mounts
175+
#### Step 2: Configure TektonConfig with Volume Mounts
175176

176-
To make the CA certificate available in the containers, you need to configure the TektonResult resource with additional `options` to mount the ConfigMap:
177+
To make the CA certificate available in the containers, you need to configure the TektonConfig resource with additional `options` under `spec.result` to mount the ConfigMap:
177178

178179
```yaml
179180
apiVersion: operator.tekton.dev/v1alpha1
180-
kind: TektonResult
181+
kind: TektonConfig
181182
metadata:
182-
name: result
183+
name: config
183184
spec:
184-
is_external_db: true
185-
# Database connection configuration
186-
db_host: your-postgres-host.example.com
187-
db_port: 5432
188-
db_name: tekton_results
189-
db_sslmode: verify-full
190-
db_sslrootcert: /etc/tls/db/ca.crt
191-
# Secret configuration
192-
secret_name: tekton-results-postgres
193-
# Options for mounting CA certificate
194-
options:
195-
deployments:
196-
tekton-results-api:
197-
spec:
198-
template:
199-
spec:
200-
containers:
201-
- name: api
202-
volumeMounts:
203-
- mountPath: /etc/tls/db
204-
name: postgredb-tls-ca
205-
readOnly: true
206-
volumes:
207-
- configMap:
208-
name: db-root-crt
209-
name: postgredb-tls-ca
210-
tekton-results-retention-policy-agent:
211-
spec:
212-
template:
213-
spec:
214-
containers:
215-
- name: retention-policy-agent
216-
volumeMounts:
217-
- mountPath: /etc/tls/db
218-
name: postgredb-tls-ca
219-
readOnly: true
220-
volumes:
221-
- configMap:
222-
name: db-root-crt
223-
name: postgredb-tls-ca
185+
result:
186+
is_external_db: true
187+
# Database connection configuration
188+
db_host: your-postgres-host.example.com
189+
db_port: 5432
190+
db_name: tekton_results
191+
db_sslmode: verify-full
192+
db_sslrootcert: /etc/tls/db/ca.crt
193+
# Secret configuration
194+
db_secret_name: tekton-results-postgres
195+
# Options for mounting CA certificate
196+
options:
197+
deployments:
198+
tekton-results-api:
199+
spec:
200+
template:
201+
spec:
202+
containers:
203+
- name: api
204+
volumeMounts:
205+
- mountPath: /etc/tls/db
206+
name: postgredb-tls-ca
207+
readOnly: true
208+
volumes:
209+
- configMap:
210+
name: db-root-crt
211+
name: postgredb-tls-ca
212+
tekton-results-retention-policy-agent:
213+
spec:
214+
template:
215+
spec:
216+
containers:
217+
- name: retention-policy-agent
218+
volumeMounts:
219+
- mountPath: /etc/tls/db
220+
name: postgredb-tls-ca
221+
readOnly: true
222+
volumes:
223+
- configMap:
224+
name: db-root-crt
225+
name: postgredb-tls-ca
224226
```
225227
226228
With this configuration:
@@ -243,10 +245,10 @@ kubectl delete pod -n tekton-pipelines -l app.kubernetes.io/name=tekton-results-
243245
kubectl delete pod -n tekton-pipelines -l app.kubernetes.io/name=tekton-results-retention-policy-agent
244246
```
245247

246-
**Option 2: Recreate the TektonResult resource**
248+
**Option 2: Recreate the TektonConfig resource**
247249
```bash
248-
# Get the current TektonResult resource and recreate it
249-
kubectl get tektonresults.operator.tekton.dev result -o yaml | kubectl replace --force -f -
250+
# Get the current TektonConfig resource and recreate it
251+
kubectl get tektonconfig config -o yaml | kubectl replace --force -f -
250252
```
251253

252254
**Verify the changes:**
@@ -257,10 +259,10 @@ kubectl get pods -n tekton-pipelines -l app.kubernetes.io/name=tekton-results-re
257259
```
258260

259261
:::warning
260-
If you update the `db_sslmode` field, you may need to recreate the `TektonResult` resource for the changes to take effect.
262+
If you update the `db_sslmode` field, you may need to recreate the `TektonConfig` resource for the changes to take effect.
261263

262264
```bash
263-
kubectl get tektonresults.operator.tekton.dev result -o yaml | kubectl replace --force -f -
265+
kubectl get tektonconfig config -o yaml | kubectl replace --force -f -
264266
```
265267
:::
266268

@@ -285,8 +287,8 @@ kubectl get tektonresults.operator.tekton.dev result -o yaml | kubectl replace -
285287
#### Verification Commands
286288

287289
```bash
288-
# Check TektonResult status
289-
kubectl get tektonresults.operator.tekton.dev result -o yaml
290+
# Check TektonConfig status
291+
kubectl get tektonconfig config -o yaml
290292
291293
# Check pod logs
292294
kubectl logs -n tekton-pipelines -l app.kubernetes.io/name=tekton-results-api
@@ -312,7 +314,7 @@ kubectl get secret -n <ns-of-postgresql-instance> -l middleware.instance/type=Po
312314

313315
This Secret contains `host`, `port`, `username`, `password` information. You need to supplement `database` information based on this Secret, and create a new secret in the namespace where the Tekton Results instance is located.
314316

315-
If you need to set `sslmode`, please set `db_sslmode` in `TektonResult` to `allow` or `prefer` etc.
317+
If you need to set `sslmode`, please set `db_sslmode` in the `TektonConfig` `spec.result` section to `allow` or `prefer`, etc.
316318

317319
For more PostgreSQL deployment parameters and requirements, please refer to <ExternalSiteLink name="postgresql" href="/installation.html" children="PostgreSQL Deployment Documentation" />.
318320
:::

0 commit comments

Comments
 (0)