Skip to content

Commit 01c0f0b

Browse files
Fix follow-up for bumping catalogd to v0.36.0: Replace pollInterval with pollIntervalMinutes in ClusterCatalog spec and update documentation references
In #1434, the API was updated to use pollIntervalMinutes instead of pollInterval. This commit ensures that all references to pollInterval are correctly replaced with pollIntervalMinutes across the ClusterCatalog spec and relevant documentation. See: https://github.com/operator-framework/operator-controller/pull/1434/files#diff-93b46b0715181c9cf397eed60862261b7839ff721599fcc393a393b9edea610bR57
1 parent aaa0e00 commit 01c0f0b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
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/getting-started/olmv1_getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

docs/tutorials/add-catalog.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
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 interval in minutes for polling the remote registry for new image content.
46+
`pollIntervalMinutes` is optional and only accepts values in minutes.
47+
It cannot be set when the image reference is digest-based.
48+
To disable polling, omit this field.
4949

5050
``` yaml title="Example `operatorhubio.yaml` CR"
5151
apiVersion: olm.operatorframework.io/v1alpha1
@@ -57,7 +57,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
5757
type: Image
5858
image:
5959
ref: quay.io/operatorhubio/catalog:latest
60-
pollInterval: 10m
60+
pollIntervalMinutes: 10
6161
```
6262
6363
2. Apply the ClusterCatalog CR:

hack/test/pre-upgrade-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
type: Image
3030
image:
3131
ref: ${TEST_CATALOG_IMG}
32-
pollInterval: 24h
32+
pollIntervalMinutes: 1440
3333
EOF
3434

3535
kubectl apply -f - <<EOF

0 commit comments

Comments
 (0)