Skip to content

Commit

Permalink
Remove version 10 from GitHub Actions, README's
Browse files Browse the repository at this point in the history
templates and imagestreams

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Aug 13, 2024
1 parent 6c685c3 commit 4e09055
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ "10", "11", "12", "13", "14", "15", "16" ]
version: [ "11", "12", "13", "14", "15", "16" ]
os_test: [ "fedora", "rhel8", "rhel9", "c9s" ]
test_case: [ "container" ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openshift-pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ "10", "12", "13", "14", "15", "16" ]
version: [ "12", "13", "14", "15", "16" ]
os_test: [ "rhel8", "rhel9"]
test_case: [ "openshift-pytest" ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openshift-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ "10", "11", "12", "13", "15", "16" ]
version: [ "11", "12", "13", "15", "16" ]
os_test: [ "rhel8", "rhel9"]
test_case: [ "openshift-4" ]
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Variables are documented in common/build.sh.
BASE_IMAGE_NAME = postgresql
VERSIONS = 10 12 13 14 15 16
VERSIONS = 12 13 14 15 16
OPENSHIFT_NAMESPACES = 9.2
NOT_RELEASED_VERSIONS =

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ For learning more information about concepts used in these container images, see

PostgreSQL versions currently supported are:

- [postgresql-10](https://github.com/sclorg/postgresql-container/tree/master/10)
- [postgresql-12](https://github.com/sclorg/postgresql-container/tree/master/12)
- [postgresql-13](https://github.com/sclorg/postgresql-container/tree/master/13)
- [postgresql-14](https://github.com/sclorg/postgresql-container/tree/master/14)
Expand Down Expand Up @@ -99,7 +98,6 @@ To contribute, please follow these steps:
For detailed information on the usage of specific PostgreSQL Dockerfiles, please refer to the corresponding usage documentation:
- [PostgreSQL 10 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/10)
- [PostgreSQL 12 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/12)
- [PostgreSQL 13 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/13)
- [PostgreSQL 14 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/14)
Expand Down
4 changes: 2 additions & 2 deletions examples/postgresql-ephemeral-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@
{
"name": "POSTGRESQL_VERSION",
"displayName": "Version of PostgreSQL Image",
"description": "Version of PostgreSQL image to be used (10-el7, 10-el8, or latest).",
"value": "10-el8",
"description": "Version of PostgreSQL image to be used (13-el8, 15-el8, or latest).",
"value": "15-el8",
"required": true
}
]
Expand Down
4 changes: 2 additions & 2 deletions examples/postgresql-persistent-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@
{
"name": "POSTGRESQL_VERSION",
"displayName": "Version of PostgreSQL Image",
"description": "Version of PostgreSQL image to be used (10-el7, 10-el8, or latest).",
"value": "10-el8",
"description": "Version of PostgreSQL image to be used (13-el8, 15-el8, or latest).",
"value": "15-el8",
"required": true
}
]
Expand Down
4 changes: 2 additions & 2 deletions imagestreams/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
latest: "16-el9"
distros:
- name: RHEL 8
app_versions: [10, 12, 13, 15, 16]
app_versions: [12, 13, 15, 16]

- name: RHEL 9
app_versions: [13, 15, 16]
Expand All @@ -28,7 +28,7 @@
latest: "16-el9"
distros:
- name: RHEL 8
app_versions: [10, 12, 13, 15, 16]
app_versions: [12, 13, 15, 16]

- name: RHEL 9
app_versions: [13, 15, 16]
18 changes: 0 additions & 18 deletions imagestreams/postgresql-rhel-aarch64.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
},
"spec": {
"tags": [
{
"name": "10-el8",
"annotations": {
"openshift.io/display-name": "PostgreSQL 10 (RHEL 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Provides a PostgreSQL 10 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": "10"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel8/postgresql-10:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "12-el8",
"annotations": {
Expand Down
18 changes: 0 additions & 18 deletions imagestreams/postgresql-rhel.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
},
"spec": {
"tags": [
{
"name": "10-el8",
"annotations": {
"openshift.io/display-name": "PostgreSQL 10 (RHEL 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Provides a PostgreSQL 10 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": "10"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/rhel8/postgresql-10:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "12-el8",
"annotations": {
Expand Down
12 changes: 0 additions & 12 deletions specs/multispec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ specs:
{ yum -y module enable postgresql:{{ spec.version }} || :; } && \
version:
"10":
version: "10"
prev_version: "9.6"
short: "10"
prev_short: "96"
common_image_name: "{{ spec.org }}/postgresql-10-{{ spec.prod }}"
rhel_image_name: "rhel8/postgresql-{{ spec.short }}"
latest_fedora: "f34"

"12":
version: "12"
prev_version: "10"
Expand Down Expand Up @@ -115,9 +106,6 @@ specs:

matrix:
include:
- version: "10"
distros:
- rhel-8-x86_64
- version: "12"
distros:
- rhel-8-x86_64
Expand Down
9 changes: 2 additions & 7 deletions test/run_test
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ run_upgrade_test ()
{
local ret=0

local upgrade_path="none 9.2 9.4 9.5 9.6 10 12 13 none" prev= act=
local upgrade_path="none 12 13 15 16 none" prev= act=
for act in $upgrade_path; do
if test "$act" = $VERSION; then
break
Expand All @@ -711,12 +711,7 @@ run_migration_test ()
[ "${OS}" == "fedora" ] && return 0

local from_version
# Only test a subset of the migration path on non-intel hosts
if [ "$(uname -m)" == "x86_64" ]; then
local upgrade_path="9.2 9.4 9.5 9.6 10 12 13 15"
else
local upgrade_path="10 12 13 15"
fi
local upgrade_path="12 13 15 16"

for from_version in $upgrade_path; do
# Do not test migration from $VERSION:remote to $VERSION:local
Expand Down
2 changes: 2 additions & 0 deletions test/run_upgrade_test
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ assert_upgrade_succeeds ()
info "Upgrading to $upgrade_to"
UPGRADE_IMAGE=$(get_image_id "$upgrade_to")
run_server "$DATADIR" "$UPGRADE_IMAGE" "-e POSTGRESQL_UPGRADE=$1"
docker logs "$CID"
wait_for_postgres "$CID"
eval "data_${dataspec}_check"
debug "the upgrading container of version '$upgrade_to' responded"
docker stop "$CID" >/dev/null
docker rm -f "$CID" >/dev/null

run_server "$DATADIR" "$UPGRADE_IMAGE"
docker logs "$CID"
wait_for_postgres "$CID"
eval "data_${dataspec}_check"
debug "restarted server of version '$upgrade_to' responded"
Expand Down

0 comments on commit 4e09055

Please sign in to comment.