1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/registry-operator-default-crd.adoc
2025-11-20 11:51:46 +00:00

20 lines
775 B
Plaintext

// 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}}'
----