1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/registry-operator-default-crd.adoc

24 lines
728 B
Plaintext

// Module included in the following assemblies:
//
// * openshift_images/configuring-registry-operator.adoc
[id="registry-operator-default-crd_{context}"]
= Enable the Image Registry default route with the Custom Resource Definition
In {product-title}, the `Registry` Operator controls the registry feature. The
Operator is defined by 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}}'
----