-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: adds clarification to imageset reference and examples #555
Changes from 3 commits
add4d7c
bb3b13f
38cb213
6042293
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This config demonstrates how to mirror a full catalog | ||
--- | ||
apiVersion: mirror.openshift.io/v1alpha2 | ||
kind: ImageSetConfiguration | ||
mirror: | ||
operators: | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.10 | ||
full: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,78 @@ | ||
# This config demonstrates how to mirror a single operator. | ||
|
||
# By specifying a minVersion, that version and every version to the | ||
# specified channel's latest (HEAD) version will be mirrored. | ||
|
||
# If a package is specified with no minVersion/maxVersion or channel, each channel's latest | ||
# version in the specified package will be mirrored. | ||
|
||
# If the package is specified with a minVersion and maxVersion, all bundles within that range | ||
# will be mirrored. | ||
# WARNING: Any specified channel information will override this setting. Setting versions by | ||
# package or channel are mutually exclusive. | ||
# IMPORTANT: This is only true if metadata for this package in unestablished. | ||
# Minimum bundle versions are managed in the metadata and the latest differential bundles will be included additively. | ||
apiVersion: mirror.openshift.io/v1alpha2 | ||
kind: ImageSetConfiguration | ||
mirror: | ||
operators: | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.10 | ||
packages: | ||
- name: elasticsearch-operator | ||
--- | ||
# If a package is specified with a channel with no minVersion/maxVersion, only the channel's latest | ||
# version will be mirrored. | ||
|
||
# IMPORTANT: This is only true if metadata for this package in unestablished. | ||
# Minimum bundle versions are managed in the metadata and the latest differential bundles will be included additively. | ||
apiVersion: mirror.openshift.io/v1alpha2 | ||
kind: ImageSetConfiguration | ||
mirror: | ||
operators: | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.10 | ||
packages: | ||
- name: elasticsearch-operator | ||
minVersion: '5.3.2-20' | ||
channels: | ||
- name: 'stable-v0' | ||
--- | ||
# If a package is specified with no minVersion/maxVersion or channel and full is set to true, | ||
# all versions in each channel will be mirrored. | ||
apiVersion: mirror.openshift.io/v1alpha2 | ||
kind: ImageSetConfiguration | ||
mirror: | ||
operators: | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.10 | ||
full: true | ||
packages: | ||
- name: elasticsearch-operator | ||
--- | ||
# If a package is specified with a channel with no minVersion/maxVersion and full is set to true, | ||
# all version in that channel will be mirrored. | ||
apiVersion: mirror.openshift.io/v1alpha2 | ||
kind: ImageSetConfiguration | ||
mirror: | ||
operators: | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.10 | ||
full: true | ||
packages: | ||
- name: elasticsearch-operator | ||
channels: | ||
- name: 'stable-v0' | ||
--- | ||
#minVersion and maxVersion can be set that the channel level OR the package level. If set at the package level, all channels | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can be set at |
||
# containing that version range with be included in the catalog. | ||
|
||
# WARNING: Any specified channel information will override this setting. Setting versions by | ||
# package or channel are mutually exclusive. | ||
|
||
|
||
# By specifying a minVersion, that version and every version to the | ||
# specified channel's latest (HEAD) version will be mirrored. | ||
apiVersion: mirror.openshift.io/v1alpha2 | ||
kind: ImageSetConfiguration | ||
mirror: | ||
operators: | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.10 | ||
packages: | ||
- name: elasticsearch-operator | ||
minVersion: '5.3.2-20' | ||
--- | ||
# If the package is specified with a minVersion and maxVersion, all bundles within that range | ||
# will be mirrored. | ||
|
||
apiVersion: mirror.openshift.io/v1alpha2 | ||
kind: ImageSetConfiguration | ||
mirror: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,25 @@ mirror: | |
architectures: | ||
- "s390x" # Architectures to mirror for the collection of release versions (defaults to amd64) | ||
channels: | ||
- name: stable-4.9 # References latest stable release | ||
- name: stable-4.9 # References the latest stable release | ||
- name: stable-4.7 # Annotation references min and max version. | ||
minVersion: '4.6.13' | ||
maxVersion: '4.7.18' | ||
graph: true # Include Cincinnati upgrade graph image in imageset | ||
graph: true # Include Cincinnati upgrade graph image in imageset (defaults to false) | ||
operators: | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.8 # References entire catalog | ||
full: true # full can be set to pull a full catalog and must be set to filter packages | ||
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.12 # References entire catalog | ||
full: false # full set to false pull the latest version for all package channels with no versions set (default to false) | ||
packages: | ||
- name: elasticsearch-operator | ||
channels: | ||
- name: 'stable-v0' # Mirrors a single channel | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add clarity to comment
|
||
- name: rhacs-operator | ||
minVersion: '3.67.0' | ||
minVersion: '3.67.0' # Mirrors all version from the minimum version to the latest in the package | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add clarity
Consider addition of extra note - not here, but somewhere - that "minmum" and "latest" don't mean semver-style sorting, but rather relate to the graph constructed through 'replaces' and 'skips' in published versions |
||
- name: mtc-operator | ||
channels: | ||
- name: 'latest' | ||
- name: release-1.7 # Mirrors all versions in a single channel from the min version to the max version. | ||
minVersion: '1.7.0' | ||
maxVersion: '1.7.5' | ||
additionalImages: # List of additional images to be included in imageset | ||
- name: registry.redhat.io/ubi8/ubi:latest | ||
blockedImages: # Image to block by name or regular expression | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think repetition in multiple examples is good, but multiple times in same file is excessive imo