Skip to content

Commit 53ccd60

Browse files
committed
HMS-5923: add support for rhel10
1 parent 8292b24 commit 53ccd60

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/Pages/Templates/TemplatesTable/components/AddTemplate/AddTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const AddTemplateBase = () => {
143143
</WizardStep>,
144144
<WizardStep
145145
isDisabled={checkIfCurrentStepValid(2)}
146-
name='Custom Repositories'
146+
name='Custom repositories'
147147
id='custom_repositories'
148148
key='custom_repositories_key'
149149
footer={{ ...sharedFooterProps, isNextDisabled: checkIfCurrentStepValid(3) }}

src/Pages/Templates/TemplatesTable/components/AddTemplate/steps/DefineContentStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function DefineContentStep() {
4545
.map(({ label, name }) => ({ value: label, children: name }));
4646

4747
const allowedDistributionVersions = distribution_versions
48-
.filter(({ label }) => ['8', '9'].includes(label))
48+
.filter(({ label }) => ['8', '9', '10'].includes(label))
4949
.map(({ label, name }) => ({ value: label, children: name }));
5050

5151
return (

src/Pages/Templates/TemplatesTable/components/templateHelpers.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ export const hardcodeRedHatReposByArchAndVersion = (
1616
'https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os',
1717
'https://cdn.redhat.com/content/dist/rhel9/9/x86_64/baseos/os',
1818
];
19+
case arch === 'x86_64' && version === '10':
20+
return [
21+
'https://cdn.redhat.com/content/beta/rhel10/10/x86_64/appstream/os',
22+
'https://cdn.redhat.com/content/beta/rhel10/10/x86_64/baseos/os',
23+
];
1924
case arch === 'aarch64' && version === '8':
2025
return [
2126
'https://cdn.redhat.com/content/dist/rhel8/8/aarch64/appstream/os',
@@ -26,6 +31,11 @@ export const hardcodeRedHatReposByArchAndVersion = (
2631
'https://cdn.redhat.com/content/dist/rhel9/9/aarch64/appstream/os',
2732
'https://cdn.redhat.com/content/dist/rhel9/9/aarch64/baseos/os',
2833
];
34+
case arch === 'aarch64' && version === '10':
35+
return [
36+
'https://cdn.redhat.com/content/beta/rhel10/10/aarch64/appstream/os',
37+
'https://cdn.redhat.com/content/beta/rhel10/10/aarch64/baseos/os',
38+
];
2939

3040
default:
3141
return;

0 commit comments

Comments
 (0)