-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
we should adapt the 'version' field in the wizard to resolve the default version by available channels.
to do that, we will choose default versions from the available set of versions which have a 'stable-*' channel, and pick the latest OCP version.
this can be done once OCM-20940 is implemented and after GA.
implementation pointers
we will probably have to adapt the value selection inside a use-effect in the version-select components. this effect resolves the default version based on use-case.
for ROSA:
const defaultRosaVersion = versions.find(
(version) => isValidRosaVersion(version) && version.channel_group === targetChannelGroup,
);
this predicate will have to be changed to:
(version) => isValidRosaVersion(version) && (isYStreamChannelEnabled || version.channel_group === targetChannelGroup),
for ROSA HCP:
const defaultHypershiftVersion =
isHypershiftSelected &&
versions.find(
(version) =>
version.hosted_control_plane_enabled && version.channel_group === targetChannelGroup,
);
this predicate will have to be changed to:
version.hosted_control_plane_enabled &&
(isYStreamChannelEnabled || version.channel_group === targetChannelGroup),