-
Notifications
You must be signed in to change notification settings - Fork 328
Add RHEL10 imagestreams #744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5bcfef3
abcbce8
c668bb2
ebae386
4f3123a
edef67d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,16 +40,14 @@ function ct_pull_or_import_postgresql() { | |
|
|
||
| # Check the imagestream | ||
| function test_python_imagestream() { | ||
| local tag="-ubi7" | ||
| if [ "${OS}" == "rhel8" ]; then | ||
| tag="-ubi8" | ||
| elif [ "${OS}" == "rhel9" ]; then | ||
| local tag="-ubi8" | ||
| if [ "${OS}" == "rhel9" ]; then | ||
| tag="-ubi9" | ||
| elif [ "${OS}" == "rhel10" ]; then | ||
| tag="-ubi10" | ||
| fi | ||
| if [[ "${VERSION}" == *"minimal"* ]]; then | ||
| VERSION=$(echo "${VERSION}" | cut -d "-" -f 1) | ||
| fi | ||
| if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]]; then | ||
| # On RHEL10 we have only 3.12-minimal image | ||
| if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]] && [[ "${VERSION}" == "3.12-minimal" ]]; then | ||
| branch="4.2.x" | ||
| postgresql_image="quay.io/sclorg/postgresql-12-c8s|postgresql:12" | ||
| postgresql_version="12" | ||
|
|
@@ -62,7 +60,7 @@ function test_python_imagestream() { | |
| django-postgresql.json \ | ||
| django-postgresql-persistent.json" | ||
| for template in $TEMPLATES; do | ||
| ct_os_test_image_stream_quickstart "${THISDIR}/imagestreams/python-${OS%[0-9]*}.json" \ | ||
| ct_os_test_image_stream_quickstart "${THISDIR}/imagestreams/python-${OS//[0-9]/}.json" \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand this change, could you please explain?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, in case OS=rhel8 or rhel9, then the expression ${OS%[0-9]*} converts to rhel and result file is python-rhel.json, that exists.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aach, I see. |
||
| "https://raw.githubusercontent.com/sclorg/django-ex/${branch}/openshift/templates/${template}" \ | ||
| "${IMAGE_NAME}" \ | ||
| 'python' \ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.