Skip to content

Commit 25ff8b8

Browse files
author
edge-katanomi-app2[bot]
committed
📚 Sync docs from alaudadevops/connectors-operator on 76053518ae199877855d8f5314758a3be6ed7ef5
Source: feat(docs): enhance documentation for multi-connector usage in Tekton Tasks (#688) Author: kycheng Ref: refs/heads/main Commit: 76053518ae199877855d8f5314758a3be6ed7ef5 This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: https://github.com/alaudadevops/connectors-operator/commit/76053518ae199877855d8f5314758a3be6ed7ef5 🤖 Synced on 2026-03-10 03:02:51 UTC
1 parent 1fb52ae commit 25ff8b8

5 files changed

Lines changed: 115 additions & 18 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-06 06:40:31 UTC
3+
- **Last synced**: 2026-03-10 03:02:51 UTC
44
- **Source repository**: alaudadevops/connectors-operator
5-
- **Source commit**: [17953aea030c6c6ced679cc31aa22edfdd5ff793](https://github.com/alaudadevops/connectors-operator/commit/17953aea030c6c6ced679cc31aa22edfdd5ff793)
5+
- **Source commit**: [76053518ae199877855d8f5314758a3be6ed7ef5](https://github.com/alaudadevops/connectors-operator/commit/76053518ae199877855d8f5314758a3be6ed7ef5)
66
- **Triggered by**: edge-katanomi-app2[bot]
7-
- **Workflow run**: [#103](https://github.com/alaudadevops/connectors-operator/actions/runs/22752318896)
7+
- **Workflow run**: [#104](https://github.com/alaudadevops/connectors-operator/actions/runs/22885086843)
88

99
## Files synced:
1010
- docs/

‎docs/en/connectors-harbor/how_to/using_harbor_connector_forward_proxy_in_tekton_pipeline.mdx‎

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ title: Using Harbor Connector Forward Proxy in Tekton Task
77

88
Using Harbor Connector Forward Proxy in Tekton Tasks enables centralized management of Harbor credentials and secure access to Harbor registries during Tekton Task execution.
99

10+
This document also covers how to inject credentials for multiple Harbor registries in a single Tekton Task by mounting multiple Harbor connectors.
11+
1012
## Requirements for Tekton Task \{#requirements-for-tekton-task}
1113

1214
Not all Tekton Tasks can use Harbor Connector Forward Proxy.
@@ -62,7 +64,7 @@ spec:
6264
readOnly: true
6365
driver: connectors-csi
6466
volumeAttributes:
65-
connector.name: "harbor-connector"
67+
connectors: "harbor-connector"
6668
configuration.names: "registry-config"
6769
```
6870
@@ -86,7 +88,7 @@ spec:
8688
readOnly: true
8789
driver: connectors-csi
8890
volumeAttributes:
89-
connector.name: "harbor-connector"
91+
connectors: "harbor-connector"
9092
configuration.names: "registry-config"
9193
params:
9294
- name: cmd
@@ -95,11 +97,44 @@ spec:
9597
buildah push --tls-verify=false myimage harbor.example.com/library/myimage:v1
9698
```
9799

100+
### Injecting Credentials for Multiple Harbor Registries in One Task
101+
102+
If one TaskRun needs to access multiple Harbor registries (for example, pull a base image from Harbor A and push the final image to Harbor B), you can mount multiple Harbor connectors in the same workspace.
103+
104+
For example:
105+
106+
```yaml
107+
apiVersion: tekton.dev/v1
108+
kind: TaskRun
109+
metadata:
110+
name: buildah-multi-harbor-registry
111+
spec:
112+
taskRef:
113+
name: buildah-cli
114+
workspaces:
115+
- name: registryconfig
116+
csi:
117+
readOnly: true
118+
driver: connectors-csi
119+
volumeAttributes:
120+
connectors: "harbor-connector-a,harbor-connector-b"
121+
configuration.names: "registry-config"
122+
params:
123+
- name: cmd
124+
value: |
125+
source /workspace/registryconfig/.env
126+
buildah pull --tls-verify=false harbor-a.example.com/team/base:latest
127+
buildah push --tls-verify=false local-image:latest harbor-b.example.com/team/app:v1
128+
```
129+
130+
**Note:** When multiple connectors are used, configuration files are merged by the CSI Driver. For details, see [Multiple Connectors](../../connectors/concepts/connectors_csi.mdx#multiple-connectors).
131+
98132
**Note:** The `--tls-verify=false` flag is required because the forward proxy intercepts and re-signs TLS traffic. Different CLI tools have different ways to configure insecure registries. Please refer to your CLI documentation for details.
99133

100134
## Further Reading
101135

102136
- [Using Harbor Connector Proxy in K8S Workload](./using_harbor_connector_in_k8s.mdx) - Learn about the general logic of using Harbor Connector proxy
103137
- [Harbor ConnectorClass Forward Proxy](../concepts/harbor_connectorclass.mdx#forward-proxy) - Learn about forward proxy configurations
104138
- [Connectors CSI Built-in Configurations](../../connectors/concepts/connectors_csi.mdx#built-in-configurations) - Learn about built-in configuration files
139+
- [Connectors CSI Multiple Connectors](../../connectors/concepts/connectors_csi.mdx#multiple-connectors) - Learn how to mount multiple connectors in one volume
105140
- [Using CSI Volumes in Tekton](https://tekton.dev/docs/pipelines/workspaces/#csi) - Tekton CSI workspace documentation

‎docs/en/connectors-maven/how_to/using-as-maven-registry-mirror.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ spec:
9595
imagePullPolicy: IfNotPresent
9696
env:
9797
- name: MAVEN_OPTS
98-
value: -Dmaven.resolver.transport=wagon
98+
value: -Dmaven.resolver.transport=wagon # See: https://maven.apache.org/guides/mini/guide-resolver-transport.html#switching-between-transports
9999
command:
100100
- "sh"
101101
- "-c"
@@ -129,7 +129,7 @@ spec:
129129
readOnly: true
130130
driver: connectors-csi
131131
volumeAttributes:
132-
connector.name: "maven-mirror-connector"
132+
connectors: "maven-mirror-connector"
133133
configuration.names: "settings"
134134
EOF
135135
```
@@ -157,4 +157,4 @@ Downloaded from connectors-mirror: https://nexus.example.com/repository/maven-pu
157157
[INFO] Total time: 42.678 s
158158
[INFO] Finished at: 2025-09-02T23:14:46Z
159159
[INFO] ------------------------------------------------------------------------
160-
```
160+
```

‎docs/en/connectors-maven/how_to/using-in-tekton-task.mdx‎

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,33 @@ title: Using Maven Connector in Tekton Task
77

88
Using Maven Connector in Tekton Tasks enables centralized management of tool integration information and secure access to Maven registry during Tekton Task execution.
99

10+
This document shows how to use the multi-connector capability in one TaskRun to:
11+
12+
- pull dependencies from a mirror Maven repository
13+
- publish build artifacts to a private Maven repository
14+
1015
## Requirements for Tekton Task
1116

1217
Not all Tekton Tasks can use Maven Connector.
1318

14-
Maven Connector essentially injects temporary Maven credentials through a Connector CSI Driver. It provides a configuration named `settings` that generates a `settings.xml` file with temporary authentication and `ca.cert` file for trust the connector proxy server.
19+
Maven Connector injects temporary Maven credentials through the Connectors CSI Driver. It provides a configuration named `settings` that generates a `settings.xml` file with temporary authentication and a `ca.cert` file to trust the connector proxy server.
1520

1621
Therefore, Tekton Tasks must meet the following requirements to use Maven Connector:
1722

1823
**Support mounting a `settings.xml` and `ca.cert` file via Workspace**
1924

25+
## Multi-Connector Scenario
26+
27+
To pull dependencies from a mirror and deploy to a private repository in the same TaskRun, prepare two Maven connectors:
28+
29+
- `maven-mirror-connector`: configured with `useAsMirror=true` for dependency resolution
30+
- `maven-deploy-connector`: configured for deployment target repository
31+
32+
Then mount both connectors in one workspace using `volumeAttributes.connectors`.
33+
2034
## Usage Instructions
2135

22-
After confirming that your Tekton Task can use Maven Connector, you can add Maven Connector to the TaskRun YAML file:
36+
After confirming that your Tekton Task can use Maven Connector, add both connectors to the TaskRun YAML.
2337

2438
For example:
2539

@@ -29,27 +43,40 @@ kind: TaskRun
2943
metadata:
3044
name: maven-connector-demo
3145
spec:
32-
# . . .
46+
params:
47+
- name: GOALS
48+
value:
49+
- "deploy"
50+
- "-Dmaven.resolver.transport=wagon" # See: https://maven.apache.org/guides/mini/guide-resolver-transport.html#switching-between-transports
51+
- "-DaltDeploymentRepository=nexus::https://<repository-url>/repository/maven-releases" # Optional if deploy repository is configured in pom.xml
52+
# other parameters...
3353
workspaces:
3454
- name: settings
3555
csi:
3656
driver: connectors-csi
3757
readOnly: true
3858
volumeAttributes:
39-
connector.name: maven-connector
40-
connector.namespace: ""
59+
connectors: "maven-mirror-connector,maven-deploy-connector"
4160
configuration.names: "settings"
4261
- name: cert
4362
csi:
4463
driver: connectors-csi
4564
readOnly: true
4665
volumeAttributes:
47-
connector.name: maven-connector
48-
connector.namespace: ""
66+
connectors: "maven-mirror-connector,maven-deploy-connector"
4967
configuration.names: "settings"
5068
```
5169
52-
For workspaces parameters, please refer to [Using Connectors CSI Driver to mount settings.xml file](../concepts/maven_connectorclass.mdx#using-connectors-csi-driver-to-mount-settingsxml-file) in Maven Connector Concepts document.
70+
In this example:
71+
72+
- `maven-mirror-connector` is used for pulling dependencies from the configured mirror.
73+
- `maven-deploy-connector` is used when `mvn deploy` uploads artifacts to the private repository.
74+
- `settings.xml` and `ca.cert` are mounted from the same `settings` configuration.
75+
76+
For workspaces parameters, please refer to:
77+
78+
- [Using Connectors CSI Driver to mount settings.xml file](../concepts/maven_connectorclass.mdx#using-connectors-csi-driver-to-mount-settingsxml-file)
79+
- [Multiple Connectors in Connectors CSI](../../connectors/concepts/connectors_csi.mdx#multiple-connectors)
5380

5481
For more information about Connectors CSI Driver, please refer to [Connectors CSI Configuration](../../connectors/concepts/connectors_csi.mdx).
5582

‎docs/en/connectors-oci/how_to/using_oci_connector_forward_proxy_in_tekton_pipeline.mdx‎

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ title: Using OCI Connector Forward Proxy in Tekton Task
77

88
Using OCI Connector Forward Proxy in Tekton Tasks enables centralized management of OCI registry credentials and secure access to OCI registries during Tekton Task execution.
99

10+
This document also covers how to inject credentials for multiple registries in a single Tekton Task by mounting multiple OCI connectors.
11+
1012
## Requirements for Tekton Task \{#requirements-for-tekton-task}
1113

1214
Not all Tekton Tasks can use OCI Connector Forward Proxy.
@@ -62,7 +64,7 @@ spec:
6264
readOnly: true
6365
driver: connectors-csi
6466
volumeAttributes:
65-
connector.name: "oci-connector"
67+
connectors: "oci-connector"
6668
configuration.names: "registry-config"
6769
```
6870
@@ -86,7 +88,7 @@ spec:
8688
readOnly: true
8789
driver: connectors-csi
8890
volumeAttributes:
89-
connector.name: "oci-connector"
91+
connectors: "oci-connector"
9092
configuration.names: "registry-config"
9193
params:
9294
- name: cmd
@@ -95,11 +97,44 @@ spec:
9597
buildah push --tls-verify=false myimage registry.example.com/library/myimage:v1
9698
```
9799

100+
### Injecting Credentials for Multiple Registries in One Task
101+
102+
If one TaskRun needs to access multiple registries (for example, pull base image from registry A and push final image to registry B), you can mount multiple OCI connectors in the same workspace.
103+
104+
For example:
105+
106+
```yaml
107+
apiVersion: tekton.dev/v1
108+
kind: TaskRun
109+
metadata:
110+
name: buildah-multi-registry
111+
spec:
112+
taskRef:
113+
name: buildah-cli
114+
workspaces:
115+
- name: registry-config
116+
csi:
117+
readOnly: true
118+
driver: connectors-csi
119+
volumeAttributes:
120+
connectors: "oci-connector-registry-a,oci-connector-registry-b"
121+
configuration.names: "registry-config"
122+
params:
123+
- name: cmd
124+
value: |
125+
source /workspace/registry-config/.env
126+
buildah pull --tls-verify=false registry-a.example.com/team/base:latest
127+
buildah push --tls-verify=false local-image:latest registry-b.example.com/team/app:v1
128+
```
129+
130+
> **Note:** When multiple connectors are used, configuration files are merged by the CSI Driver. For details, see [Multiple Connectors](../../connectors/concepts/connectors_csi.mdx#multiple-connectors).
131+
98132
> **Note:** The `--tls-verify=false` flag is required because the forward proxy intercepts and re-signs TLS traffic. Different CLI tools have different ways to configure insecure registries. Please refer to your CLI documentation for details.
99133

100134
## Further Reading
101135

102136
- [Using OCI Connector Proxy in K8S Workload](./using_oci_connector_in_k8s.mdx) - Learn about the general logic of using OCI Connector proxy
103137
- [OCI ConnectorClass Forward Proxy](../concepts/oci_connectorclass.mdx#forward-proxy) - Learn about forward proxy configurations
104138
- [Connectors CSI Built-in Configurations](../../connectors/concepts/connectors_csi.mdx#built-in-configurations) - Learn about built-in configuration files
139+
- [Connectors CSI Multiple Connectors](../../connectors/concepts/connectors_csi.mdx#multiple-connectors) - Learn how to mount multiple connectors in one volume
105140
- [Using CSI Volumes in Tekton](https://tekton.dev/docs/pipelines/workspaces/#csi) - Tekton CSI workspace documentation

0 commit comments

Comments
 (0)