Skip to content

Commit

Permalink
docs: Document enabling override Operators
Browse files Browse the repository at this point in the history
  • Loading branch information
kowen-rh authored and praveenkumar committed Jul 13, 2022
1 parent 0f48fc2 commit d976952
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/topics/assembly_administrative-tasks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
= Administrative tasks

include::proc_starting-monitoring.adoc[leveloffset=+1]

include::proc_enabling-override-operators.adoc[leveloffset=+1]
37 changes: 37 additions & 0 deletions docs/source/topics/proc_enabling-override-operators.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[id="enabling-override-operators_{context}"]
= Enabling override Operators

To make sure {prod} can run on a typical laptop, some resource-heavy services get disabled by default.
These services can be enabled by manually removing the desired Operator from the Operator override list.

.Prerequisites

* A running {prod} virtual machine and a working [command]`oc` command.
For more information, see link:{crc-gsg-url}#accessing-the-openshift-cluster-with-oc_gsg[Accessing the OpenShift cluster with `oc`].
* You must log in through [command]`oc` as the `kubeadmin` user.

.Procedure

. List unmanaged Operators and note the numeric index for the desired Operator:

** On Linux or {mac}:
+
[subs="+quotes"]
----
$ oc get clusterversion version -ojsonpath='{range .spec.overrides[*]}{.name}{"\n"}{end}' | nl -v 0
----

** On {msw} using PowerShell:
+
[subs="+quotes"]
----
PS> oc get clusterversion version -ojsonpath='{range .spec.overrides[*]}{.name}{"\n"}{end}' | % {$nl++;"`t$($nl-1) `t $_"};$nl=0
----

. Start the desired Operator using the identified numeric index:
+
[subs="+quotes"]
----
$ oc patch clusterversion/version --type='json' -p '[{"op":"remove", "path":"/spec/overrides/_<unmanaged-operator-index>_"}]'
clusterversion.config.openshift.io/version patched
----

0 comments on commit d976952

Please sign in to comment.