Skip to content

Commit 21f550b

Browse files
committed
Add search for operator package versions
1 parent 329b431 commit 21f550b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ The oc-mirror v2 binary will mirror images based on an `ImageSetConfiguration` t
2222
./oc-mirror list operators --catalog registry.redhat.io/redhat/redhat-operator-index:v4.18
2323
```
2424

25-
You can view the [Container Platform Update Graph](https://access.redhat.com/labs/ocpupgradegraph/update_path) and your cluster's OperatorHub to determine specific cluster and operator package target versions to download and update. As a good practice, you should also include the source (current) cluster and operator package versions, so that if pods must be drained prior to upgrading, they will pull from the internal registry.
25+
You can view the [Container Platform Update Graph](https://access.redhat.com/labs/ocpupgradegraph/update_path) and your cluster's OperatorHub to determine specific cluster and operator package target versions to download and update. As a good practice, you should also include the source (current) cluster and operator package versions, so that if pods must be drained prior to upgrading, they will pull from the internal registry. If you are locking operator packages to a specific version, you can run the following command to determine the minVersion and maxVersion to use:
26+
27+
```
28+
./oc-mirror list operators --catalog registry.redhat.io/redhat/redhat-operator-index:v4.18 --package=kubevirt-hyperconverged --channel=stable
29+
```
2630

2731
The OpenShift integrated registry stores images in persistent storage (if configured) in the openshift-image-registry namespace, with references from imagestreams in other namespaces. It follows a `<registry>/<repository>/<image>[:tag] or [@sha256:digest]` format with a restriction of two levels of nesting and thus oc-mirror must use `--max-nested-paths=2`. The registry also assumes the repository already exists as an OpenShift namespace prior to pushing images to it. Thus, the namespaces will need to be created before mirroring. You can also use the [Red Hat Ecosystem Catalog](https://catalog.redhat.com/software/containers/explore) to determine the source registry and repository paths that will need to be mirrored, replacing the repository path with the OpenShift namespaces that will need to be created.
2832

manifests/imagesetconfiguration.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ data:
2222
minVersion: 4.18.9
2323
maxVersion: 4.18.9
2424
operators:
25-
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.18
25+
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
2626
packages:
2727
- name: kubevirt-hyperconverged
28-
minVersion: 4.18.2
29-
maxVersion: 4.18.2
28+
minVersion: 4.17.7
29+
maxVersion: 4.17.7
3030
- name: local-storage-operator
31-
minVersion: 4.18.0-202504151633
32-
maxVersion: 4.18.0-202504151633
31+
minVersion: 4.17.0-202504092035
32+
maxVersion: 4.17.0-202504092035
3333
- name: kubernetes-nmstate-operator
34-
minVersion: 4.18.0-202504160308
35-
maxVersion: 4.18.0-202504160308
34+
minVersion: 4.17.0-202504141105
35+
maxVersion: 4.17.0-202504141105
3636
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.18
3737
packages:
3838
- name: kubevirt-hyperconverged

0 commit comments

Comments
 (0)