Skip to content

Commit 204b058

Browse files
committed
* Update install/uninstall docs for Web Terminal Operator
* Update web terminal uninstall to handle DevWorkspaces separately Since the Web Terminal Operator installs the DevWorkspace operator as a dependency, and since this dependency may be used for other operators as well, rework the uninstall doc to separate out the two cases and make it clear that the DevWorkspace Operator should only be uninstalled if it is no longer needed. * Fix wording for clarity and conventions Signed-off-by: Angel Misevski <[email protected]>
1 parent d84ba22 commit 204b058

File tree

2 files changed

+62
-36
lines changed

2 files changed

+62
-36
lines changed

modules/odc-installing-web-terminal.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ You can install the web terminal using the Web Terminal Operator listed in the {
1616
. Read the brief description about the Operator on the *Web Terminal* page, and then click *Install*.
1717
. On the *Install Operator* page, retain the default values for all fields.
1818

19-
** The *alpha* option in the *Update Channel* menu enables installation of the latest release of the Web Terminal Operator.
19+
** The *fast* option in the *Update Channel* menu enables installation of the latest release of the Web Terminal Operator.
2020
** The *All namespaces on the cluster* option in the *Installation Mode* menu enables the Operator to watch and be available to all namespaces in the cluster.
2121
** The *openshift-operators* option in the *Installed Namespace* menu installs the Operator in the default `openshift-operators` namespace.
2222
** The *Automatic* option in the *Approval Strategy* menu ensures that the future upgrades to the Operator are handled automatically by the Operator Lifecycle Manager.
2323

2424
. Click *Install*.
25-
. In the *Installed Operators* page, click the *View operator* to verify that the Operator is listed on the *Installed Operators* page.
25+
. In the *Installed Operators* page, click the *View Operator* to verify that the Operator is listed on the *Installed Operators* page.
26+
+
27+
[NOTE]
28+
====
29+
Prior to {product-title} 4.8, the Web Terminal Operator bundled all its functionality in a single Operator. As of {product-title} 4.8, the Web Terminal Operator installs the DevWorkspace Operator as a dependency to provide the same features.
30+
====
31+
2632
. After the Operator is installed, refresh your page to see the command line terminal icon on the upper right of the console.

modules/odc-uninstalling-web-terminal.adoc

Lines changed: 54 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,64 @@
77

88
Uninstalling the web terminal is a two-step process:
99

10-
. Delete the components and custom resources (CRs) that were added when you installed the Operator.
11-
. Uninstall the Web Terminal Operator.
10+
. Uninstall the Web Terminal Operator and related custom resources (CRs) that were added when you installed the Operator.
11+
. Uninstall the DevWorkspace Operator and its related custom resources that were added as a dependency of the Web Terminal Operator.
1212

1313
Uninstalling the Web Terminal Operator does not remove any of its custom resource definitions (CRDs) or managed resources that are created when the Operator is installed. These components must be manually uninstalled for security purposes. Removing these components also allows you to save cluster resources by ensuring that terminals do not idle when the Operator is uninstalled.
1414

1515
.Prerequisites
1616
* Access to an {product-title} cluster using an account with `cluster-admin` permissions.
1717

18-
== Deleting the web terminal components and custom resources
18+
== Removing the Web Terminal Operator and the custom resources that support it
1919

20-
Use the CLI to delete the CRs that are created during installation of the Web Terminal Operator.
20+
Use the console and the CLI to delete any existing web terminals and CRs that were created during the installation of the Web Terminal Operator.
21+
22+
[NOTE]
23+
====
24+
Prior to {product-title} 4.8, the Web Terminal Operator used different CRDs to provide Web Terminal capabilities. To uninstall versions 1.2.1 and below of the Web Terminal Operator, refer to the documentation for {product-title} 4.7.
25+
====
2126

2227
.Procedure
23-
. Run the following commands to ensure that all `DevWorkspace` CRs are removed along with their related Kubernetes objects, such as deployments.
28+
. Uninstall the Web Terminal Operator using the web console:
29+
.. In the *Administrator* perspective of the web console, navigate to *Operators -> Installed Operators*.
30+
.. Scroll the filter list or type a keyword into the *Filter by name* box to find the *Web Terminal* Operator.
31+
.. Click the Options menu {kebab} for the Web Terminal Operator, and then select *Uninstall Operator*.
32+
.. In the *Uninstall Operator* confirmation dialog box, click *Uninstall* to remove the Operator, Operator deployments, and pods from the cluster. The Operator stops running and no longer receives updates.
33+
+
34+
. Run the following commands to ensure that all `DevWorkspace` CRs created for the Web Terminals are removed.
2435
+
2536
[source,terminal]
2637
----
27-
$ oc delete devworkspaces.workspace.devfile.io --all-namespaces --all --wait
38+
$ oc delete devworkspaces.workspace.devfile.io --all-namespaces \
39+
--selector 'console.openshift.io/terminal=true' --wait
40+
----
41+
+
42+
[source,terminal]
43+
----
44+
$ oc delete devworkspacetemplates.workspace.devfile.io --all-namespaces \
45+
--selector 'console.openshift.io/terminal=true' --wait
2846
----
47+
48+
== Deleting the DevWorkspace Operator dependency
49+
50+
Use the CLI to delete the custom resource definitions (CRDs) and additional resources that are created during installation of the Web Terminal Operator.
51+
52+
[IMPORTANT]
53+
====
54+
The DevWorkspace Operator functions as a standalone Operator and may be required as a dependency for other Operators installed on the cluster (for example, the CodeReady Workspaces Operator may depend on it). Follow the steps below only if you are sure the DevWorkspace Operator is no longer needed.
55+
====
56+
57+
.Procedure
58+
. Run the following commands to ensure that all `DevWorkspace` CRs are removed along with their related Kubernetes objects, such as deployments.
2959
+
3060
[source,terminal]
3161
----
32-
$ oc delete workspaceroutings.controller.devfile.io --all-namespaces --all --wait
62+
$ oc delete devworkspaces.workspace.devfile.io --all-namespaces --all --wait
3363
----
3464
+
3565
[source,terminal]
3666
----
37-
$ oc delete components.controller.devfile.io --all-namespaces --all --wait
67+
$ oc delete devworkspaceroutings.controller.devfile.io --all-namespaces --all --wait
3868
----
3969
+
4070
[WARNING]
@@ -46,29 +76,34 @@ If this step is not complete, finalizers make it difficult to fully uninstall th
4676
+
4777
[source,terminal]
4878
----
49-
$ oc delete customresourcedefinitions.apiextensions.k8s.io workspaceroutings.controller.devfile.io
79+
$ oc delete customresourcedefinitions.apiextensions.k8s.io devworkspaceroutings.controller.devfile.io
5080
----
5181
+
5282
[source,terminal]
5383
----
54-
$ oc delete customresourcedefinitions.apiextensions.k8s.io components.controller.devfile.io
84+
$ oc delete customresourcedefinitions.apiextensions.k8s.io devworkspaces.workspace.devfile.io
5585
----
5686
+
87+
. Remove the `DevWorkspace-Webhook-Server` deployment, mutating, and validating webhooks:
88+
+
5789
[source,terminal]
5890
----
59-
$ oc delete customresourcedefinitions.apiextensions.k8s.io devworkspaces.workspace.devfile.io
91+
$ oc delete deployment/devworkspace-webhook-server -n openshift-operators
6092
----
6193
+
62-
. Remove the `DevWorkspace-Webhook-Server` deployment:
94+
[source,terminal]
95+
----
96+
$ oc delete mutatingwebhookconfigurations controller.devfile.io
97+
----
6398
+
6499
[source,terminal]
65100
----
66-
$ oc delete deployment/devworkspace-webhook-server -n openshift-operators
101+
$ oc delete validatingwebhookconfigurations controller.devfile.io
67102
----
68103
+
69104
[NOTE]
70105
====
71-
When you run this and the following steps, you cannot use the `oc exec` commands to run commands in a container. After you remove the webhooks you will be able to use the `oc exec` commands again.
106+
If you remove the `devworkspace-webhook-server` deployment without removing the mutating and validating webhooks, you will not be able use `oc exec` commands to run commands in a container on the cluster. After you remove the webhooks you will be able to use the `oc exec` commands again.
72107
====
73108
+
74109
. Run the following commands to remove any lingering services, secrets, and config maps:
@@ -98,23 +133,8 @@ $ oc delete clusterrole devworkspace-webhook-server
98133
$ oc delete clusterrolebinding devworkspace-webhook-server
99134
----
100135
+
101-
. Run the following commands to remove mutating or validating webhook configurations:
102-
+
103-
[source,terminal]
104-
----
105-
$ oc delete mutatingwebhookconfigurations controller.devfile.io
106-
----
107-
+
108-
[source,terminal]
109-
----
110-
$ oc delete validatingwebhookconfigurations controller.devfile.io
111-
----
112-
113-
== Uninstalling the Operator using the web console
114-
115-
.Procedure
116-
117-
. In the *Administrator* perspective of the web console, navigate to *Operators -> Installed Operators*.
118-
. Scroll the filter list or type a keyword into the *Filter by name* box to find the *Web Terminal* Operator.
119-
. Click the Options menu {kebab} for the Web Terminal Operator, and then select *Uninstall Operator*.
120-
. In the *Uninstall Operator* confirmation dialog box, click *Uninstall* to remove the Operator, Operator deployments, and pods from the cluster. The Operator stops running and no longer receives updates.
136+
. Uninstall the Operator using the web console:
137+
.. In the *Administrator* perspective of the web console, navigate to *Operators -> Installed Operators*.
138+
.. Scroll the filter list or type a keyword into the *Filter by name* box to find the *DevWorkspace* Operator.
139+
.. Click the Options menu {kebab} for the DevWorkspace Operator, and then select *Uninstall Operator*.
140+
.. In the *Uninstall Operator* confirmation dialog box, click *Uninstall* to remove the Operator, Operator deployments, and pods from the cluster. The Operator stops running and no longer receives updates.

0 commit comments

Comments
 (0)