Skip to content

Commit 80d964e

Browse files
authored
Merge pull request #30884 from adellape/rm_catalog
2 parents 2c69472 + ea43709 commit 80d964e

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

modules/olm-removing-catalogs.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * operators/admin/olm-managing-custom-catalogs.adoc
4+
5+
[id="olm-removing-catalogs_{context}"]
6+
= Removing custom catalogs
7+
8+
As a cluster administrator, you can remove custom Operator catalogs that have been previously added to your cluster by deleting the related catalog source.
9+
10+
.Procedure
11+
12+
. In the *Administrator* perspective of the web console, navigate to *Administration* -> *Cluster Settings*.
13+
14+
. Click the *Global Configuration* tab, and then click *OperatorHub*.
15+
16+
. Click the *Sources* tab.
17+
18+
. Select the *Options* menu {kebab} for the catalog that you want to remove, and then click *Delete CatalogSource*.

modules/olm-restricted-networks-configuring-operatorhub.adoc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,23 @@
66
// * migration/migrating_4_1_4/deploying-cam-4-1-4.adoc
77
// * migration/migrating_4_2_4/deploying-cam-4-2-4.adoc
88

9+
ifeval::["{context}" == "olm-restricted-networks"]
10+
:olm-restricted-networks:
11+
endif::[]
12+
ifeval::["{context}" == "olm-managing-custom-catalogs"]
13+
:olm-managing-custom-catalogs:
14+
endif::[]
15+
916
[id="olm-restricted-networks-operatorhub_{context}"]
1017
= Disabling the default OperatorHub sources
1118

12-
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.
19+
Operator catalogs that source content provided by Red Hat and community projects are configured for OperatorHub by default during an {product-title} installation.
20+
ifdef::olm-restricted-networks[]
21+
Before configuring OperatorHub to instead use local catalog sources in a restricted network environment, you must disable the default catalogs as a cluster administrator.
22+
endif::[]
23+
ifdef::olm-managing-custom-catalogs[]
24+
As a cluster administrator, you can disable the set of default catalogs.
25+
endif::[]
1326

1427
.Procedure
1528

@@ -25,3 +38,10 @@ $ oc patch OperatorHub cluster --type json \
2538
====
2639
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.
2740
====
41+
42+
ifeval::["{context}" == "olm-restricted-networks"]
43+
:!olm-restricted-networks:
44+
endif::[]
45+
ifeval::["{context}" == "olm-managing-custom-catalogs"]
46+
:!olm-managing-custom-catalogs:
47+
endif::[]

operators/admin/olm-managing-custom-catalogs.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ include::modules/olm-accessing-images-private-registries.adoc[leveloffset=+1]
5353
* 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.
5454
* 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.
5555
* 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.
56+
57+
include::modules/olm-restricted-networks-configuring-operatorhub.adoc[leveloffset=+1]
58+
include::modules/olm-removing-catalogs.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)