add field upgrade_available on gitlab version API
Proposal
Hello, it would be great to know if the current gitlab instance version have available upgrade in /version API.
the motivation is to have the same level of information that the version status in GUI, but in well formated and using official gitlab rest API.
We are using it to monitor and alert gitlab upgrade, and send slack message when upgrade is available.
today we are using this link https://version.gitlab.com/check.svg?gitlab_info={{base64version}} injecting the version from /version api and parse html return (the same way as the GUI).
this is not a nice and robust solution.
so instead of this weird DYI, my proposal is to return an extra boolean field 'upgrade_available' in the /version API. Do the same request but in official channel and well supported gitlab code.
expected behavior
GET /version
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/version"
Example response:
{
"version": "8.13.0-pre",
"revision": "4e963fe",
"upgrade_available": true
}
Thanks for your help
regards Jonathan CHARDON