OpenShift Tips

Operator-Lifecycle-Manager (OLM)

Disable default OperatorHub sources

This is useful for disconnected, restricted, or curated clusters where you want to expose only the CatalogSource objects that your administrators explicitly manage.

Disable the default OperatorHub sources:

oc patch operatorhub.config.openshift.io/cluster -p='{"spec":{"disableAllDefaultSources":true}}' --type=merge

Re-enable the default sources:

oc patch operatorhub.config.openshift.io/cluster -p='{"spec":{"disableAllDefaultSources":false}}' --type=merge
Last updated on 18 Jun 2019
Published on 18 Jun 2019
Edit on GitHub