Skip to content

Commit ad7b62a

Browse files
committed
fix(catalogs): update catalog image version cap to 4.22
The catalog image version was capped at 4.21 while waiting for 4.22 catalog images to be available. Now that 4.22 catalog images are ready, update the cap to 4.22. Signed-off-by: Mulham Raee <mulham.raee@redhat.com> Commit-Message-Assisted-by: Claude (via Claude Code)
1 parent 5c01c96 commit ad7b62a

2 files changed

Lines changed: 29 additions & 29 deletions

File tree

support/catalogs/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func computeCatalogImages(releaseVersion func() (*semver.Version, error), imageE
169169
"redhat-operators": "",
170170
}
171171

172-
maxCatalogVersion := semver.Version{Major: 4, Minor: 21}
172+
maxCatalogVersion := semver.Version{Major: 4, Minor: 22}
173173
for catalog := range catalogs {
174174
catalogVersion := *version
175175
// Cap catalog version to the latest known-good catalog images.

support/catalogs/images_test.go

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -140,39 +140,39 @@ func TestComputeCatalogImages(t *testing.T) {
140140
},
141141
},
142142
{
143-
name: "When version is 5.0, it should be capped to 4.21 catalog images",
143+
name: "When version is 5.0, it should be capped to 4.22 catalog images",
144144
releaseVersion: semver.MustParse("5.0.0"),
145145
existingImages: []string{
146-
"registry.redhat.io/redhat/certified-operator-index:v4.21",
147-
"registry.redhat.io/redhat/community-operator-index:v4.21",
148-
"registry.redhat.io/redhat/redhat-marketplace-index:v4.21",
149-
"registry.redhat.io/redhat/redhat-operator-index:v4.21",
146+
"registry.redhat.io/redhat/certified-operator-index:v4.22",
147+
"registry.redhat.io/redhat/community-operator-index:v4.22",
148+
"registry.redhat.io/redhat/redhat-marketplace-index:v4.22",
149+
"registry.redhat.io/redhat/redhat-operator-index:v4.22",
150150
},
151151
expected: map[string]string{
152-
"certified-operators": "registry.redhat.io/redhat/certified-operator-index:v4.21",
153-
"community-operators": "registry.redhat.io/redhat/community-operator-index:v4.21",
154-
"redhat-marketplace": "registry.redhat.io/redhat/redhat-marketplace-index:v4.21",
155-
"redhat-operators": "registry.redhat.io/redhat/redhat-operator-index:v4.21",
152+
"certified-operators": "registry.redhat.io/redhat/certified-operator-index:v4.22",
153+
"community-operators": "registry.redhat.io/redhat/community-operator-index:v4.22",
154+
"redhat-marketplace": "registry.redhat.io/redhat/redhat-marketplace-index:v4.22",
155+
"redhat-operators": "registry.redhat.io/redhat/redhat-operator-index:v4.22",
156156
},
157157
},
158158
{
159-
name: "When version is 5.0 nightly, it should be capped to 4.21 catalog images",
159+
name: "When version is 5.0 nightly, it should be capped to 4.22 catalog images",
160160
releaseVersion: semver.MustParse("5.0.0-0.nightly-multi-2026-04-07-214955"),
161161
existingImages: []string{
162-
"registry.redhat.io/redhat/certified-operator-index:v4.21",
163-
"registry.redhat.io/redhat/community-operator-index:v4.21",
164-
"registry.redhat.io/redhat/redhat-marketplace-index:v4.21",
165-
"registry.redhat.io/redhat/redhat-operator-index:v4.21",
162+
"registry.redhat.io/redhat/certified-operator-index:v4.22",
163+
"registry.redhat.io/redhat/community-operator-index:v4.22",
164+
"registry.redhat.io/redhat/redhat-marketplace-index:v4.22",
165+
"registry.redhat.io/redhat/redhat-operator-index:v4.22",
166166
},
167167
expected: map[string]string{
168-
"certified-operators": "registry.redhat.io/redhat/certified-operator-index:v4.21",
169-
"community-operators": "registry.redhat.io/redhat/community-operator-index:v4.21",
170-
"redhat-marketplace": "registry.redhat.io/redhat/redhat-marketplace-index:v4.21",
171-
"redhat-operators": "registry.redhat.io/redhat/redhat-operator-index:v4.21",
168+
"certified-operators": "registry.redhat.io/redhat/certified-operator-index:v4.22",
169+
"community-operators": "registry.redhat.io/redhat/community-operator-index:v4.22",
170+
"redhat-marketplace": "registry.redhat.io/redhat/redhat-marketplace-index:v4.22",
171+
"redhat-operators": "registry.redhat.io/redhat/redhat-operator-index:v4.22",
172172
},
173173
},
174174
{
175-
name: "When version is 5.0 and 4.21 not available, it should fall back to earlier versions",
175+
name: "When version is 5.0 and 4.22 not available, it should fall back to earlier versions",
176176
releaseVersion: semver.MustParse("5.0.0"),
177177
existingImages: []string{
178178
"registry.redhat.io/redhat/certified-operator-index:v4.19",
@@ -188,19 +188,19 @@ func TestComputeCatalogImages(t *testing.T) {
188188
},
189189
},
190190
{
191-
name: "When version is 4.22, it should be capped to 4.21 catalog images",
191+
name: "When version is 4.22, it should use 4.22 catalog images",
192192
releaseVersion: semver.MustParse("4.22.0"),
193193
existingImages: []string{
194-
"registry.redhat.io/redhat/certified-operator-index:v4.21",
195-
"registry.redhat.io/redhat/community-operator-index:v4.21",
196-
"registry.redhat.io/redhat/redhat-marketplace-index:v4.21",
197-
"registry.redhat.io/redhat/redhat-operator-index:v4.21",
194+
"registry.redhat.io/redhat/certified-operator-index:v4.22",
195+
"registry.redhat.io/redhat/community-operator-index:v4.22",
196+
"registry.redhat.io/redhat/redhat-marketplace-index:v4.22",
197+
"registry.redhat.io/redhat/redhat-operator-index:v4.22",
198198
},
199199
expected: map[string]string{
200-
"certified-operators": "registry.redhat.io/redhat/certified-operator-index:v4.21",
201-
"community-operators": "registry.redhat.io/redhat/community-operator-index:v4.21",
202-
"redhat-marketplace": "registry.redhat.io/redhat/redhat-marketplace-index:v4.21",
203-
"redhat-operators": "registry.redhat.io/redhat/redhat-operator-index:v4.21",
200+
"certified-operators": "registry.redhat.io/redhat/certified-operator-index:v4.22",
201+
"community-operators": "registry.redhat.io/redhat/community-operator-index:v4.22",
202+
"redhat-marketplace": "registry.redhat.io/redhat/redhat-marketplace-index:v4.22",
203+
"redhat-operators": "registry.redhat.io/redhat/redhat-operator-index:v4.22",
204204
},
205205
},
206206
{

0 commit comments

Comments
 (0)