This application shows current available versions in a specified channel (stable, fast or candidate). It can be run either as a command-line script or as a Flask API.
Make sure you have Python installed on your machine.
python app.py --channel <channel> --version <version>
Replace with either 'fast', 'stable', or 'candidate', and with the desired OpenShift version (e.g., '4.14', '4.12', etc.).
Make sure you have Python and Flask installed on your machine.
python app.py --api
The Flask app will run on http://127.0.0.1:5000. You can access the OpenShift version information API using the following endpoint: http://127.0.0.1:5000/api/upgrades_info?channel=&version=
Replace with either 'fast', 'stable', or 'candidate', and with the desired OpenShift version (e.g., '4.14', '4.12', etc.).
Make sure you have Docker installed on your machine.
docker build -t openshift-channel-app .
Run as Command-Line Script
docker run openshift-channel-app --channel <channel> --version <version>
Run as Flask API
docker run -p 5000:5000 openshift-channel-app --api
Access the API at: http://127.0.0.1:5000/api/upgrades_info?channel=&version=
Replace with either 'fast', 'stable', or 'candidate', and with the desired OpenShift version (e.g., '4.14', '4.12', etc.).
docker run openshift-channel-app --channel fast --version 4.14
This command will display the available versions for the specified channel.