Show warning banner to administrators about upcoming deprecation/removal of support of the Operating System version

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Overview

When the Operating System version that GitLab (using Linux packages) is running on gets near its End-of-Life (EOL) period, display a warning banner to GitLab administrators. This provides proactive notification to system administrators about upcoming OS deprecation and removal of support, complementing existing messaging mechanisms.

Background

With the merge of omnibus-gitlab!8694 (merged), the necessary OS support information will be available to the GitLab Rails project. This data will be provided in a file named supported_os_data.yml located at the Rails root directory.

Definition of Done

  • Detect running OS. We already have ohai in the bundle, which can do this.
  • Fetch EOL information from supported_os_data.yml file.
  • If EOL is more than 6 months away, show no banner in admin page.
  • If EOL is 6 months away, show an orange banner that is dismissable indicating that the OS will be EOL soon, and users should migrate to a newer version to continue receiving GitLab packages.
  • If EOL is 3 months away, show a red banner that is dismissable indicating that the OS will be EOL soon, and users should migrate to a newer version to continue receiving GitLab packages.
  • If EOL is 1 month away, make the banner non-dismissable.
Edited by 🤖 GitLab Bot 🤖