-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Document enabling override Operators
- Loading branch information
1 parent
0f48fc2
commit d976952
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
---- |