Skip to content

Commit 74d2fd8

Browse files
authored
Update docs for catalogd TLS and other cleanup (#940)
- remove $ prompt from command examples - a couple small fixes in the README Signed-off-by: Tayler Geiger <[email protected]>
1 parent f301f55 commit 74d2fd8

File tree

6 files changed

+34
-25
lines changed

6 files changed

+34
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OLM’s purpose is to provide APIs, controllers, and tooling that support the pa
1414

1515
OLM v1 is the follow-up to OLM v0, located [here](https://github.com/operator-framework/operator-lifecycle-manager).
1616

17-
OLM v1 consists of four different components:
17+
OLM v1 consists of three different components:
1818
* operator-controller (this repository)
1919
* [deppy](https://github.com/operator-framework/deppy)
2020
* [catalogd](https://github.com/operator-framework/catalogd)
@@ -112,7 +112,7 @@ More information can be found via the [Kubebuilder Documentation](https://book.k
112112

113113
## License
114114

115-
Copyright 2022-2023.
115+
Copyright 2022-2024.
116116

117117
Licensed under the Apache License, Version 2.0 (the "License");
118118
you may not use this file except in compliance with the License.

docs/Tasks/adding-a-catalog.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Adding a catalog of extensions to a cluster
22

33
Extension authors can publish their products in catalogs.
4-
Catalogs are curated collections of Kubernetes extensions, such as Operators.
5-
Cluster administrators can add these catalogs to their cluster.
6-
Cluster administrators can enable polling to get over-the-air updates to catalogs when extension authors publish changes such as bug fixes and new features.
4+
ClusterCatalogs are curated collections of Kubernetes extensions, such as Operators.
5+
Cluster administrators can add these ClusterCatalogs to their cluster.
6+
Cluster administrators can enable polling to get over-the-air updates to ClusterCatalogs when extension authors publish changes such as bug fixes and new features.
77

88
For example, the [Kubernetes community Operators catalog](https://github.com/k8s-operatorhub/community-operators) is a catalog of curated extensions that is developed by the Kubernetes community.
99
You can see the available extensions at [Operatorhub.io](https://operatorhub.io).
@@ -20,9 +20,9 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
2020

2121
1. Create a catalog custom resource (CR):
2222

23-
``` yaml title="catalog_cr.yaml"
23+
``` yaml title="clustercatalog_cr.yaml"
2424
apiVersion: catalogd.operatorframework.io/v1alpha1
25-
kind: Catalog
25+
kind: ClusterCatalog
2626
metadata:
2727
name: operatorhubio
2828
spec:
@@ -44,7 +44,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
4444

4545
``` yaml title="Example `operatorhubio.yaml` CR"
4646
apiVersion: catalogd.operatorframework.io/v1alpha1
47-
kind: Catalog
47+
kind: ClusterCatalog
4848
metadata:
4949
name: operatorhub
5050
spec:
@@ -55,14 +55,14 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
5555
pollInterval: 1h
5656
```
5757
58-
2. Apply the catalog CR:
58+
2. Apply the ClusterCatalog CR:
5959
6060
``` terminal
61-
$ kubectl apply -f <catalog_cr>.yaml
61+
kubectl apply -f <clustercatalog_cr>.yaml
6262
```
6363

6464
``` text title="Example output"
65-
catalog.catalogd.operatorframework.io/redhat-operators created
65+
clustercatalog.catalogd.operatorframework.io/operatorhubio created
6666
```
6767

6868
### Verification
@@ -72,7 +72,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
7272
* Check if your catalog is available on the cluster:
7373

7474
``` terminal
75-
$ kubectl get catalog
75+
kubectl get clustercatalog
7676
```
7777

7878
``` terminal title="Example output"
@@ -83,7 +83,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
8383
* Check the status of your catalog:
8484

8585
``` terminal
86-
$ kubectl describe catalog
86+
kubectl describe clustercatalog
8787
```
8888

8989
``` terminal title="Example output"
@@ -92,7 +92,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
9292
Labels: <none>
9393
Annotations: <none>
9494
API Version: catalogd.operatorframework.io/v1alpha1
95-
Kind: Catalog
95+
Kind: ClusterCatalog
9696
Metadata:
9797
Creation Timestamp: 2024-03-12T19:34:50Z
9898
Finalizers:
@@ -113,7 +113,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
113113
Reason: UnpackSuccessful
114114
Status: True
115115
Type: Unpacked
116-
Content URL: http://catalogd-catalogserver.olmv1-system.svc/catalogs/operatorhubio/all.json
116+
Content URL: https://catalogd-catalogserver.olmv1-system.svc/catalogs/operatorhubio/all.json
117117
Observed Generation: 2
118118
Phase: Unpacked
119119
Resolved Source:

docs/Tasks/explore-available-packages.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@ Then you can query the catalog by using `curl` commands and the `jq` CLI tool to
33

44
## Prerequisites
55

6-
* You have added a catalog of extensions, such as [OperatorHub.io](https://operatorhub.io), to your cluster.
6+
* You have added a ClusterCatalog of extensions, such as [OperatorHub.io](https://operatorhub.io), to your cluster.
77
* You have installed the `jq` CLI tool.
88

9+
**Note:** By default, Catalogd is installed with TLS enabled for the catalog webserver.
10+
The following examples will show this default behavior, but for simplicity's sake will ignore TLS verification in the curl commands using the `-k` flag.
11+
912
## Procedure
1013

1114
1. Port forward the catalog server service:
1215

1316
``` terminal
14-
$ kubectl -n olmv1-system port-forward svc/catalogd-catalogserver 8080:80
17+
kubectl -n olmv1-system port-forward svc/catalogd-catalogserver 8443:443
1518
```
1619
1720
2. Return a list of all the extensions in a catalog:
1821
``` terminal
19-
$ curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == "olm.package") | .name'
22+
curl -k https://localhost:8443/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == "olm.package") | .name'
2023
```
2124
2225
??? success
@@ -86,7 +89,7 @@ Then you can query the catalog by using `curl` commands and the `jq` CLI tool to
8689
* Return list of packages that support `AllNamespaces` install mode and do not use webhooks:
8790
8891
``` terminal
89-
$ curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -c 'select(.schema == "olm.bundle") | {"package":.package, "version":.properties[] | select(.type == "olm.bundle.object").value.data | @base64d | fromjson | select(.kind == "ClusterServiceVersion" and (.spec.installModes[] | select(.type == "AllNamespaces" and .supported == true) != null) and .spec.webhookdefinitions == null).spec.version}'
92+
curl -k https://localhost:8443/catalogs/operatorhubio/all.json | jq -c 'select(.schema == "olm.bundle") | {"package":.package, "version":.properties[] | select(.type == "olm.bundle.object").value.data | @base64d | fromjson | select(.kind == "ClusterServiceVersion" and (.spec.installModes[] | select(.type == "AllNamespaces" and .supported == true) != null) and .spec.webhookdefinitions == null).spec.version}'
9093
```
9194
9295
??? success
@@ -117,7 +120,7 @@ Then you can query the catalog by using `curl` commands and the `jq` CLI tool to
117120
3. Inspect the contents of an extension's metadata:
118121
119122
``` terminal
120-
$ curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select( .schema == "olm.package") | select( .name == "<package_name>")'
123+
curl -k https://localhost:8443/catalogs/operatorhubio/all.json | jq -s '.[] | select( .schema == "olm.package") | select( .name == "<package_name>")'
121124
```
122125
123126
`package_name`

docs/Tasks/installing-an-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ After you add a catalog to your cluster, you can install an extension by creatin
5454
2. Apply the CR to the cluster:
5555

5656
``` terminal
57-
$ kubectl apply -f <cr_name>.yaml
57+
kubectl apply -f <cr_name>.yaml
5858
```
5959

6060
??? success
@@ -67,7 +67,7 @@ After you add a catalog to your cluster, you can install an extension by creatin
6767
* Describe the installed extension:
6868

6969
``` terminal
70-
$ kubectl describe clusterextensions
70+
kubectl describe clusterextensions
7171
```
7272

7373
??? success

docs/Tasks/uninstall-an-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can uninstall a Kubernetes extension and its associated custom resource defi
1111
* Delete the extension's CR:
1212

1313
``` terminal
14-
$ kubectl delete clusterextensions <extension_name>
14+
kubectl delete clusterextensions <extension_name>
1515
```
1616
1717
`extension_name`
@@ -26,7 +26,7 @@ You can uninstall a Kubernetes extension and its associated custom resource defi
2626
* Verify that the Kubernetes extension is deleted:
2727
2828
``` terminal
29-
$ kubectl get clusterextension.olm.operatorframework.io
29+
kubectl get clusterextension.olm.operatorframework.io
3030
```
3131
3232
``` text title="Example output"

docs/refs/catalog-queries.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Catalog queries
22

3+
**Note:** By default, Catalogd is installed with TLS enabled for the catalog webserver.
4+
The following examples will show this default behavior, but for simplicity's sake will ignore TLS verification in the curl commands using the `-k` flag.
5+
6+
37
You can use the `curl` command with `jq` to query catalogs that are installed on your cluster.
48

59
``` terminal title="Query syntax"
6-
$ curl http://localhost:8080/catalogs/operatorhubio/all.json | <query>
10+
curl -k https://localhost:8443/catalogs/operatorhubio/all.json | <query>
711
```
812

13+
14+
915
## Package queries
1016

1117
Available packages in a catalog

0 commit comments

Comments
 (0)