We are in the process of enabling this repo for community contribution. See wiki here.
The MultiClusterHub operator manages the install of Open Cluster Management (OCM) on RedHat Openshift Container Platform
For steps on how to contribute and test the MultiClusterHub Operator component, see CONTRIBUTING guidelines.
Once installed, the hub operator will monitor changes in the cluster that affect an instance of the multiclusterhub (mch) and reconcile deviations to maintain desired state. To stop the installer from making these changes you can apply an annotation to the mch instance.
kubectl annotate mch <mch-name> installer.open-cluster-management.io/pause=trueRemove or edit this annotation to resume installer operations
kubectl annotate mch <mch-name> installer.open-cluster-management.io/pause=false --overwriteDeveloper image overrides can be added by specifiying a configmap containing the overrides for the MCH resource. This configmap must be in the same namespace as the MCH resource.
This is done by creating a configmap from a new manifest. A developer may use this to override any 1 or all images.
If overriding individual images, the minimum required parameters required to build the image reference are -
image-nameimage-remoteimage-keyimage-digestorimage-tag, both can optionally be provided, if so theimage-digestwill be preferred.
kubectl create configmap <my-config> --from-file=docs/examples/manifest-oneimage.json # Override 1 image example
kubectl create configmap <my-config> --from-file=docs/examples/manifest-allimages.json # Overriding all images example
kubectl annotate mch <mch-name> --overwrite installer.open-cluster-management.io/image-overrides-configmap=<my-config> # Provide the configmap as an override to the MCHTo remove this annotation to revert back to the original manifest
kubectl annotate mch <mch-name> installer.open-cluster-management.io/image-overrides-configmap --overwrite # Remove annotation
kubectl delete configmap <my-config> # Delete configmapIf editing the configmap directly instead of creating/deleting it each time, an operator reconcile may be necessary in order to get the changes to take effect. This can be done by cycling the MCH Operator pod
kubectl delete pod multiclusterhub-operator-xxxxx-xxxxxThe multicluster engine subscription is stood up by default as part of a standard MCH installation. The spec of the subscription can be overriden by providing the following annotation to the MCH resource. One or many parameters can be provided from the ones listed in the installer.open-cluster-management.io/mce-subscription-spec annotation below
apiVersion: operator.open-cluster-management.io/v1
kind: MultiClusterHub
metadata:
annotations:
installer.open-cluster-management.io/mce-subscription-spec: '{"channel": "stable-2.0","installPlanApproval": "Manual","name":
"multicluster-engine","source": "multiclusterengine-catalog","sourceNamespace": "catalogsourcenamespace","startingCSV":
"csv-1.0"}'
name: multiclusterhub
spec: {}The OADP operator is installed from redhat-operators by the cluster-backup chart. The spec of the subscription can be overriden by providing the following annotation to the MCH resource. One or many parameters can be provided from the ones listed in the installer.open-cluster-management.io/oadp-subscription-spec annotation below
apiVersion: operator.open-cluster-management.io/v1
kind: MultiClusterHub
metadata:
annotations:
installer.open-cluster-management.io/oadp-subscription-spec: '{"channel": "stable-1.0","installPlanApproval": "Automatic","name":
"redhat-oadp-operator","source": "redhat-operators","sourceNamespace": "openshift-marketplace","startingCSV":
"oadp-operator.v1.0.2"}'
name: multiclusterhub
spec: {}Setting OADP annotation via CLI
oc annotate mch multiclusterhub installer.open-cluster-management.io/oadp-subscription-spec='{"channel":"stable-1.0","installPlanApproval":"Automatic","name":"redhat-oadp-operator","source":"redhat-operators","sourceNamespace":"openshift-marketplace","startingCSV": "oadp-operator.v1.0.2"}'The operator defines a minimum version of OCP it can run in to avoid unexpected behavior. If the OCP environment is below this threshold then the MCH instance will report failure early on. This requirement can be ignored in the following two ways
- Set
DISABLE_OCP_MIN_VERSIONas an environment variable. The presence of this variable in the container the operator runs will skip the check. - Set
installer.open-cluster-management.io/ignore-ocp-versionannotation in the MCH instance.
kubectl annotate mch <mch-name> installer.open-cluster-management.io/ignore-ocp-version=trueAfter deploying MCE the operator waits for MCE install to complete and verifies it is running at a minimum version. To ignore this version check:
- Set
DISABLE_MCE_MIN_VERSIONas an environment variable. With this set the operator will only check that MCE has set its currentVersion status.
Rebuild Image: Thu Jul 24 10:04:30 EDT 2025