Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-4193

[phase 2] day 1 / choose default version in wizard based on available channels

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      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),
      

      references

              Unassigned Unassigned
              emalka@redhat.com Lyn M
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: