Skip to content

Commit

Permalink
remove Nginx-1.24 imagestream till GA (#294)
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek authored Apr 3, 2024
1 parent d57ef69 commit 813f3d5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 135 deletions.
18 changes: 9 additions & 9 deletions imagestreams/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@
https://github.com/sclorg/nginx-container/blob/master/APP_VERSION/README.md.
imagestream_files:
- filename: nginx-centos.json
latest: "1.24-ubi8"
latest: "1.22-ubi8"
distros:
- name: UBI 7
app_versions: ["1.20"]

- name: UBI 8
app_versions: ["1.22", "1.24"]
app_versions: ["1.22"]

- name: UBI 9
app_versions: ["1.20", "1.22", "1.24"]
app_versions: ["1.20", "1.22"]

- filename: nginx-rhel.json
latest: "1.24-ubi8"
latest: "1.22-ubi8"
distros:
- name: UBI 7
app_versions: ["1.20"]

- name: UBI 8
app_versions: ["1.22", "1.24"]
app_versions: ["1.22"]

- name: UBI 9
app_versions: ["1.20", "1.22", "1.24"]
app_versions: ["1.20", "1.22"]

- filename: nginx-rhel-aarch64.json
latest: "1.24-ubi8"
latest: "1.22-ubi8"
distros:
- name: UBI 8
app_versions: ["1.22", "1.24"]
app_versions: ["1.22"]

- name: UBI 9
app_versions: ["1.20", "1.22", "1.24"]
app_versions: ["1.20", "1.22"]
46 changes: 4 additions & 42 deletions imagestreams/nginx-centos.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,6 @@
"type": "Local"
}
},
{
"name": "1.24-ubi8",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/ubi8/nginx-124:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "1.20-ubi9",
"annotations": {
Expand Down Expand Up @@ -104,39 +85,20 @@
"type": "Local"
}
},
{
"name": "1.24-ubi9",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/ubi9/nginx-124:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "latest",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (Latest)",
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.22 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.22/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"version": "1.22",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "1.24-ubi8"
"name": "1.22-ubi8"
},
"referencePolicy": {
"type": "Local"
Expand Down
46 changes: 4 additions & 42 deletions imagestreams/nginx-rhel-aarch64.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,6 @@
"type": "Local"
}
},
{
"name": "1.24-ubi8",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi8/nginx-124:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "1.20-ubi9",
"annotations": {
Expand Down Expand Up @@ -85,39 +66,20 @@
"type": "Local"
}
},
{
"name": "1.24-ubi9",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi9/nginx-124:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "latest",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (Latest)",
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.22 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.22/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"version": "1.22",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "1.24-ubi8"
"name": "1.22-ubi8"
},
"referencePolicy": {
"type": "Local"
Expand Down
46 changes: 4 additions & 42 deletions imagestreams/nginx-rhel.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,6 @@
"type": "Local"
}
},
{
"name": "1.24-ubi8",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi8/nginx-124:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "1.20-ubi9",
"annotations": {
Expand Down Expand Up @@ -104,39 +85,20 @@
"type": "Local"
}
},
{
"name": "1.24-ubi9",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi9/nginx-124:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "latest",
"annotations": {
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.24 (Latest)",
"openshift.io/display-name": "Nginx HTTP server and a reverse proxy 1.22 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.24/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"description": "Build and serve static content via Nginx HTTP Server and a reverse proxy (nginx) on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.22/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-nginx",
"tags": "builder,nginx",
"version": "1.24",
"version": "1.22",
"sampleRepo": "https://github.com/sclorg/nginx-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "1.24-ubi8"
"name": "1.22-ubi8"
},
"referencePolicy": {
"type": "Local"
Expand Down
9 changes: 9 additions & 0 deletions test/test-lib-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ function test_latest_imagestreams() {
echo "Do not check 'micro' imagestreams. Only main versions."
return 0
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}=nginx-container=${VERSION}" "$devel_file" ; then
echo "This version is currently developed, so skipping this test."
return
fi
fi
# Switch to root directory of a container
echo "Testing the latest version in imagestreams"
pushd "${THISDIR}/../.." >/dev/null || return 1
Expand Down

0 comments on commit 813f3d5

Please sign in to comment.