Skip to content

Commit db76939

Browse files
Merge pull request #88209 from michaelryanpeter/osdocs-11119-olmv1-restructure-exisiting-catalog-crs
OSDOCS#12828: Remove references to pull secrets in cluster catalog CRs
2 parents 676c98e + dbcc556 commit db76939

File tree

5 files changed

+14
-33
lines changed

5 files changed

+14
-33
lines changed

modules/olmv1-about-catalogs.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@
1010
= About catalogs in {olmv1}
1111

1212
You can discover installable content by querying a catalog for Kubernetes extensions, such as Operators and controllers, by using the catalogd component. Catalogd is a Kubernetes extension that unpacks catalog content for on-cluster clients and is part of the {olmv1-first} suite of microservices. Currently, catalogd unpacks catalog content that is packaged and distributed as container images.
13-
14-
include::snippets/olmv1-multi-catalog-admon.adoc[]

modules/olmv1-adding-a-catalog.adoc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,34 @@ To add a catalog to a cluster, create a catalog custom resource (CR) and apply i
1313

1414
. Create a catalog custom resource (CR), similar to the following example:
1515
+
16-
.Example `redhat-operators.yaml`
16+
.Example `my-redhat-operators.yaml` file
1717
[source,yaml,subs="attributes+"]
1818
----
1919
apiVersion: catalogd.operatorframework.io/v1alpha1
2020
kind: ClusterCatalog
2121
metadata:
22-
name: redhat-operators
22+
name: my-redhat-operators
2323
spec:
2424
source:
2525
type: image
2626
image:
2727
ref: registry.redhat.io/redhat/redhat-operator-index:v{product-version} <1>
28-
pullSecret: <pull_secret_name> <2>
29-
pollInterval: <poll_interval_duration> <3>
28+
pollInterval: <poll_interval_duration> <2>
3029
----
3130
<1> Specify the catalog's image in the `spec.source.image` field.
32-
<2> If your catalog is hosted on a secure registry, such as `registry.redhat.io`, you must create a pull secret scoped to the `openshift-catalog` namespace.
33-
<3> Specify the interval for polling the remote registry for newer image digests. The default value is `24h`. Valid units include seconds (`s`), minutes (`m`), and hours (`h`). To disable polling, set a zero value, such as `0s`.
31+
<2> Specify the interval for polling the remote registry for newer image digests. The default value is `24h`. Valid units include seconds (`s`), minutes (`m`), and hours (`h`). To disable polling, set a zero value, such as `0s`.
3432

3533
. Add the catalog to your cluster by running the following command:
3634
+
3735
[source,terminal]
3836
----
39-
$ oc apply -f redhat-operators.yaml
37+
$ oc apply -f my-redhat-operators.yaml
4038
----
4139
+
4240
.Example output
4341
[source,text]
4442
----
45-
catalog.catalogd.operatorframework.io/redhat-operators created
43+
catalog.catalogd.operatorframework.io/my-redhat-operators created
4644
----
4745

4846
.Verification
@@ -59,8 +57,8 @@ $ oc get clustercatalog
5957
.Example output
6058
[source,text]
6159
----
62-
NAME AGE
63-
redhat-operators 20s
60+
NAME AGE
61+
my-redhat-operators 20s
6462
----
6563

6664
.. Check the status of your catalog by running the following command:
@@ -73,11 +71,11 @@ $ oc describe clustercatalog
7371
.Example output
7472
[source,text,subs="attributes+"]
7573
----
76-
Name: redhat-operators
74+
Name: my-redhat-operators
7775
Namespace:
78-
Labels: <none>
76+
Labels: olm.operatorframework.io/metadata.name=my-redhat-operators
7977
Annotations: <none>
80-
API Version: catalogd.operatorframework.io/v1alpha1
78+
API Version: olm.operatorframework.io/v1
8179
Kind: ClusterCatalog
8280
Metadata:
8381
Creation Timestamp: 2024-06-10T17:34:53Z
@@ -87,9 +85,11 @@ Metadata:
8785
Resource Version: 46075
8886
UID: 83c0db3c-a553-41da-b279-9b3cddaa117d
8987
Spec:
88+
Availability Mode: Available
89+
Priority: 0
9090
Source:
9191
Image:
92-
Pull Secret: redhat-cred
92+
Poll Interval Minutes: 10
9393
Ref: registry.redhat.io/redhat/redhat-operator-index:v4.18
9494
Type: image
9595
Status: <1>

modules/olmv1-installing-an-operator.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ where:
123123
`<service_account>`:: Specifies the name of the service account you created to install, update, and manage your extension.
124124
`<channel>`:: Optional: Specifies the channel, such as `pipelines-1.11` or `latest`, for the package you want to install or update.
125125
`<version>`:: Optional: Specifies the version or version range, such as `1.11.1`, `1.12.x`, or `>=1.12.1`, of the package you want to install or update. For more information, see "Example custom resources (CRs) that specify a target version" and "Support for version ranges".
126-
+
127-
--
128-
include::snippets/olmv1-multi-catalog-admon.adoc[]
129-
--
130126

131127
. Apply the CR to the cluster by running the following command:
132128
+

snippets/olmv1-multi-catalog-admon.adoc

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)