Skip to content

Commit

Permalink
Add procedure for removing custom Operator catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
adellape committed Mar 25, 2021
1 parent 65e58fb commit ea43709
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
18 changes: 18 additions & 0 deletions modules/olm-removing-catalogs.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Module included in the following assemblies:
//
// * operators/admin/olm-managing-custom-catalogs.adoc

[id="olm-removing-catalogs_{context}"]
= Removing custom catalogs

As a cluster administrator, you can remove custom Operator catalogs that have been previously added to your cluster by deleting the related catalog source.

.Procedure

. In the *Administrator* perspective of the web console, navigate to *Administration* -> *Cluster Settings*.

. Click the *Global Configuration* tab, and then click *OperatorHub*.

. Click the *Sources* tab.

. Select the *Options* menu {kebab} for the catalog that you want to remove, and then click *Delete CatalogSource*.
22 changes: 21 additions & 1 deletion modules/olm-restricted-networks-configuring-operatorhub.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,23 @@
// * migration/migrating_4_1_4/deploying-cam-4-1-4.adoc
// * migration/migrating_4_2_4/deploying-cam-4-2-4.adoc

ifeval::["{context}" == "olm-restricted-networks"]
:olm-restricted-networks:
endif::[]
ifeval::["{context}" == "olm-managing-custom-catalogs"]
:olm-managing-custom-catalogs:
endif::[]

[id="olm-restricted-networks-operatorhub_{context}"]
= Disabling the default OperatorHub sources

Operator catalogs that source content provided by Red Hat and community projects are configured for OperatorHub by default during an {product-title} installation. Before configuring OperatorHub to instead use local catalog sources in a restricted network environment, you must disable the default catalogs as a cluster administrator.
Operator catalogs that source content provided by Red Hat and community projects are configured for OperatorHub by default during an {product-title} installation.
ifdef::olm-restricted-networks[]
Before configuring OperatorHub to instead use local catalog sources in a restricted network environment, you must disable the default catalogs as a cluster administrator.
endif::[]
ifdef::olm-managing-custom-catalogs[]
As a cluster administrator, you can disable the set of default catalogs.
endif::[]

.Procedure

Expand All @@ -25,3 +38,10 @@ $ oc patch OperatorHub cluster --type json \
====
Alternatively, you can use the web console to manage catalog sources. From the *Administration* -> *Cluster Settings* -> *Global Configuration* -> *OperatorHub* page, click the *Sources* tab, where you can create, delete, disable, and enable individual sources.
====

ifeval::["{context}" == "olm-restricted-networks"]
:!olm-restricted-networks:
endif::[]
ifeval::["{context}" == "olm-managing-custom-catalogs"]
:!olm-managing-custom-catalogs:
endif::[]
3 changes: 3 additions & 0 deletions operators/admin/olm-managing-custom-catalogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ include::modules/olm-accessing-images-private-registries.adoc[leveloffset=+1]
* See xref:../../cicd/builds/creating-build-inputs.adoc#builds-secrets-overview_creating-build-inputs[What is a secret?] for more information on the types of secrets, including those used for registry credentials.
* See xref:../../openshift_images/managing_images/using-image-pull-secrets.adoc#images-update-global-pull-secret_using-image-pull-secrets[Updating the global cluster pull secret] for more details on the impact of changing this secret.
* See xref:../../openshift_images/managing_images/using-image-pull-secrets.adoc#images-allow-pods-to-reference-images-from-secure-registries_using-image-pull-secrets[Allowing pods to reference images from other secured registries] for more details on linking pull secrets to service accounts per namespace.

include::modules/olm-restricted-networks-configuring-operatorhub.adoc[leveloffset=+1]
include::modules/olm-removing-catalogs.adoc[leveloffset=+1]

0 comments on commit ea43709

Please sign in to comment.