Skip to content

[PCUI] Show supported OS options based on ParallelCluster version#471

Merged
hehe7318 merged 2 commits into
aws:mainfrom
hehe7318:wip/support-OS-base-on-version
Apr 17, 2026
Merged

[PCUI] Show supported OS options based on ParallelCluster version#471
hehe7318 merged 2 commits into
aws:mainfrom
hehe7318:wip/support-OS-base-on-version

Conversation

@hehe7318
Copy link
Copy Markdown
Contributor

@hehe7318 hehe7318 commented Apr 17, 2026

Description

The PR is solving this issue: #419

Gate OS options in the cluster creation wizard behind version-aware feature flags so only the OSes supported by the selected ParallelCluster version are shown. Old OSes (centos7, ubuntu2004) are kept but hidden for newer versions via the existing deprecation mechanism, and new OSes (alinux2023, ubuntu2404, rocky8, rocky9) are added with their correct introduction versions.

Changes

Version-to-OS mapping:

  • 3.0: alinux2, centos7, ubuntu1804, ubuntu2004
  • 3.6: + rhel8
  • 3.7: + ubuntu2204, - ubuntu1804
  • 3.8: + rocky8
  • 3.9: + rhel9, rocky9
  • 3.10: + alinux2023, - centos7
  • 3.13: + ubuntu2404
  • 3.14: - ubuntu2004

How Has This Been Tested?

Manually deployed PCUI stack, all changes worked as expected.

References

PR Quality Checklist

  • I added tests to new or existing code
  • I removed hardcoded strings and used react-i18next library (useTranslation hook and/or Trans component), see an example here
  • I made sure no sensitive info gets logged at any time in the codebase (see here) (e.g. no user info or details, no stacktraces, etc.)
  • I made sure that any GitHub issue solved by this PR is correctly linked
  • I checked that infrastructure/update_infrastructure.sh runs without any error
  • I checked that npm run build builds without any error
  • I checked that clusters are listed correctly
  • I checked that a new cluster can be created (config is produced and dry run passes)
  • I checked that login and logout work as expected

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Gate OS options in the cluster creation wizard behind version-aware feature
flags so only the OSes supported by the selected ParallelCluster version are
shown. Old OSes (centos7, ubuntu2004) are kept but hidden for newer versions
via the existing deprecation mechanism, and new OSes (alinux2023, ubuntu2404,
rocky8, rocky9) are added with their correct introduction versions.

Version-to-OS mapping:
- 3.0: alinux2, centos7, ubuntu1804, ubuntu2004
- 3.6: + rhel8
- 3.7: + ubuntu2204, - ubuntu1804
- 3.8: + rocky8
- 3.9: + rhel9, rocky9
- 3.10: + alinux2023, - centos7
- 3.13: + ubuntu2404
- 3.14: - ubuntu2004
@hehe7318 hehe7318 requested a review from gmarciani April 17, 2026 18:06
Comment thread frontend/src/feature-flags/__tests__/FeatureFlagsProvider.test.ts
@gmarciani
Copy link
Copy Markdown
Collaborator

This change is addressing the issue #419. Please report it in the PR description.

@hehe7318
Copy link
Copy Markdown
Contributor Author

This change is addressing the issue #419. Please report it in the PR description.

Added!

@hehe7318 hehe7318 merged commit e9bec8b into aws:main Apr 17, 2026
2 checks passed
hehe7318 added a commit to hehe7318/aws-parallelcluster-ui that referenced this pull request Apr 21, 2026
…s#471)

Gate OS options in the cluster creation wizard behind version-aware feature
flags so only the OSes supported by the selected ParallelCluster version are
shown. Old OSes (centos7, ubuntu2004) are kept but hidden for newer versions
via the existing deprecation mechanism, and new OSes (alinux2023, ubuntu2404,
rocky8, rocky9) are added with their correct introduction versions.

Version-to-OS mapping:
- 3.0: alinux2, centos7, ubuntu1804, ubuntu2004
- 3.6: + rhel8
- 3.7: + ubuntu2204, - ubuntu1804
- 3.8: + rocky8
- 3.9: + rhel9, rocky9
- 3.10: + alinux2023, - centos7
- 3.13: + ubuntu2404
- 3.14: - ubuntu2004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants