Skip to content

Commit

Permalink
Add missing imagestreams for Postgresql 16 (#553)
Browse files Browse the repository at this point in the history
* Add missing imagestreams for Postgresql 16
* Add workaround for postgresql-16 that is not released yet.
Let's test integration with postgresql-15 that is already released
* Skipping tests because imagestreams does not exist yet
* Fix container name in devel_images file

Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek authored Mar 21, 2024
1 parent af7b627 commit ac721ae
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 0 deletions.
36 changes: 36 additions & 0 deletions imagestreams/postgresql-centos.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@
"type": "Local"
}
},
{
"name": "16-el9",
"annotations": {
"openshift.io/display-name": "PostgreSQL 16 (CentOS Stream 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "16"
},
"from": {
"kind": "DockerImage",
"name": "quay.io/sclorg/postgresql-16-c9s:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "15-el9",
"annotations": {
Expand Down Expand Up @@ -62,6 +80,24 @@
"type": "Local"
}
},
{
"name": "16-el8",
"annotations": {
"openshift.io/display-name": "PostgreSQL 16 (CentOS Stream 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "16"
},
"from": {
"kind": "DockerImage",
"name": "quay.io/sclorg/postgresql-16-c8s:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "15-el8",
"annotations": {
Expand Down
72 changes: 72 additions & 0 deletions imagestreams/postgresql-rhel-aarch64.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,42 @@
"type": "Local"
}
},
{
"name": "16-el9",
"annotations": {
"openshift.io/display-name": "PostgreSQL 16 (RHEL 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "16"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel9/postgresql-16:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "15-el9",
"annotations": {
"openshift.io/display-name": "PostgreSQL 15 (RHEL 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Provides a PostgreSQL 15 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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "15"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel9/postgresql-15:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "13-el9",
"annotations": {
Expand All @@ -44,6 +80,42 @@
"type": "Local"
}
},
{
"name": "16-el8",
"annotations": {
"openshift.io/display-name": "PostgreSQL 16 (RHEL 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "16"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel8/postgresql-16:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "15-el8",
"annotations": {
"openshift.io/display-name": "PostgreSQL 15 (RHEL 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Provides a PostgreSQL 15 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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "15"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel8/postgresql-15:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "13-el8",
"annotations": {
Expand Down
36 changes: 36 additions & 0 deletions imagestreams/postgresql-rhel.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@
"name": "15-el8"
}
},
{
"name": "16-el9",
"annotations": {
"openshift.io/display-name": "PostgreSQL 16 (RHEL 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "16"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel9/postgresql-16:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "15-el9",
"annotations": {
Expand All @@ -41,6 +59,24 @@
"type": "Local"
}
},
{
"name": "16-el8",
"annotations": {
"openshift.io/display-name": "PostgreSQL 16 (RHEL 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"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.",
"iconClass": "icon-postgresql",
"tags": "database,postgresql",
"version": "16"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel8/postgresql-16:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "15-el8",
"annotations": {
Expand Down
18 changes: 18 additions & 0 deletions test/test-lib-postgresql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ function test_postgresql_integration() {
namespace_image="rhscl/postgresql-${VERSION}-rhel7"
else
namespace_image="${OS}/postgresql-${VERSION}"
# Check if the current version is already GA
# This directory is cloned from TMT plan repo 'sclorg-tmt-plans'
local devel_file="/root/sclorg-tmt-plans/devel_images"
if [ -f "${devel_file}" ]; then
if grep -q "${OS}=postgresql-container=${VERSION}" "$devel_file" ; then
echo "This version is currently developed, so skipping this test."
return
fi
fi
fi
TEMPLATES="postgresql-ephemeral-template.json
postgresql-persistent-template.json"
Expand All @@ -42,6 +51,15 @@ function test_postgresql_imagestream() {
elif [ "${OS}" == "rhel9" ]; then
tag="-el9"
fi
# Check if the current version is already GA
# This directory is cloned from TMT plan repo 'sclorg-tmt-plans'
local devel_file="/root/sclorg-tmt-plans/devel_images"
if [ -f "${devel_file}" ]; then
if grep -q "${OS}=postgresql-container=${VERSION}" "$devel_file" ; then
echo "This version is currently developed, so skipping this test."
return
fi
fi
TEMPLATES="postgresql-ephemeral-template.json
postgresql-persistent-template.json"
for template in $TEMPLATES; do
Expand Down

0 comments on commit ac721ae

Please sign in to comment.