Skip to content

Commit 652cb6e

Browse files
committed
📚 Sync docs from alaudadevops/tektoncd-operator on a67165e27d3b04ea51bf6b8d418fb3bd83087841
Source: chore: sync from release-4.1 (1242e8b) Author: qingliu Ref: refs/heads/main Commit: a67165e27d3b04ea51bf6b8d418fb3bd83087841 This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: AlaudaDevops/tektoncd-operator@a67165e 🤖 Synced on 2025-07-19 14:19:35 UTC
1 parent 7de4ad4 commit 652cb6e

File tree

3 files changed

+85
-122
lines changed

3 files changed

+85
-122
lines changed

‎.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**: 2025-07-19 01:59:32 UTC
3+
- **Last synced**: 2025-07-19 14:19:35 UTC
44
- **Source repository**: alaudadevops/tektoncd-operator
5-
- **Source commit**: [388ea8bcce1e434b62b6aefd47a51787865809e3](https://github.com/alaudadevops/tektoncd-operator/commit/388ea8bcce1e434b62b6aefd47a51787865809e3)
5+
- **Source commit**: [a67165e27d3b04ea51bf6b8d418fb3bd83087841](https://github.com/alaudadevops/tektoncd-operator/commit/a67165e27d3b04ea51bf6b8d418fb3bd83087841)
66
- **Triggered by**: l-qing
7-
- **Workflow run**: [#22](https://github.com/alaudadevops/tektoncd-operator/actions/runs/16383726300)
7+
- **Workflow run**: [#23](https://github.com/alaudadevops/tektoncd-operator/actions/runs/16389565814)
88

99
## Files synced:
1010
- docs/

‎docs/en/upgrade.mdx‎

Lines changed: 0 additions & 119 deletions
This file was deleted.

‎docs/en/upgrade/upgrade.mdx‎

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,88 @@ Before upgrading the `Alauda DevOps Pipelines` Operator, ensure you:
7878
- Verify that your Tekton components are functioning correctly
7979
- Test that your pipelines can run successfully
8080

81+
### Using `kubectl` CLI
82+
83+
You can also upgrade the `Alauda DevOps Pipelines` Operator using the command line interface. This method is useful for automation or when you prefer CLI-based operations.
84+
85+
1. **Check Current Subscription**
86+
- First, identify the current subscription and its channel:
87+
```bash
88+
$ kubectl get subscriptions.operators.coreos.com -A | grep tektoncd-operator
89+
90+
NAMESPACE NAME PACKAGE SOURCE CHANNEL
91+
tekton-operator tektoncd-operator tektoncd-operator platform latest
92+
```
93+
94+
2. **Switch to Target Channel**
95+
- If you need to upgrade to a version in a different channel, patch the subscription:
96+
```bash
97+
$ kubectl patch subscriptions.operators.coreos.com tektoncd-operator --type merge -p '{"spec":{"channel": "<target-channel>"}}' -n tekton-operator
98+
```
99+
Replace `<target-channel>` with the desired channel (e.g., `pipelines-4.1`, `latest`).
100+
101+
3. **Wait for UpgradePending State**
102+
- Monitor the subscription status until it shows `UpgradePending`:
103+
```bash
104+
$ kubectl get subscriptions.operators.coreos.com tektoncd-operator -n tekton-operator -o yaml
105+
106+
status:
107+
installplan:
108+
apiVersion: operators.coreos.com/v1alpha1
109+
kind: InstallPlan
110+
name: install-abc123
111+
state: UpgradePending
112+
```
113+
Look for the `state: UpgradePending` in the output.
114+
115+
4. **Approve the InstallPlan**
116+
- When the subscription is in `UpgradePending` state, find the corresponding InstallPlan:
117+
```bash
118+
$ kubectl get installplan -n tekton-operator
119+
120+
NAME CSV APPROVAL APPROVED
121+
install-abc123 tektoncd-operator.v4.x.x Manual false
122+
```
123+
124+
- Approve the InstallPlan by setting the `approved` field to `true`:
125+
```bash
126+
$ kubectl patch installplans.operators.coreos.com <installplan-name> --type merge -p '{"spec":{"approved":true}}' -n tekton-operator
127+
```
128+
Replace `<installplan-name>` with the actual InstallPlan name from the previous step.
129+
130+
5. **Monitor the Upgrade Progress**
131+
- Watch the subscription status until it becomes ready:
132+
```bash
133+
$ kubectl get subscriptions.operators.coreos.com tektoncd-operator -n tekton-operator -o yaml -w
134+
```
135+
136+
- Check the operator pods status:
137+
```bash
138+
$ kubectl get pods -n tekton-operator
139+
```
140+
Wait until all pods are in `Running` state.
141+
142+
6. **Verify the Upgrade**
143+
- Confirm the operator version has been updated:
144+
```bash
145+
$ kubectl get csv -n tekton-operator
146+
147+
NAME DISPLAY VERSION REPLACES PHASE
148+
tektoncd-operator.v4.x.x Alauda DevOps Pipelines 4.x.x x Succeeded
149+
```
150+
151+
7. **Monitor Component Upgrades**
152+
- The operator will automatically upgrade Tekton components. Monitor their progress:
153+
```bash
154+
$ kubectl get tektoninstallerset -A
155+
$ kubectl get pods -n tekton-pipelines
156+
```
157+
Ensure all components and pods reach `Ready` state.
158+
159+
:::note
160+
The CLI upgrade process follows the same underlying mechanism as the GUI method. The main difference is that you manually control the channel switching and InstallPlan approval steps.
161+
:::
162+
81163
## Post-Upgrade Steps
82164

83165
After the upgrade completes successfully:

0 commit comments

Comments
 (0)