Skip to content

Commit b06c7f0

Browse files
author
Mikalai Radchuk
committed
Fix docs
Fixes various issues in the docs. Mostly updates snippets to reflect new fields from recent API changes. Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent aaa0e00 commit b06c7f0

File tree

9 files changed

+148
-166
lines changed

9 files changed

+148
-166
lines changed

config/samples/catalogd_operatorcatalog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ spec:
77
type: Image
88
image:
99
ref: quay.io/operatorhubio/catalog:latest
10-
pollInterval: 10m
10+
pollIntervalMinutes: 10

docs/concepts/crd-upgrade-safety.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ kind: ClusterExtension
6161
metadata:
6262
name: clusterextension-sample
6363
spec:
64+
namespace: default
65+
serviceAccount:
66+
name: argocd-installer
6467
source:
6568
sourceType: Catalog
6669
catalog:
6770
packageName: argocd-operator
6871
version: 0.6.0
6972
install:
70-
namespace: default
71-
serviceAccount:
72-
name: argocd-installer
7373
preflight:
7474
crdUpgradeSafety:
75-
disabled: true
75+
enforcement: "None"
7676
```
7777
7878
You cannot disable individual field validators. If you disable the CRD Upgrade Safety preflight check, all field validators are disabled.

docs/contribute/developer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following `make run` starts a [KIND](https://sigs.k8s.io/kind) cluster for y
55

66
> [!NOTE]
77
> You will need a container runtime environment, like Docker, or experimentally, Podman, installed, to run Kind.
8-
>
8+
>
99
> If you are on MacOS, see [Special Setup for MacOS](#special-setup-for-macos).
1010
1111
### Quickstart Installation
@@ -20,9 +20,9 @@ This will build a local container image of the operator-controller, create a new
2020

2121
### To Install Any Given Release
2222

23-
> [!CAUTION]
24-
> Operator-Controller depends on [cert-manager](https://cert-manager.io/). Running the following command
25-
> may affect an existing installation of cert-manager and cause cluster instability.
23+
!!! warning
24+
Operator-Controller depends on [cert-manager](https://cert-manager.io/). Running the following command
25+
may affect an existing installation of cert-manager and cause cluster instability.
2626

2727
The latest version of Operator Controller can be installed with the following command:
2828

docs/getting-started/olmv1_getting_started.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
The following script will install OLMv1 on a Kubernetes cluster. If you don't have one, you can deploy a Kubernetes cluster with [KIND](https://sigs.k8s.io/kind).
44

5-
> [!CAUTION]
6-
> Operator-Controller depends on [cert-manager](https://cert-manager.io/). Running the following command
7-
> may affect an existing installation of cert-manager and cause cluster instability.
5+
!!! warning
6+
Operator-Controller depends on [cert-manager](https://cert-manager.io/). Running the following command
7+
may affect an existing installation of cert-manager and cause cluster instability.
88

99
The latest version of Operator Controller can be installed with the following command:
1010

@@ -44,7 +44,7 @@ spec:
4444
type: Image
4545
image:
4646
ref: quay.io/operatorhubio/catalog:latest
47-
pollInterval: 10m
47+
pollIntervalMinutes: 10
4848
EOF
4949
```
5050

@@ -78,7 +78,7 @@ and on the extension upgrade process [here](../tutorials/upgrade-extension.md).
7878

7979
```bash
8080
# Update to v0.11.0
81-
kubectl patch clusterextension argocd --type='merge' -p '{"spec": {"source": {"content-management": {"version": "0.11.0"}}}}'
81+
kubectl patch clusterextension argocd --type='merge' -p '{"spec": {"source": {"catalog": {"version": "0.11.0"}}}}'
8282

8383
```
8484

@@ -106,10 +106,10 @@ kubectl delete namespace argocd
106106

