// Module included in the following assemblies:
//
// * openshift_images/configuring-registry-operator.adoc

:_mod-docs-content-type: PROCEDURE
[id="registry-operator-default-crd_{context}"]
= Enabling the Image Registry default route by using a CRD

[role="_abstract"]
In {product-title}, the `Registry` Operator controls the {product-registry} feature and you define this Operator in the `configs.imageregistry.operator.openshift.io` Custom Resource Definition (CRD). If you need to automatically enable the Image Registry default route, patch the Image Registry Operator CRD.

.Procedure

* Patch the Image Registry Operator CRD:
+
[source,terminal]
----
$ oc patch configs.imageregistry.operator.openshift.io/cluster --type merge -p '{"spec":{"defaultRoute":true}}'
----
