1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hcp-disable-feature.adoc
Martin Gencur f281db32b6 OCPBUGS-53162: Long command-line prompts not visible
This commit break long command-line prompts into multiple lines so that
the command is visible without scrolling.
2025-03-18 15:10:22 +00:00

50 lines
1.6 KiB
Plaintext

// Module included in the following assemblies:
// * hosted-control-planes/hcp-prepare/hcp-enable-disable.adoc
:_mod-docs-content-type: PROCEDURE
[id="hcp-disable-feature_{context}"]
= Disabling the {hcp} feature
To disable the {hcp} feature, complete the following steps.
.Prerequisites
* You uninstalled the HyperShift Operator. For more information, see "Uninstalling the HyperShift Operator".
.Procedure
. Run the following command to disable the {hcp} feature:
+
[source,terminal]
----
$ oc patch mce multiclusterengine --type=merge -p \// <1>
'{"spec":{"overrides":{"components":[{"name":"hypershift","enabled": false}]}}}'
----
+
<1> The default `MultiClusterEngine` resource instance name is `multiclusterengine`, but you can get the `MultiClusterEngine` name from your cluster by running the following command: `$ oc get mce`.
. You can verify that the `hypershift` and `hypershift-local-hosting` features are disabled in the `MultiClusterEngine` custom resource by running the following command:
+
[source,terminal]
----
$ oc get mce multiclusterengine -o yaml <1>
----
+
<1> The default `MultiClusterEngine` resource instance name is `multiclusterengine`, but you can get the `MultiClusterEngine` name from your cluster by running the following command: `$ oc get mce`.
+
See the following example where `hypershift` and `hypershift-local-hosting` have their `enabled:` flags set to `false`:
+
[source,yaml]
----
apiVersion: multicluster.openshift.io/v1
kind: MultiClusterEngine
metadata:
name: multiclusterengine
spec:
overrides:
components:
- name: hypershift
enabled: false
- name: hypershift-local-hosting
enabled: false
----