You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/configure/customize_options.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ This document introduces the configuration items supported by `options`, as well
14
14
15
15
## Use Cases
16
16
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`.
18
18
19
19
Through the `options` configuration, you can achieve:
Copy file name to clipboardExpand all lines: docs/en/how_to/deploy_global.mdx
+27-26Lines changed: 27 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,36 +66,37 @@ spec:
66
66
67
67
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.
68
68
69
-
Add the following configuration to the `spec.results.options` section:
69
+
Add the following configuration to the `spec.result.options` section:
Copy file name to clipboardExpand all lines: docs/en/install.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,8 @@ First, delete the `TektonConfig` CR and any other Tekton component CRs if they e
146
146
- Click **Delete** to confirm the deletion of the CR.
147
147
- Deleting the `TektonConfig` resource will cascade delete the automatically created `TektonPipelines`, `TektonTriggers`, `TektonHubs`, `TektonChains`, etc. components.
148
148
- 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.
150
151
151
152
### Uninstalling the `Alauda DevOps Pipelines` Operator
Copy file name to clipboardExpand all lines: docs/en/overview/quick_start.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ After installing the Tekton Operator, you should verify that it's running proper
96
96
97
97
The Tekton Operator uses custom resources to manage Tekton components.
98
98
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.
100
100
101
101
102
102
### Verify Component Installation
@@ -156,4 +156,4 @@ Now that you have successfully installed the Tekton Operator and components, you
156
156
157
157
1. Learn how to create and run Tekton [Pipeline Tasks and Pipelines](../pipelines/quick_start.mdx)
158
158
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
|`db_name`| Database name |`tekton-results`| Yes |
58
+
|`db_name`| Database name |`tekton_results`| Yes |
59
59
|`db_sslmode`| SSL connection mode |`disable`| No |
60
60
|`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 |
62
62
63
63
> The valid options for `db_sslmode` are explained here https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-PROTECTION.
64
64
@@ -97,30 +97,31 @@ data:
97
97
POSTGRES_PASSWORD: <base64 encoded password>
98
98
```
99
99
100
-
### 2. Configure TektonResult Resource
100
+
### 2. Configure TektonConfig Resource
101
101
102
102
```yaml
103
103
apiVersion: operator.tekton.dev/v1alpha1
104
-
kind: TektonResult
104
+
kind: TektonConfig
105
105
metadata:
106
-
name: result
106
+
name: config
107
107
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
114
115
```
115
116
116
117
:::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).
118
119
:::
119
120
120
121
### 3. Verify Configuration
121
122
122
123
```bash
123
-
kubectl get tektonresults.operator.tekton.dev result
124
+
kubectl get tektonconfig config
124
125
kubectl get pods -n tekton-pipelines -l app.kubernetes.io/name=tekton-results-api
125
126
```
126
127
@@ -171,56 +172,57 @@ If you have a CA certificate file named `root.crt`, create a ConfigMap:
#### Step 2: Configure TektonResult with Volume Mounts
175
+
#### Step 2: Configure TektonConfig with Volume Mounts
175
176
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:
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.
314
316
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.
316
318
317
319
For more PostgreSQL deployment parameters and requirements, please refer to <ExternalSiteLink name="postgresql" href="/installation.html" children="PostgreSQL Deployment Documentation" />.
0 commit comments