Skip to content

Commit 1894a6c

Browse files
authored
remove imagestreams which are not GA (#560)
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 4ab79fe commit 1894a6c

File tree

5 files changed

+15
-114
lines changed

5 files changed

+15
-114
lines changed

imagestreams/imagestreams.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
latest: "15-el9"
1414
distros:
1515
- name: CentOS Stream 8
16-
app_versions: [10, 12, 13, 15, 16]
16+
app_versions: [10, 12, 13, 15]
1717

1818
- name: CentOS Stream 9
19-
app_versions: [13, 15, 16]
19+
app_versions: [13, 15]
2020

2121
- filename: postgresql-rhel.json
2222
latest: "15-el8"
@@ -25,16 +25,16 @@
2525
app_versions: [10, 12, 13]
2626

2727
- name: RHEL 8
28-
app_versions: [10, 12, 13, 15, 16]
28+
app_versions: [10, 12, 13, 15]
2929

3030
- name: RHEL 9
31-
app_versions: [13, 15, 16]
31+
app_versions: [13, 15]
3232

3333
- filename: postgresql-rhel-aarch64.json
3434
latest: "13-el8"
3535
distros:
3636
- name: RHEL 8
37-
app_versions: [10, 12, 13, 15, 16]
37+
app_versions: [10, 12, 13, 15]
3838

3939
- name: RHEL 9
40-
app_versions: [13, 15, 16]
40+
app_versions: [13, 15]

imagestreams/postgresql-centos.json

-36
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,6 @@
8181
"type": "Local"
8282
}
8383
},
84-
{
85-
"name": "16-el8",
86-
"annotations": {
87-
"openshift.io/display-name": "PostgreSQL 16 (CentOS Stream 8)",
88-
"openshift.io/provider-display-name": "Red Hat, Inc.",
89-
"description": "Provides a PostgreSQL 16 database on CentOS Stream 8. For more information about using this database image, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/README.md.",
90-
"iconClass": "icon-postgresql",
91-
"tags": "database,postgresql",
92-
"version": "16"
93-
},
94-
"from": {
95-
"kind": "DockerImage",
96-
"name": "quay.io/sclorg/postgresql-16-c8s:latest"
97-
},
98-
"referencePolicy": {
99-
"type": "Local"
100-
}
101-
},
10284
{
10385
"name": "13-el9",
10486
"annotations": {
@@ -135,24 +117,6 @@
135117
"type": "Local"
136118
}
137119
},
138-
{
139-
"name": "16-el9",
140-
"annotations": {
141-
"openshift.io/display-name": "PostgreSQL 16 (CentOS Stream 9)",
142-
"openshift.io/provider-display-name": "Red Hat, Inc.",
143-
"description": "Provides a PostgreSQL 16 database on CentOS Stream 9. For more information about using this database image, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/README.md.",
144-
"iconClass": "icon-postgresql",
145-
"tags": "database,postgresql",
146-
"version": "16"
147-
},
148-
"from": {
149-
"kind": "DockerImage",
150-
"name": "quay.io/sclorg/postgresql-16-c9s:latest"
151-
},
152-
"referencePolicy": {
153-
"type": "Local"
154-
}
155-
},
156120
{
157121
"name": "latest",
158122
"annotations": {

imagestreams/postgresql-rhel-aarch64.json

-36
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,6 @@
8181
"type": "Local"
8282
}
8383
},
84-
{
85-
"name": "16-el8",
86-
"annotations": {
87-
"openshift.io/display-name": "PostgreSQL 16 (RHEL 8)",
88-
"openshift.io/provider-display-name": "Red Hat, Inc.",
89-
"description": "Provides a PostgreSQL 16 database on RHEL 8. For more information about using this database image, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/README.md.",
90-
"iconClass": "icon-postgresql",
91-
"tags": "database,postgresql",
92-
"version": "16"
93-
},
94-
"from": {
95-
"kind": "DockerImage",
96-
"name": "registry.redhat.io/rhel8/postgresql-16:latest"
97-
},
98-
"referencePolicy": {
99-
"type": "Local"
100-
}
101-
},
10284
{
10385
"name": "13-el9",
10486
"annotations": {
@@ -135,24 +117,6 @@
135117
"type": "Local"
136118
}
137119
},
138-
{
139-
"name": "16-el9",
140-
"annotations": {
141-
"openshift.io/display-name": "PostgreSQL 16 (RHEL 9)",
142-
"openshift.io/provider-display-name": "Red Hat, Inc.",
143-
"description": "Provides a PostgreSQL 16 database on RHEL 9. For more information about using this database image, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/README.md.",
144-
"iconClass": "icon-postgresql",
145-
"tags": "database,postgresql",
146-
"version": "16"
147-
},
148-
"from": {
149-
"kind": "DockerImage",
150-
"name": "registry.redhat.io/rhel9/postgresql-16:latest"
151-
},
152-
"referencePolicy": {
153-
"type": "Local"
154-
}
155-
},
156120
{
157121
"name": "latest",
158122
"annotations": {

imagestreams/postgresql-rhel.json

-36
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,6 @@
135135
"type": "Local"
136136
}
137137
},
138-
{
139-
"name": "16-el8",
140-
"annotations": {
141-
"openshift.io/display-name": "PostgreSQL 16 (RHEL 8)",
142-
"openshift.io/provider-display-name": "Red Hat, Inc.",
143-
"description": "Provides a PostgreSQL 16 database on RHEL 8. For more information about using this database image, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/README.md.",
144-
"iconClass": "icon-postgresql",
145-
"tags": "database,postgresql",
146-
"version": "16"
147-
},
148-
"from": {
149-
"kind": "DockerImage",
150-
"name": "registry.redhat.io/rhel8/postgresql-16:latest"
151-
},
152-
"referencePolicy": {
153-
"type": "Local"
154-
}
155-
},
156138
{
157139
"name": "13-el9",
158140
"annotations": {
@@ -189,24 +171,6 @@
189171
"type": "Local"
190172
}
191173
},
192-
{
193-
"name": "16-el9",
194-
"annotations": {
195-
"openshift.io/display-name": "PostgreSQL 16 (RHEL 9)",
196-
"openshift.io/provider-display-name": "Red Hat, Inc.",
197-
"description": "Provides a PostgreSQL 16 database on RHEL 9. For more information about using this database image, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/README.md.",
198-
"iconClass": "icon-postgresql",
199-
"tags": "database,postgresql",
200-
"version": "16"
201-
},
202-
"from": {
203-
"kind": "DockerImage",
204-
"name": "registry.redhat.io/rhel9/postgresql-16:latest"
205-
},
206-
"referencePolicy": {
207-
"type": "Local"
208-
}
209-
},
210174
{
211175
"name": "latest",
212176
"annotations": {

test/test-lib-postgresql.sh

+9
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ function test_postgresql_imagestream() {
6969

7070

7171
function run_latest_imagestreams_test() {
72+
# Check if the current version is already GA
73+
# This directory is cloned from TMT plan repo 'sclorg-tmt-plans'
74+
local devel_file="/root/sclorg-tmt-plans/devel_images"
75+
if [ -f "${devel_file}" ]; then
76+
if grep -q "${OS}=postgresql-container=${VERSION}" "$devel_file" ; then
77+
echo "This version is currently developed, so skipping this test."
78+
return
79+
fi
80+
fi
7281
local result=1
7382
# Switch to root directory of a container
7483
echo "Testing the latest version in imagestreams"

0 commit comments

Comments
 (0)