107107
```bash
108108
# Delete installer service account cluster roles
109-
kubectl delete clusterrole argocd-installer-clusterrole && kubectl delete clusterrole argocd-rbac-clusterrole
109+
kubectl delete clusterrole argocd-installer-clusterrole && kubectl delete clusterrole argocd-installer-rbac-clusterrole
110110
```
111111

112112
```bash
113113
# Delete installer service account cluster role bindings
114-
kuebctl delete clusterrolebinding argocd-installer-binding && kubectl delete clusterrolebinding argocd-rbac-binding
114+
kubectl delete clusterrolebinding argocd-installer-binding && kubectl delete clusterrolebinding argocd-installer-rbac-binding
115115
```

docs/howto/catalog-queries.md

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,61 +12,51 @@ curl -k https://localhost:8443/catalogs/operatorhubio/api/v1/all | <query>
1212

1313
## Package queries
1414

15-
Available packages in a catalog
16-
:
15+
Available packages in a catalog:
1716
``` terminal
1817
jq -s '.[] | select( .schema == "olm.package")'
1918
```
2019

21-
Packages that support `AllNamespaces` install mode and do not use webhooks
22-
23-
:
20+
Packages that support `AllNamespaces` install mode and do not use webhooks:
2421
``` terminal
2522
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}'
2623
```
2724

28-
Package metadata
29-
:
25+
Package metadata:
3026
``` terminal
3127
jq -s '.[] | select( .schema == "olm.package") | select( .name == "<package_name>")'
3228
```
3329

34-
Catalog blobs in a package
35-
:
30+
Catalog blobs in a package:
3631
``` terminal
3732
jq -s '.[] | select( .package == "<package_name>")'
3833
```
3934

4035
## Channel queries
4136

42-
Channels in a package
43-
:
37+
Channels in a package:
4438
``` terminal
4539
jq -s '.[] | select( .schema == "olm.channel" ) | select( .package == "<package_name>") | .name'
4640
```
4741

48-
Versions in a channel
49-
:
42+
Versions in a channel:
5043
``` terminal
5144
jq -s '.[] | select( .package == "<package_name>" ) | select( .schema == "olm.channel" ) | select( .name == "<channel_name>" ) | .entries | .[] | .name'
5245
```
5346

54-
Latest version in a channel and upgrade path
55-
:
56-
``` terminal
47+
Latest version in a channel and upgrade path:
48+
``` terminal
5749
jq -s '.[] | select( .schema == "olm.channel" ) | select ( .name == "<channel>") | select( .package == "<package_name>")'
5850
```
5951

6052
## Bundle queries
6153

62-
Bundles in a package
63-
:
54+
Bundles in a package:
6455
``` terminal
6556
jq -s '.[] | select( .schema == "olm.bundle" ) | select( .package == "<package_name>") | .name'
6657
```
6758

68-
Bundle dependencies and available APIs
69-
:
59+
Bundle dependencies and available APIs:
7060
``` terminal
7161
jq -s '.[] | select( .schema == "olm.bundle" ) | select ( .name == "<bundle_name>") | select( .package == "<package_name>")'
7262
```

docs/tutorials/add-catalog.md

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,33 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
2929
apiVersion: olm.operatorframework.io/v1alpha1
3030
kind: ClusterCatalog
3131
metadata:
32-
name: operatorhubio
32+
name: <catalog_name>
3333
spec:
3434
source:
3535
type: Image
3636
image:
3737
ref: <catalog_image>
38-
pollInterval: <poll_interval_duration>
38+
pollIntervalMinutes: <poll_interval_duration>
3939
```
4040
4141
`catalog_name`
4242
: Specifies the image reference for the catalog you want to install, such as `quay.io/operatorhubio/catalog:latest`.
4343

4444
`poll_interval_duration`
45-
: Specifies the interval for polling the remote registry for newer image digests.
46-
The default value is `24h`.
47-
Valid units include seconds (`s`), minutes (`m`), and hours (`h`).
48-
To disable polling, set a zero value, such as `0s`.
45+
: Specifies the number of minutes for polling the remote registry for newer image digests.
46+
This field is optional. To disable polling, unset the field.
4947

