Skip to content

Commit f8206bf

Browse files
camilamacedo86perdasilvabentito
authored
📖 Update docs monorepo (#1612)
* [Monorepo] Update documentation for old catalogd repository references - Replaced references to https://github.com/operator-framework/catalogd/ across the documentation. - Ensures that all mentions of the old catalogd repository are correctly updated. * [Monorepo] Move catalogd/README.md content to project README - Integrated relevant content from catalogd/README.md into the project's main README by adding Demo and Quick-Start steps from catalogd/README.md to the main README. - Removed the old catalogd/README.md as its remaining content (e.g., contribution guidelines) is already covered in CONTRIBUTING.md. * [Monorepo] enhancements and ajustments in the contributing guide Co-authored-by: Jordan Keister Co-authored-by: Per Goncalves da Silva <[email protected]> * [Monorepo] Update docs/contribute/developer.md : Fix Tilt info since now we have only one service Co-authored-by: Brett Tofel <[email protected]> * [Monorepo] Small fixes in the docs and tutorials regards the changes - Update catalogd/docs/fetching-catalog-contents.md - Updare docs/tutorials/add-catalog.md --------- Co-authored-by: Per Goncalves da Silva <[email protected]> Co-authored-by: Brett Tofel <[email protected]>
1 parent 7446060 commit f8206bf

File tree

8 files changed

+159
-186
lines changed

8 files changed

+159
-186
lines changed

Diff for: CONTRIBUTING.md

+4-9
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ Thank you for your interest in contributing to the Operator-Controller.
1515

1616
As you may or may not know, the Operator-Controller project aims to deliver the user experience described in the [Operator Lifecycle Manager (OLM) V1 Product Requirements Document (PRD)](https://docs.google.com/document/d/1-vsZ2dAODNfoHb7Nf0fbYeKDF7DUqEzS9HqgeMCvbDs/edit). The design requirements captured in the OLM V1 PRD were born from customer and community feedback based on the experience they had with the released version of [OLM V0](https://github.com/operator-framework/operator-lifecycle-manager).
1717

18-
The user experience captured in the OLM V1 PRD introduces many requirements that are best satisfied by a microservices architecture. The OLM V1 experience currently relies on two projects:
18+
The user experience captured in the OLM V1 PRD introduces many requirements that are best satisfied by a microservices architecture. The OLM V1 experience currently relies on two components:
1919

20-
- [The Operator-Controller project](https://github.com/operator-framework/operator-controller/), which is the top level component allowing users to specify operators they'd like to install.
21-
- [The Catalogd project](https://github.com/operator-framework/catalogd/), which hosts operator content and helps users discover installable content.
22-
23-
Each of the projects listed above have their own governance, release milestones, and release cadence. However, from a technical perspective, the "OLM V1 experience" matches the experienced offered by the operator-controller project, the top level component which depends on Catalogd.
20+
- [Operator-Controller](https://github.com/operator-framework/operator-controller/), which is the top level component allowing users to specify operators they'd like to install.
21+
- [Catalogd](https://github.com/operator-framework/operator-controller/tree/main/catalogd), which hosts operator content and helps users discover installable content.
2422

2523
## How do we collaborate
2624

@@ -119,10 +117,7 @@ As discussed earlier, the operator-controller adheres to a microservice architec
119117
120118
Unsure where to submit an issue?
121119
122-
- [The Operator-Controller project](https://github.com/operator-framework/operator-controller/), which is the top level component allowing users to specify operators they'd like to install.
123-
- [The Catalogd project](https://github.com/operator-framework/catalogd/), which hosts operator content and helps users discover installable content.
124-
125-
Don't worry if you accidentally submit an issue against the wrong project, if we notice that an issue would fit better with a separate project we'll move it to the correct repository and mention it in the #olm-dev slack channel.
120+
- [Operator-Controller](https://github.com/operator-framework/operator-controller/), which contains both components, is the project allowing users to specify operators they'd like to install.
126121

127122
## Submitting Pull Requests
128123

Diff for: README.md

+148
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,154 @@ The documentation currently lives at [website](https://operator-framework.github
2626

2727
To get started with OLM v1, please see our [Getting Started](https://operator-framework.github.io/operator-controller/getting-started/olmv1_getting_started/) documentation.
2828

29+
## ClusterCatalog
30+
31+
### Quickstart DEMO
32+
33+
[![asciicast](https://asciinema.org/a/682344.svg)](https://asciinema.org/a/682344)
34+
35+
### ClusterCatalog Quickstart Steps
36+
37+
Procedure steps marked with an asterisk (`*`) are likely to change with future API updates.
38+
39+
**NOTE:** The examples below use the `-k` flag in curl to skip validating the TLS certificates. This is for demonstration purposes only.
40+
41+
1. To get started with OLM v1, please see our [Getting Started](https://operator-framework.github.io/operator-controller/getting-started/olmv1_getting_started/) documentation.
42+
43+
1. Create a `ClusterCatalog` object that points to the OperatorHub Community catalog by running the following command:
44+
45+
```sh
46+
$ kubectl apply -f - << EOF
47+
apiVersion: olm.operatorframework.io/v1
48+
kind: ClusterCatalog
49+
metadata:
50+
name: operatorhubio
51+
spec:
52+
source:
53+
type: Image
54+
image:
55+
ref: quay.io/operatorhubio/catalog:latest
56+
EOF
57+
```
58+
59+
1. Verify the `ClusterCatalog` object was created successfully by running the following command:
60+
61+
```sh
62+
$ kubectl describe clustercatalog/operatorhubio
63+
```
64+
65+
*Example output*
66+
```sh
67+
Name: operatorhubio
68+
Namespace:
69+
Labels: olm.operatorframework.io/metadata.name=operatorhubio
70+
Annotations: <none>
71+
API Version: olm.operatorframework.io/v1
72+
Kind: ClusterCatalog
73+
Metadata:
74+
Creation Timestamp: 2024-10-17T13:48:46Z
75+
Finalizers:
76+
olm.operatorframework.io/delete-server-cache
77+
Generation: 1
78+
Resource Version: 7908
79+
UID: 34eeaa91-9f8e-4254-9937-0ae9d25e92df
80+
Spec:
81+
Availability Mode: Available
82+
Priority: 0
83+
Source:
84+
Image:
85+
Ref: quay.io/operatorhubio/catalog:latest
86+
Type: Image
87+
Status:
88+
Conditions:
89+
Last Transition Time: 2024-10-17T13:48:59Z
90+
Message: Successfully unpacked and stored content from resolved source
91+
Observed Generation: 1
92+
Reason: Succeeded
93+
Status: False
94+
Type: Progressing
95+
Last Transition Time: 2024-10-17T13:48:59Z
96+
Message: Serving desired content from resolved source
97+
Observed Generation: 1
98+
Reason: Available
99+
Status: True
100+
Type: Serving
101+
Last Unpacked: 2024-10-17T13:48:58Z
102+
Resolved Source:
103+
Image:
104+
Last Successful Poll Attempt: 2024-10-17T14:49:59Z
105+
Ref: quay.io/operatorhubio/catalog@sha256:82be554b15ff246d8cc428f8d2f4cf5857c02ce3225d95d92a769ea3095e1fc7
106+
Type: Image
107+
Urls:
108+
Base: https://catalogd-service.olmv1-system.svc/catalogs/operatorhubio
109+
Events: <none>
110+
```
111+
112+
1. Port forward the `catalogd-service` service in the `olmv1-system` namespace:
113+
```sh
114+
$ kubectl -n olmv1-system port-forward svc/catalogd-service 8080:443
115+
```
116+
117+
1. Access the `v1/all` service endpoint and filter the results to a list of packages by running the following command:
118+
119+
```sh
120+
$ curl https://localhost:8080/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.package") | .name'
121+
```
122+
123+
*Example output*
124+
```sh
125+
% Total % Received % Xferd Average Speed Time Time Time Current
126+
Dload Upload Total Spent Left Speed
127+
100 110M 100 110M 0 0 112M 0 --:--:-- --:--:-- --:--:-- 112M
128+
"ack-acm-controller"
129+
"ack-apigatewayv2-controller"
130+
"ack-applicationautoscaling-controller"
131+
"ack-cloudtrail-controller"
132+
"ack-cloudwatch-controller"
133+
"ack-dynamodb-controller"
134+
"ack-ec2-controller"
135+
"ack-ecr-controller"
136+
"ack-eks-controller"
137+
"ack-elasticache-controller"
138+
"ack-emrcontainers-controller"
139+
"ack-eventbridge-controller"
140+
"ack-iam-controller"
141+
"ack-kinesis-controller"
142+
...
143+
```
144+
1. Run the following command to get a list of channels for the `ack-acm-controller` package:
145+
146+
```sh
147+
$ curl https://localhost:8080/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.channel") | select(.package == "ack-acm-controller") | .name'
148+
```
149+
150+
*Example output*
151+
```sh
152+
% Total % Received % Xferd Average Speed Time Time Time Current
153+
Dload Upload Total Spent Left Speed
154+
100 110M 100 110M 0 0 115M 0 --:--:-- --:--:-- --:--:-- 116M
155+
"alpha"
156+
```
157+
158+
1. Run the following command to get a list of bundles belonging to the `ack-acm-controller` package:
159+
160+
```sh
161+
$ curl https://localhost:8080/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.bundle") | select(.package == "ack-acm-controller") | .name'
162+
```
163+
164+
*Example output*
165+
```sh
166+
% Total % Received % Xferd Average Speed Time Time Time Current
167+
Dload Upload Total Spent Left Speed
168+
100 110M 100 110M 0 0 122M 0 --:--:-- --:--:-- --:--:-- 122M
169+
"ack-acm-controller.v0.0.1"
170+
"ack-acm-controller.v0.0.2"
171+
"ack-acm-controller.v0.0.4"
172+
"ack-acm-controller.v0.0.5"
173+
"ack-acm-controller.v0.0.6"
174+
"ack-acm-controller.v0.0.7"
175+
```
176+
29177
## License
30178
31179
Copyright 2022-2024.

Diff for: catalogd/README.md

-169
This file was deleted.

Diff for: catalogd/docs/fetching-catalog-contents.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ This section outlines a way of exposing the `Catalogd` Service's endpoints outsi
133133

134134
- [Install kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
135135
- Assuming `kind` is installed, create a `kind` cluster with `extraPortMappings` and `node-labels` as shown in the [kind documentation](https://kind.sigs.k8s.io/docs/user/ingress/)
136-
- Install latest version of `Catalogd` by navigating to the [releases page](https://github.com/operator-framework/catalogd/releases) and following the install instructions included in the release you want to install.
136+
- Install OLM V1, see the [Getting Started](https://operator-framework.github.io/operator-controller/getting-started/olmv1_getting_started/) documentation.
137137
- Install the `Ingress NGINX` Controller by running the below command:
138138

139139
```sh
140-
$ kubectl apply -k https://github.com/operator-framework/catalogd/tree/main/config/nginx-ingress
140+
$ kubectl apply -k https://github.com/operator-framework/operator-controller/tree/main/catalogd/config/base/nginx-ingress
141141
```
142142
By running that above command, the `Ingress` Controller is installed. Along with it, the `Ingress` Resource will be applied automatically as well, thereby creating an `Ingress` Object on the cluster.
143143

@@ -201,4 +201,4 @@ This section outlines a way of exposing the `Catalogd` Service's endpoints outsi
201201
$ kubectl -n olmv1-system get ingress
202202
```
203203

204-
You can further use the `curl` commands outlined in the [Catalogd README](https://github.com/operator-framework/catalogd/blob/main/README.md) to filter out the JSON content by list of bundles, channels & packages.
204+
You can further use the `curl` commands outlined in the [README](https://github.com/operator-framework/operator-controller/blob/main/README.md) to filter out the JSON content by list of bundles, channels & packages.

Diff for: docs/api-reference/catalogd-webserver.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Catalogd web server
22

3-
[Catalogd](https://github.com/operator-framework/catalogd), the OLM v1 component for making catalog contents available on cluster, includes
3+
[Catalogd](https://github.com/operator-framework/operator-controller/tree/main/catalogd), the OLM v1 component for making catalog contents available on cluster, includes
44
a web server that serves catalog contents to clients via an HTTP(S) endpoint.
55

66
The endpoint to retrieve this information can be composed from the `.status.urls.base` of a `ClusterCatalog` resource with the selected access API path.

Diff for: docs/contribute/developer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Follow Tilt's [instructions](https://docs.tilt.dev/install.html) for installatio
8989
### Installing catalogd
9090
9191
operator-controller requires
92-
[catalogd](https://github.com/operator-framework/catalogd). Please make sure it's installed, either normally or via its own Tiltfile., before proceeding. If you want to use Tilt, make sure you specify a unique `--port` flag to each `tilt up` invocation.
92+
[catalogd](https://github.com/operator-framework/operator-controller/tree/main/catalogd). When you give a `tilt up` invocation, catalogd will be started along with operator-controller.
9393
9494
### Starting Tilt
9595

Diff for: docs/project/olmv1_architecture.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ hide:
88
This document provides an overview of the architecture of OLM v1, which consists of two primary components:
99

1010
1. [operator-controller](https://github.com/operator-framework/operator-controller)
11-
2. [catalogD](https://github.com/operator-framework/catalogd)
11+
2. [catalogD](https://github.com/operator-framework/operator-controller/tree/main/catalogd)
1212

1313
The diagram below visually represents the architecture of OLM v1, followed by descriptions of each component and its role within the system.
1414

0 commit comments

Comments
 (0)