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/upgrade/upgrade.mdx
+82Lines changed: 82 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,88 @@ Before upgrading the `Alauda DevOps Pipelines` Operator, ensure you:
78
78
- Verify that your Tekton components are functioning correctly
79
79
- Test that your pipelines can run successfully
80
80
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
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.
0 commit comments