5048
``` yaml title="Example `operatorhubio.yaml` CR"
5149
apiVersion: olm.operatorframework.io/v1alpha1
5250
kind: ClusterCatalog
5351
metadata:
54-
name: operatorhub
52+
name: operatorhubio
5553
spec:
5654
source:
5755
type: Image
5856
image:
5957
ref: quay.io/operatorhubio/catalog:latest
60-
pollInterval: 10m
58+
pollIntervalMinutes: 10
6159
```
6260
6361
2. Apply the ClusterCatalog CR:
@@ -81,8 +79,8 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
8179
```
8280

8381
``` terminal title="Example output"
84-
NAME LASTUNPACKED AGE
85-
operatorhubio 9m31s 9m55s
82+
NAME LASTUNPACKED SERVING AGE
83+
operatorhubio 18s True 27s
8684
```
8785

8886
* Check the status of your catalog:
@@ -99,40 +97,41 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
9997
API Version: olm.operatorframework.io/v1alpha1
10098
Kind: ClusterCatalog
10199
Metadata:
102-
Creation Timestamp: 2024-10-02T19:51:24Z
103-
Finalizers:
100+
Creation Timestamp: 2024-11-11T13:19:12Z
101+
Finalizers:
104102
olm.operatorframework.io/delete-server-cache
105-
Generation: 1
106-
Resource Version: 33321
107-
UID: 52894532-0646-41a5-8285-c7f48bba49e4
103+
Generation: 1
104+
Resource Version: 2143
105+
UID: 2cebaf11-7a5c-4813-bef3-58ac2e373057
108106
Spec:
109-
Priority: 0
107+
Availability Mode: Available
108+
Priority: 0
110109
Source:
111110
Image:
112-
Poll Interval: 10m0s
113-
Ref: quay.io/operatorhubio/catalog:latest
114-
Type: Image
111+
Poll Interval Minutes: 10
112+
Ref: quay.io/operatorhubio/catalog:latest
113+
Type: Image
115114
Status:
116115
Conditions:
117-
Last Transition Time: 2024-03-12T19:35:34Z
116+
Last Transition Time: 2024-11-11T13:19:21Z
118117
Message: Successfully unpacked and stored content from resolved source
119-
Observed Generation: 2
118+
Observed Generation: 1
120119
Reason: Succeeded
121-
Status: False
120+
Status: True
122121
Type: Progressing
123-
Last Transition Time: 2024-03-12T19:35:34Z
122+
Last Transition Time: 2024-11-11T13:19:21Z
124123
Message: Serving desired content from resolved source
125-
Observed Generation: 2
124+
Observed Generation: 1
126125
Reason: Available
127126
Status: True
128127
Type: Serving
129-
URLs:
130-
Base: https://catalogd-server.olmv1-system.svc/catalogs/operatorhubio
131-
Last Unpacked: 2024-03-12T19:35:34Z
128+
Last Unpacked: 2024-11-11T13:19:21Z
132129
Resolved Source:
133130
Image:
134-
Last Successful Poll Attempt: 2024-03-12T19:35:26Z
135-
Ref: quay.io/operatorhubio/catalog@sha256:dee29aaed76fd1c72b654b9bc8bebc4b48b34fd8d41ece880524dc0c3c1c55ec
136-
Type: Image
137-
Events: <none>
131+
Ref: quay.io/operatorhubio/catalog@sha256:025cb23665449d8974102dda042c2e25bd3cb9138791971748f48d57c90a21d8
132+
Type: Image
133+
Urls:
134+
Base: https://catalogd-service.olmv1-system.svc/catalogs/operatorhubio
135+
Events: <none>
136+
138137
```

0 commit comments

Comments
 (0)