src/constants: add rhel 10 to releases

This commit is contained in:
Sanne Raymaekers 2025-05-14 09:53:23 +02:00 committed by Lucas Garfield
parent 46e50a9dca
commit ef2050a705
3 changed files with 13 additions and 0 deletions

View file

@ -19,6 +19,9 @@ import {
RHEL_9_FULL_SUPPORT,
RHEL_9_MAINTENANCE_SUPPORT,
RHEL_10_BETA,
RHEL_10,
RHEL_10_FULL_SUPPORT,
RHEL_10_MAINTENANCE_SUPPORT,
ON_PREM_RELEASES,
FEDORA_RELEASES,
} from '../../../../constants';
@ -94,6 +97,11 @@ const ReleaseSelect = () => {
maintenanceSupportEnd = toMonthAndYear(RHEL_9_MAINTENANCE_SUPPORT[1]);
}
if (key === RHEL_10) {
fullSupportEnd = toMonthAndYear(RHEL_10_FULL_SUPPORT[1]);
maintenanceSupportEnd = toMonthAndYear(RHEL_10_MAINTENANCE_SUPPORT[1]);
}
if (isRhel(key)) {
return `Full support ends: ${fullSupportEnd} | Maintenance support ends: ${maintenanceSupportEnd}`;
}

View file

@ -28,6 +28,8 @@ const Release = ({ release }: ReleaseProps) => {
'rhel-93': 'RHEL 9.3',
'rhel-94': 'RHEL 9.4',
'rhel-95': 'RHEL 9.5',
'rhel-10': 'RHEL 10',
'rhel-10.0': 'RHEL 10.0',
'rhel-10-nightly': 'RHEL 10',
'rhel-10.0-nightly': 'RHEL 10',
'rhel-10.1-nightly': 'RHEL 10',

View file

@ -83,6 +83,7 @@ export const UNIT_GIB = 1024 ** 3;
export const RELEASES = new Map([
[RHEL_9, 'Red Hat Enterprise Linux (RHEL) 9'],
[RHEL_8, 'Red Hat Enterprise Linux (RHEL) 8'],
[RHEL_10, 'Red Hat Enterprise Linux (RHEL) 10'],
[RHEL_9_BETA, 'Red Hat Enterprise Linux (RHEL) 9 Beta'],
[RHEL_10_BETA, 'Red Hat Enterprise Linux (RHEL) 10 Beta'],
[CENTOS_9, 'CentOS Stream 9'],
@ -102,8 +103,10 @@ export const FEDORA_RELEASES = new Map([
[CENTOS_9, 'CentOS Stream 9'],
]);
export const RHEL_10_FULL_SUPPORT = ['2025-05-13', '2030-05-31'];
export const RHEL_9_FULL_SUPPORT = ['2022-05-18', '2027-05-31'];
export const RHEL_8_FULL_SUPPORT = ['2019-05-07', '2024-05-31'];
export const RHEL_10_MAINTENANCE_SUPPORT = ['2030-05-31', '2035-05-31'];
export const RHEL_9_MAINTENANCE_SUPPORT = ['2027-05-31', '2032-05-31'];
export const RHEL_8_MAINTENANCE_SUPPORT = ['2024-05-31', '2029-05-31'];