@openshift-assisted/ui-lib 2.14.3-cim → 2.14.5-cim

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts +4 -2
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  4. package/build/@types/cim/components/Hypershift/types.d.ts +1 -1
  5. package/build/@types/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.d.ts +7 -0
  6. package/build/@types/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.d.ts.map +1 -0
  7. package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts +2 -1
  8. package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts.map +1 -1
  9. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  10. package/build/@types/cim/components/helpers/versions.d.ts +2 -2
  11. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  12. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +2 -2
  13. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  14. package/build/@types/common/components/ui/{OpenshiftSelectWithSearch.d.ts → OpenShiftSelectWithSearch.d.ts} +3 -3
  15. package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts.map +1 -0
  16. package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts +2 -2
  17. package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts.map +1 -1
  18. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts +12 -0
  19. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -0
  20. package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
  21. package/build/@types/common/components/ui/index.d.ts +2 -0
  22. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  23. package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts.map +1 -1
  24. package/build/@types/ocm/components/clusterWizard/{OpenshiftVersionsContext.d.ts → OpenShiftVersionsContext.d.ts} +4 -4
  25. package/build/@types/ocm/components/clusterWizard/{OpenshiftVersionsContext.d.ts.map → OpenShiftVersionsContext.d.ts.map} +1 -1
  26. package/build/@types/ocm/components/clusterWizard/index.d.ts +1 -0
  27. package/build/@types/ocm/components/clusterWizard/index.d.ts.map +1 -1
  28. package/build/@types/ocm/services/OperatorsService.d.ts +1 -1
  29. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js +14 -13
  30. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +1 -1
  31. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +24 -9
  32. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  33. package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js +2 -2
  34. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +2 -2
  35. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  36. package/build/cjs/cim/components/InfraEnv/{OpenshiftVersionDropdown.js → InfraEnvOpenShiftVersionDropdown.js} +3 -3
  37. package/build/cjs/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.js.map +1 -0
  38. package/build/cjs/cim/components/common/CpuArchitectureDropdown.js +14 -19
  39. package/build/cjs/cim/components/common/CpuArchitectureDropdown.js.map +1 -1
  40. package/build/cjs/cim/components/helpers/toAssisted.js +3 -5
  41. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  42. package/build/cjs/cim/components/helpers/versions.js +19 -11
  43. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  44. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +11 -9
  45. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  46. package/build/cjs/common/components/ui/{OpenshiftSelectWithSearch.js → OpenShiftSelectWithSearch.js} +6 -6
  47. package/build/cjs/common/components/ui/{OpenshiftSelectWithSearch.js.map → OpenShiftSelectWithSearch.js.map} +1 -1
  48. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.css +9 -0
  49. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +2 -2
  50. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
  51. package/build/cjs/{ocm/components/clusterConfiguration → common/components/ui}/OpenShiftVersionModal.js +4 -6
  52. package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -0
  53. package/build/cjs/common/components/ui/formik/RichInputField.js +3 -2
  54. package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
  55. package/build/cjs/common/components/ui/index.js +2 -0
  56. package/build/cjs/common/components/ui/index.js.map +1 -1
  57. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js +2 -2
  58. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +2 -2
  59. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.js +2 -2
  60. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -2
  61. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersion.js +1 -1
  62. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js +5 -6
  63. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js.map +1 -1
  64. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +2 -2
  65. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +2 -2
  66. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -2
  67. package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +2 -2
  68. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +2 -2
  69. package/build/cjs/ocm/components/clusterWizard/{OpenshiftVersionsContext.js → OpenShiftVersionsContext.js} +10 -10
  70. package/build/cjs/ocm/components/clusterWizard/{OpenshiftVersionsContext.js.map → OpenShiftVersionsContext.js.map} +1 -1
  71. package/build/cjs/ocm/components/clusterWizard/index.js +3 -1
  72. package/build/cjs/ocm/components/clusterWizard/index.js.map +1 -1
  73. package/build/cjs/ocm/components/clusters/ClusterPage.js +3 -3
  74. package/build/cjs/ocm/components/clusters/NewClusterPage.js +2 -2
  75. package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js +2 -2
  76. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +2 -2
  77. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
  78. package/build/cjs/ocm/services/OperatorsService.js +2 -2
  79. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +19 -16
  80. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +54 -13
  81. package/lib/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.tsx +2 -2
  82. package/lib/cim/components/Hypershift/types.ts +1 -1
  83. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +2 -2
  84. package/lib/cim/components/InfraEnv/{OpenshiftVersionDropdown.tsx → InfraEnvOpenShiftVersionDropdown.tsx} +2 -2
  85. package/lib/cim/components/common/CpuArchitectureDropdown.tsx +51 -40
  86. package/lib/cim/components/helpers/toAssisted.ts +3 -4
  87. package/lib/cim/components/helpers/versions.ts +20 -6
  88. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +14 -14
  89. package/lib/common/components/ui/{OpenshiftSelectWithSearch.tsx → OpenShiftSelectWithSearch.tsx} +4 -4
  90. package/lib/common/components/ui/OpenShiftVersionDropdown.css +9 -0
  91. package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +3 -3
  92. package/lib/{ocm/components/clusterConfiguration → common/components/ui}/OpenShiftVersionModal.tsx +9 -9
  93. package/lib/common/components/ui/formik/RichInputField.tsx +4 -2
  94. package/lib/common/components/ui/index.ts +3 -0
  95. package/lib/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.tsx +2 -2
  96. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +3 -3
  97. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.tsx +3 -3
  98. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +2 -2
  99. package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersion.tsx +1 -1
  100. package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +9 -5
  101. package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +2 -2
  102. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +3 -3
  103. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +3 -3
  104. package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +2 -2
  105. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +2 -2
  106. package/lib/ocm/components/clusterWizard/{OpenshiftVersionsContext.tsx → OpenShiftVersionsContext.tsx} +8 -8
  107. package/lib/ocm/components/clusterWizard/index.ts +1 -0
  108. package/lib/ocm/components/clusters/ClusterPage.tsx +5 -5
  109. package/lib/ocm/components/clusters/NewClusterPage.tsx +3 -3
  110. package/lib/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.tsx +2 -2
  111. package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +2 -2
  112. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
  113. package/lib/ocm/services/OperatorsService.tsx +2 -2
  114. package/package.json +3 -3
  115. package/build/@types/cim/components/InfraEnv/OpenshiftVersionDropdown.d.ts +0 -7
  116. package/build/@types/cim/components/InfraEnv/OpenshiftVersionDropdown.d.ts.map +0 -1
  117. package/build/@types/common/components/ui/OpenshiftSelectWithSearch.d.ts.map +0 -1
  118. package/build/@types/ocm/components/clusterConfiguration/OpenShiftVersionModal.d.ts +0 -10
  119. package/build/@types/ocm/components/clusterConfiguration/OpenShiftVersionModal.d.ts.map +0 -1
  120. package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js.map +0 -1
  121. package/build/cjs/common/components/ui/OpenshiftVersionDropdown.css +0 -4
  122. package/build/cjs/ocm/components/clusterConfiguration/OpenShiftVersionModal.js.map +0 -1
  123. package/lib/common/components/ui/OpenshiftVersionDropdown.css +0 -4
  124. /package/build/cjs/{ocm/components/clusterConfiguration/OpenshiftVersionModal.css → common/components/ui/OpenShiftVersionModal.css} +0 -0
  125. /package/lib/{ocm/components/clusterConfiguration/OpenshiftVersionModal.css → common/components/ui/OpenShiftVersionModal.css} +0 -0
@@ -11,7 +11,7 @@ const global_success_color_100_1 = require("@patternfly/react-tokens/dist/js/glo
11
11
  const global_info_color_100_1 = require("@patternfly/react-tokens/dist/js/global_info_color_100");
12
12
  const common_1 = require("../../../../common");
13
13
  const ClusterWizardContext_1 = require("../../clusterWizard/ClusterWizardContext");
14
- const OpenshiftVersionsContext_1 = require("../../clusterWizard/OpenshiftVersionsContext");
14
+ const OpenShiftVersionsContext_1 = require("../../clusterWizard/OpenShiftVersionsContext");
15
15
  const constants_1 = require("../../clusterWizard/constants");
16
16
  const wizardTransition_1 = require("../../clusterWizard/wizardTransition");
17
17
  const featureSupportLevels_1 = require("../../featureSupportLevels");
@@ -48,7 +48,7 @@ const getCheckIcon = (validationStatuses) => {
48
48
  const PreflightChecksDetailCollapsed = ({ cluster }) => {
49
49
  const { t } = (0, use_translation_wrapper_1.useTranslation)();
50
50
  const featureSupportLevelData = (0, newFeatureSupportLevels_1.useNewFeatureSupportLevel)();
51
- const { isSupportedOpenShiftVersion } = (0, OpenshiftVersionsContext_1.useOpenshiftVersionsContext)();
51
+ const { isSupportedOpenShiftVersion } = (0, OpenShiftVersionsContext_1.useOpenShiftVersionsContext)();
52
52
  const { isFullySupported } = react_1.default.useMemo(() => (0, ReviewClusterFeatureSupportLevels_1.getSupportLevelInfo)(cluster, featureSupportLevelData, isSupportedOpenShiftVersion, t), [cluster, featureSupportLevelData, t, isSupportedOpenShiftVersion]);
53
53
  const supportLevelIcon = isFullySupported ? (react_1.default.createElement(check_circle_icon_1.CheckCircleIcon, { color: global_success_color_100_1.global_success_color_100.value })) : (react_1.default.createElement(info_circle_icon_1.InfoCircleIcon, { color: global_info_color_100_1.global_info_color_100.value }));
54
54
  const clusterValidations = react_1.default.useMemo(() => Object.values((0, utils_1.stringToJSON)(cluster.validationsInfo) || {})
@@ -22,7 +22,7 @@ const BackButton_1 = require("../ui/Buttons/BackButton");
22
22
  const featureSupportLevels_1 = require("../featureSupportLevels");
23
23
  const hooks_1 = require("../../hooks");
24
24
  const use_feature_detection_1 = require("../../hooks/use-feature-detection");
25
- const OpenshiftVersionsContext_1 = require("../clusterWizard/OpenshiftVersionsContext");
25
+ const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
26
26
  const react_router_dom_v5_compat_1 = require("react-router-dom-v5-compat");
27
27
  const LoadingCard = () => (react_1.default.createElement(react_core_1.Card, { "data-testid": "ai-cluster-details-card" },
28
28
  react_1.default.createElement(react_core_1.CardHeader, null,
@@ -68,7 +68,7 @@ const AssistedInstallerDetailCard = ({ aiClusterId, allEnabledFeatures, history,
68
68
  const isOutdatedClusterData = uiState === common_1.ResourceUIState.POLLING_ERROR;
69
69
  return (react_1.default.createElement(react_router_dom_v5_compat_1.unstable_HistoryRouter, { history: history, basename: basename },
70
70
  react_1.default.createElement(common_1.AlertsContextProvider, null,
71
- react_1.default.createElement(OpenshiftVersionsContext_1.OpenshiftVersionsContextProvider, null,
71
+ react_1.default.createElement(OpenShiftVersionsContext_1.OpenShiftVersionsContextProvider, null,
72
72
  react_1.default.createElement(SentryErrorMonitorContextProvider_1.SentryErrorMonitorContextProvider, null,
73
73
  react_1.default.createElement(ModalDialogsContext_1.ModalDialogsContextProvider, null,
74
74
  react_1.default.createElement(ClusterDefaultConfigurationContext_1.ClusterDefaultConfigurationProvider, { loadingUI: react_1.default.createElement(LoadingCard, null), errorUI: react_1.default.createElement(LoadingDefaultConfigFailedCard, null) },
@@ -13,7 +13,7 @@ const useInfraEnv_1 = tslib_1.__importDefault(require("../../hooks/useInfraEnv")
13
13
  const hooks_1 = require("../../hooks");
14
14
  const selectors_1 = require("../../store/slices/current-cluster/selectors");
15
15
  const use_feature_detection_1 = require("../../hooks/use-feature-detection");
16
- const OpenshiftVersionsContext_1 = require("../clusterWizard/OpenshiftVersionsContext");
16
+ const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
17
17
  const AssistedInstallerExtraDetailCard = ({ allEnabledFeatures, }) => {
18
18
  var _a;
19
19
  (0, use_feature_detection_1.useFeatureDetection)(allEnabledFeatures);
@@ -33,7 +33,7 @@ const AssistedInstallerExtraDetailCard = ({ allEnabledFeatures, }) => {
33
33
  const Wrapper = (props) => {
34
34
  return (react_1.default.createElement(react_redux_1.Provider, { store: store_1.storeDay1 },
35
35
  react_1.default.createElement(common_1.AlertsContextProvider, null,
36
- react_1.default.createElement(OpenshiftVersionsContext_1.OpenshiftVersionsContextProvider, null,
36
+ react_1.default.createElement(OpenShiftVersionsContext_1.OpenShiftVersionsContextProvider, null,
37
37
  react_1.default.createElement(AssistedInstallerExtraDetailCard, Object.assign({}, props))))));
38
38
  };
39
39
  exports.default = Wrapper;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const react_1 = tslib_1.__importDefault(require("react"));
5
5
  const common_1 = require("../../../common");
6
- const OpenshiftVersionsContext_1 = require("../clusterWizard/OpenshiftVersionsContext");
6
+ const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
7
7
  const exclamation_triangle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon");
8
8
  const react_core_1 = require("@patternfly/react-core");
9
9
  const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
@@ -19,7 +19,7 @@ const UnsupportedVersion = ({ version }) => {
19
19
  };
20
20
  const OpenShiftVersionDetail = ({ cluster }) => {
21
21
  const { openshiftVersion } = cluster;
22
- const { isSupportedOpenShiftVersion, latestVersions: versions } = (0, OpenshiftVersionsContext_1.useOpenshiftVersionsContext)();
22
+ const { isSupportedOpenShiftVersion, latestVersions: versions } = (0, OpenShiftVersionsContext_1.useOpenShiftVersionsContext)();
23
23
  const isSupported = isSupportedOpenShiftVersion(openshiftVersion);
24
24
  const version = react_1.default.useMemo(() => {
25
25
  return (0, common_1.getOpenshiftVersionText)({
@@ -11,7 +11,7 @@ const slice_1 = require("../../store/slices/current-cluster/slice");
11
11
  const ClusterWizardContext_1 = require("./ClusterWizardContext");
12
12
  const wizardTransition_1 = require("./wizardTransition");
13
13
  const hooks_2 = require("../../hooks");
14
- const OpenshiftVersionsContext_1 = require("./OpenshiftVersionsContext");
14
+ const OpenShiftVersionsContext_1 = require("./OpenShiftVersionsContext");
15
15
  const ClusterDetailsForm_1 = tslib_1.__importDefault(require("./ClusterDetailsForm"));
16
16
  const ClusterWizardNavigation_1 = tslib_1.__importDefault(require("./ClusterWizardNavigation"));
17
17
  const services_1 = require("../../services");
@@ -23,7 +23,7 @@ const ClusterDetails = ({ cluster, infraEnv }) => {
23
23
  const dispatch = (0, react_redux_1.useDispatch)();
24
24
  const { usedClusterNames } = (0, hooks_2.useUsedClusterNames)((cluster === null || cluster === void 0 ? void 0 : cluster.id) || '');
25
25
  const pullSecret = (0, hooks_1.usePullSecret)();
26
- const { error: errorOCPVersions, loading: loadingOCPVersions, latestVersions: versions, } = (0, OpenshiftVersionsContext_1.useOpenshiftVersionsContext)();
26
+ const { error: errorOCPVersions, loading: loadingOCPVersions, latestVersions: versions, } = (0, OpenShiftVersionsContext_1.useOpenShiftVersionsContext)();
27
27
  const location = (0, react_router_dom_v5_compat_1.useLocation)();
28
28
  const handleClusterUpdate = react_1.default.useCallback((clusterId, params, addCustomManifests) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
29
29
  clearAlerts();
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useOpenshiftVersionsContext = exports.OpenshiftVersionsContextProvider = void 0;
3
+ exports.useOpenShiftVersionsContext = exports.OpenShiftVersionsContextProvider = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
6
  const api_1 = require("../../../common/api");
7
7
  const apis_1 = require("../../services/apis");
8
8
  const utils_1 = require("../../../common/utils");
9
9
  const supportedVersionLevels = ['production', 'maintenance'];
10
- const OpenshiftVersionsContext = (0, react_1.createContext)(null);
11
- const OpenshiftVersionsContextProvider = ({ children }) => {
10
+ const OpenShiftVersionsContext = (0, react_1.createContext)(null);
11
+ const OpenShiftVersionsContextProvider = ({ children }) => {
12
12
  const [allVersions, setAllVersions] = react_1.default.useState([]);
13
13
  const [latestVersions, setLatestVersions] = react_1.default.useState([]);
14
14
  const [error, setError] = react_1.default.useState();
@@ -72,7 +72,7 @@ const OpenshiftVersionsContextProvider = ({ children }) => {
72
72
  const matchingVersion = findVersionItemByVersion(version);
73
73
  return (_a = matchingVersion === null || matchingVersion === void 0 ? void 0 : matchingVersion.cpuArchitectures) !== null && _a !== void 0 ? _a : [];
74
74
  }, [findVersionItemByVersion]);
75
- return (react_1.default.createElement(OpenshiftVersionsContext.Provider, { value: {
75
+ return (react_1.default.createElement(OpenShiftVersionsContext.Provider, { value: {
76
76
  allVersions,
77
77
  latestVersions,
78
78
  loading: !error && ((allVersions === null || allVersions === void 0 ? void 0 : allVersions.length) === 0 || (latestVersions === null || latestVersions === void 0 ? void 0 : latestVersions.length) === 0),
@@ -81,13 +81,13 @@ const OpenshiftVersionsContextProvider = ({ children }) => {
81
81
  getCpuArchitectures,
82
82
  } }, children));
83
83
  };
84
- exports.OpenshiftVersionsContextProvider = OpenshiftVersionsContextProvider;
85
- const useOpenshiftVersionsContext = () => {
86
- const context = react_1.default.useContext(OpenshiftVersionsContext);
84
+ exports.OpenShiftVersionsContextProvider = OpenShiftVersionsContextProvider;
85
+ const useOpenShiftVersionsContext = () => {
86
+ const context = react_1.default.useContext(OpenShiftVersionsContext);
87
87
  if (!context) {
88
- throw new Error('useOpenshiftVersionsContext must be used within OpenshiftVersionsContext');
88
+ throw new Error('useOpenShiftVersionsContext must be used within OpenShiftVersionsContext');
89
89
  }
90
90
  return context;
91
91
  };
92
- exports.useOpenshiftVersionsContext = useOpenshiftVersionsContext;
93
- //# sourceMappingURL=OpenshiftVersionsContext.js.map
92
+ exports.useOpenShiftVersionsContext = useOpenShiftVersionsContext;
93
+ //# sourceMappingURL=OpenShiftVersionsContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenshiftVersionsContext.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OpenshiftVersionsContext.tsx"],"names":[],"mappings":";;;;AAAA,uDAA6C;AAE7C,6CAAyE;AACzE,8CAAoE;AAEpE,iDAAgD;AAEhD,MAAM,sBAAsB,GAAG,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AAY7D,MAAM,wBAAwB,GAAG,IAAA,qBAAa,EAAsC,IAAI,CAAC,CAAC;AAEnF,MAAM,gCAAgC,GAAG,CAAC,EAAE,QAAQ,EAAiC,EAAE,EAAE;IAC9F,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,eAAK,CAAC,QAAQ,CAA+B,EAAE,CAAC,CAAC;IACvF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAA+B,EAAE,CAAC,CAAC;IAC7F,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,eAAK,CAAC,QAAQ,E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AAC;IAC9E,CAAC,EACD,CAAC,wBAAwB,EAAE,WAAW,CAAC,CACxC,CAAC;IAEF,MAAM,mBAAmB,GAAG,eAAK,CAAC,WAAW,CAC3C,CAAC,OAAyB,EAAE,EAAE;;QAC5B,gFAAgF;QAChF,MAAM,eAAe,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAC1D,OAAO,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,gBAAgB,mCAAI,EAAE,CAAC;IACjD,CAAC,EACD,CAAC,wBAAwB,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,8BAAC,wBAAwB,CAAC,QAAQ,IAChC,KAAK,EAAE;YACL,WAAW;YACX,cAAc;YACd,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,MAAK,CAAC,IAAI,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,MAAM,MAAK,CAAC,CAAC;YAC9E,KAAK;YACL,2BAA2B;YAC3B,mBAAmB;SACpB,IAEA,QAAQ,CACyB,CACrC,CAAC;AACJ,CAAC,CAAC;AArGW,QAAA,gCAAgC,oCAqG3C;AAEK,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,MAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAC3D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;KAC7F;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AANW,QAAA,2BAA2B,+BAMtC"}
1
+ {"version":3,"file":"OpenShiftVersionsContext.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OpenShiftVersionsContext.tsx"],"names":[],"mappings":";;;;AAAA,uDAA6C;AAE7C,6CAAyE;AACzE,8CAAoE;AAEpE,iDAAgD;AAEhD,MAAM,sBAAsB,GAAG,CAAC,YAAY,EAAE,aA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AAC,wBAAwB,CAAC,CAAC;IAC3D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;KAC7F;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AANW,QAAA,2BAA2B,+BAMtC"}
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ClusterWizardContextProvider = exports.NewClusterWizard = exports.ClusterDetailsForm = void 0;
6
+ exports.OpenShiftVersionsContextProvider = exports.ClusterWizardContextProvider = exports.NewClusterWizard = exports.ClusterDetailsForm = void 0;
7
7
  var ClusterDetailsForm_1 = require("./ClusterDetailsForm");
8
8
  Object.defineProperty(exports, "ClusterDetailsForm", { enumerable: true, get: function () { return __importDefault(ClusterDetailsForm_1).default; } });
9
9
  var NewClusterWizard_1 = require("./NewClusterWizard");
10
10
  Object.defineProperty(exports, "NewClusterWizard", { enumerable: true, get: function () { return __importDefault(NewClusterWizard_1).default; } });
11
11
  var ClusterWizardContextProvider_1 = require("./ClusterWizardContextProvider");
12
12
  Object.defineProperty(exports, "ClusterWizardContextProvider", { enumerable: true, get: function () { return __importDefault(ClusterWizardContextProvider_1).default; } });
13
+ var OpenShiftVersionsContext_1 = require("./OpenShiftVersionsContext");
14
+ Object.defineProperty(exports, "OpenShiftVersionsContextProvider", { enumerable: true, get: function () { return OpenShiftVersionsContext_1.OpenShiftVersionsContextProvider; } });
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB;AACtC,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB;AACpC,+EAAyF;AAAhF,6JAAA,OAAO,OAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB;AACtC,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB;AACpC,+EAAyF;AAAhF,6JAAA,OAAO,OAAgC;AAChD,uEAA8E;AAArE,4IAAA,gCAAgC,OAAA"}
@@ -30,7 +30,7 @@ const BackButton_1 = require("../ui/Buttons/BackButton");
30
30
  const featureSupportLevels_1 = require("../featureSupportLevels");
31
31
  const hooks_1 = require("../../hooks");
32
32
  const AssistedInstallerHeader_1 = require("./AssistedInstallerHeader");
33
- const OpenshiftVersionsContext_1 = require("../clusterWizard/OpenshiftVersionsContext");
33
+ const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
34
34
  const ClusterPageGeneric = ({ clusterId, showBreadcrumbs = false, }) => {
35
35
  var _a;
36
36
  if (!clusterId) {
@@ -50,7 +50,7 @@ const ClusterPageGeneric = ({ clusterId, showBreadcrumbs = false, }) => {
50
50
  return Promise.resolve();
51
51
  });
52
52
  return (react_1.default.createElement(common_1.AddHostsContextProvider, { cluster: cluster, resetCluster: onReset },
53
- react_1.default.createElement(OpenshiftVersionsContext_1.OpenshiftVersionsContextProvider, null,
53
+ react_1.default.createElement(OpenShiftVersionsContext_1.OpenShiftVersionsContextProvider, null,
54
54
  react_1.default.createElement(AddHosts_1.AddHosts, null))));
55
55
  }
56
56
  else if ([
@@ -100,7 +100,7 @@ const ClusterPageGeneric = ({ clusterId, showBreadcrumbs = false, }) => {
100
100
  react_1.default.createElement(SentryErrorMonitorContextProvider_1.SentryErrorMonitorContextProvider, null,
101
101
  react_1.default.createElement(ModalDialogsContext_1.ModalDialogsContextProvider, null,
102
102
  react_1.default.createElement(ClusterDefaultConfigurationContext_1.ClusterDefaultConfigurationProvider, { loadingUI: react_1.default.createElement(ClusterLoading_1.default, null), errorUI: react_1.default.createElement(ClusterPageErrors_1.ClusterUiError, null) },
103
- react_1.default.createElement(OpenshiftVersionsContext_1.OpenshiftVersionsContextProvider, null,
103
+ react_1.default.createElement(OpenShiftVersionsContext_1.OpenShiftVersionsContextProvider, null,
104
104
  react_1.default.createElement(featureSupportLevels_1.NewFeatureSupportLevelProvider, { loadingUi: react_1.default.createElement(ClusterLoading_1.default, null), cluster: cluster, cpuArchitecture: infraEnv.cpuArchitecture, openshiftVersion: cluster.openshiftVersion, platformType: (_a = cluster.platform) === null || _a === void 0 ? void 0 : _a.type },
105
105
  getContent(cluster, infraEnv),
106
106
  uiState === common_1.ResourceUIState.POLLING_ERROR && react_1.default.createElement(ClusterPollingErrorModal_1.default, null),
@@ -15,13 +15,13 @@ const ClusterPageErrors_1 = require("./ClusterPageErrors");
15
15
  const featureSupportLevels_1 = require("../featureSupportLevels");
16
16
  const AssistedInstallerHeader_1 = require("./AssistedInstallerHeader");
17
17
  const ModalDialogsContext_1 = require("../hosts/ModalDialogsContext");
18
- const OpenshiftVersionsContext_1 = require("../clusterWizard/OpenshiftVersionsContext");
18
+ const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
19
19
  const NewClusterPageGeneric = ({ pageTitleSection }) => {
20
20
  return (react_1.default.createElement(common_1.AlertsContextProvider, null,
21
21
  react_1.default.createElement(SentryErrorMonitorContextProvider_1.SentryErrorMonitorContextProvider, null,
22
22
  react_1.default.createElement(ModalDialogsContext_1.ModalDialogsContextProvider, null,
23
23
  react_1.default.createElement(ClusterDefaultConfigurationContext_1.ClusterDefaultConfigurationProvider, { loadingUI: react_1.default.createElement(ClusterLoading_1.default, null), errorUI: react_1.default.createElement(ClusterPageErrors_1.ClusterUiError, null) },
24
- react_1.default.createElement(OpenshiftVersionsContext_1.OpenshiftVersionsContextProvider, null,
24
+ react_1.default.createElement(OpenShiftVersionsContext_1.OpenShiftVersionsContextProvider, null,
25
25
  react_1.default.createElement(featureSupportLevels_1.NewFeatureSupportLevelProvider, { loadingUi: react_1.default.createElement(ClusterLoading_1.default, null) },
26
26
  pageTitleSection,
27
27
  react_1.default.createElement(react_core_1.PageSection, { variant: react_core_1.PageSectionVariants.light, isFilled: true },
@@ -9,13 +9,13 @@ const featureStateUtils_1 = require("./featureStateUtils");
9
9
  const useInfraEnv_1 = tslib_1.__importDefault(require("../../hooks/useInfraEnv"));
10
10
  const newFeatureSupportLevels_1 = require("../../../common/components/newFeatureSupportLevels");
11
11
  const useSupportLevelsAPI_1 = tslib_1.__importDefault(require("../../hooks/useSupportLevelsAPI"));
12
- const OpenshiftVersionsContext_1 = require("../clusterWizard/OpenshiftVersionsContext");
12
+ const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
13
13
  const getFeatureSupported = (featureSupportLevels, featureId) => {
14
14
  return featureSupportLevels && (0, featureStateUtils_1.isFeatureSupportedAndAvailable)(featureSupportLevels[featureId]);
15
15
  };
16
16
  exports.getFeatureSupported = getFeatureSupported;
17
17
  const NewFeatureSupportLevelProvider = ({ cluster, children, loadingUi, cpuArchitecture, openshiftVersion, platformType, }) => {
18
- const { loading: loadingOCPVersions } = (0, OpenshiftVersionsContext_1.useOpenshiftVersionsContext)();
18
+ const { loading: loadingOCPVersions } = (0, OpenShiftVersionsContext_1.useOpenShiftVersionsContext)();
19
19
  const pullSecret = (0, hooks_1.usePullSecret)();
20
20
  const { infraEnv, isLoading: isInfraEnvLoading } = (0, useInfraEnv_1.default)((cluster === null || cluster === void 0 ? void 0 : cluster.id) || '', (cluster === null || cluster === void 0 ? void 0 : cluster.cpuArchitecture)
21
21
  ? cluster.cpuArchitecture
@@ -14,7 +14,7 @@ const common_1 = require("../../../common");
14
14
  const utils_1 = require("../../../common/components/newFeatureSupportLevels/utils");
15
15
  const WithErrorBoundary_1 = require("../../../common/components/ErrorHandling/WithErrorBoundary");
16
16
  const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
17
- const OpenshiftVersionsContext_1 = require("../clusterWizard/OpenshiftVersionsContext");
17
+ const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
18
18
  const newFeatureSupportLevels_1 = require("../../../common/components/newFeatureSupportLevels");
19
19
  const getFeatureReviewText = (featureId) => {
20
20
  switch (featureId) {
@@ -93,7 +93,7 @@ exports.getSupportLevelInfo = getSupportLevelInfo;
93
93
  const SupportLevel = ({ cluster }) => {
94
94
  const { t } = (0, use_translation_wrapper_1.useTranslation)();
95
95
  const featureSupportLevelData = (0, newFeatureSupportLevels_1.useNewFeatureSupportLevel)();
96
- const { isSupportedOpenShiftVersion } = (0, OpenshiftVersionsContext_1.useOpenshiftVersionsContext)();
96
+ const { isSupportedOpenShiftVersion } = (0, OpenShiftVersionsContext_1.useOpenShiftVersionsContext)();
97
97
  const { limitedClusterFeatures, hasSupportedVersion, isFullySupported } = react_1.default.useMemo(() => (0, exports.getSupportLevelInfo)(cluster, featureSupportLevelData, isSupportedOpenShiftVersion, t), [cluster, featureSupportLevelData, t, isSupportedOpenShiftVersion]);
98
98
  if (!limitedClusterFeatures) {
99
99
  return null;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getLvmsIncompatibleWithOdfReason = exports.getOpenShiftAIIncompatibleWithLvmsReason = exports.getOdfIncompatibleWithLvmsReason = exports.hostsNetworkConfigurationDisabledReason = exports.isFeatureSupportedAndAvailable = exports.getNewFeatureDisabledReason = exports.getLvmIncompatibleWithCnvReason = exports.getCnvIncompatibleWithLvmReason = exports.clusterExistsReason = void 0;
4
4
  const common_1 = require("../../../common");
5
5
  const constants_1 = require("../clusterConfiguration/platformIntegration/constants");
6
- const CNV_OPERATOR_LABEL = 'Openshift Virtualization';
6
+ const CNV_OPERATOR_LABEL = 'OpenShift Virtualization';
7
7
  const LVMS_OPERATOR_LABEL = 'Logical Volume Manager Storage';
8
8
  const LVM_OPERATOR_LABEL = 'Logical Volume Manager';
9
9
  const ODF_OPERATOR_LABEL = 'OpenShift Data Foundation';
@@ -31,13 +31,13 @@ const OperatorsService = {
31
31
  return Object.values(enabledOlmOperatorsByName);
32
32
  },
33
33
  /**
34
- * Depending on the Openshift version and certain selected operators, the
34
+ * Depending on the OpenShift version and certain selected operators, the
35
35
  * Backend can activate some other operators.
36
36
  * We need to synchronise them back to the form
37
37
  */
38
38
  syncOperators(uiOperators, updatedOperators) {
39
39
  const updates = {};
40
- // LVM operator can be automatically selected depending on Openshift version + other operators
40
+ // LVM operator can be automatically selected depending on OpenShift version + other operators
41
41
  const lvmPrevInactive = (uiOperators === null || uiOperators === void 0 ? void 0 : uiOperators.find((op) => op.name === common_1.OPERATOR_NAME_LVM)) === undefined;
42
42
  const lvmNowActive = (updatedOperators === null || updatedOperators === void 0 ? void 0 : updatedOperators.find((op) => op.name === common_1.OPERATOR_NAME_LVM)) !== undefined;
43
43
  if (lvmPrevInactive && lvmNowActive) {
@@ -20,6 +20,7 @@ import { useFormikContext } from 'formik';
20
20
  import { ClusterDetailsValues, CpuArchitecture, SupportedCpuArchitecture } from '../../../common';
21
21
  import { ClusterDeploymentWizardContext } from './ClusterDeploymentWizardContext';
22
22
  import { ValidationSection } from './components/ValidationSection';
23
+ import { toNumber } from 'lodash-es';
23
24
 
24
25
  type ClusterDeploymentDetailsFormProps = {
25
26
  clusterImages: ClusterImageSetK8sResource[];
@@ -92,11 +93,16 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
92
93
  osImages,
93
94
  }) => {
94
95
  const { t } = useTranslation();
95
- const ocpVersions = React.useMemo(
96
+ const versions = React.useMemo(
96
97
  () => getOCPVersions(clusterImages, isNutanix, osImages),
97
98
  [clusterImages, isNutanix, osImages],
98
99
  );
99
100
 
101
+ const allVersions = React.useMemo(
102
+ () => getOCPVersions(clusterImages, isNutanix, osImages, true),
103
+ [clusterImages, isNutanix, osImages],
104
+ );
105
+
100
106
  const forceOpenshiftVersion = agentClusterInstall
101
107
  ? getSelectedVersion(clusterImages, agentClusterInstall)
102
108
  : undefined;
@@ -104,22 +110,17 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
104
110
 
105
111
  const { values } = useFormikContext<ClusterDetailsValues>();
106
112
 
107
- const cpuArchitectures = React.useMemo(() => {
113
+ const [cpuArchitectures, allowHighlyAvailable] = React.useMemo(() => {
108
114
  const cpuArchitectures = [CpuArchitecture.x86, CpuArchitecture.ARM, CpuArchitecture.s390x];
109
- if (!osImages) {
110
- return cpuArchitectures;
111
- }
112
-
113
- const openshiftVersion = ocpVersions
114
- .find((ver) => ver.value === values.openshiftVersion)
115
- ?.version.split('.')
116
- .slice(0, 2)
117
- .join('.');
115
+ const version = allVersions.find((ver) => ver.value === values.openshiftVersion);
116
+ const isMulti = version?.cpuArchitectures?.[0] === CpuArchitecture.MULTI;
118
117
 
119
- return osImages
120
- .filter((osImage) => osImage.openshiftVersion === openshiftVersion)
121
- .map((osImage) => osImage.cpuArchitecture as SupportedCpuArchitecture);
122
- }, [osImages, ocpVersions, values.openshiftVersion]);
118
+ const highlyAvailableSupported = toNumber(version?.version?.split('.')?.[1]) >= 18;
119
+ return [
120
+ (isMulti ? cpuArchitectures : version?.cpuArchitectures) as SupportedCpuArchitecture[],
121
+ highlyAvailableSupported && !isMulti,
122
+ ];
123
+ }, [allVersions, values.openshiftVersion]);
123
124
 
124
125
  return (
125
126
  <>
@@ -134,12 +135,14 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
134
135
  )}
135
136
  <StackItem>
136
137
  <ClusterDetailsFormFields
137
- versions={ocpVersions}
138
+ versions={versions}
139
+ allVersions={allVersions}
138
140
  isEditFlow={isEditFlow}
139
141
  forceOpenshiftVersion={forceOpenshiftVersion}
140
142
  extensionAfter={extensionAfter}
141
143
  isNutanix={isNutanix}
142
144
  cpuArchitectures={cpuArchitectures}
145
+ allowHighlyAvailable={allowHighlyAvailable}
143
146
  />
144
147
  </StackItem>
145
148
  </>
@@ -2,10 +2,10 @@ import * as React from 'react';
2
2
  import { Alert, AlertVariant, FlexItem, Form } from '@patternfly/react-core';
3
3
  import { useFormikContext } from 'formik';
4
4
 
5
+ import { OpenShiftVersionDropdown, OpenShiftVersionModal } from '../../../common';
5
6
  import { StaticTextField } from '../../../common/components/ui/StaticTextField';
6
- import OpenShiftVersionSelect from '../../../common/components/clusterConfiguration/OpenShiftVersionSelect';
7
7
  import { PullSecret } from '../../../common/components/clusters';
8
- import { OpenshiftVersionOptionType } from '../../../common/types';
8
+ import { OpenshiftVersionOptionType, SupportedCpuArchitecture } from '../../../common/types';
9
9
  import {
10
10
  InputField,
11
11
  RichInputField,
@@ -14,15 +14,17 @@ import {
14
14
  import { ClusterDetailsValues } from '../../../common/components/clusterWizard/types';
15
15
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
16
16
  import CpuArchitectureDropdown from '../common/CpuArchitectureDropdown';
17
- import { getNetworkType } from '../helpers';
18
17
  import ControlPlaneNodesDropdown from '../../../common/components/clusterConfiguration/ControlPlaneNodesDropdown';
18
+
19
19
  export type ClusterDetailsFormFieldsProps = {
20
20
  isEditFlow: boolean;
21
21
  forceOpenshiftVersion?: string;
22
22
  extensionAfter?: { [key: string]: React.ReactElement };
23
23
  versions: OpenshiftVersionOptionType[];
24
+ allVersions: OpenshiftVersionOptionType[];
24
25
  isNutanix?: boolean;
25
- cpuArchitectures?: string[];
26
+ cpuArchitectures?: SupportedCpuArchitecture[];
27
+ allowHighlyAvailable?: boolean;
26
28
  };
27
29
 
28
30
  export const BaseDnsHelperText: React.FC<{ name?: string; baseDnsDomain?: string }> = ({
@@ -46,13 +48,40 @@ export const BaseDnsHelperText: React.FC<{ name?: string; baseDnsDomain?: string
46
48
  export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> = ({
47
49
  isEditFlow,
48
50
  versions,
51
+ allVersions,
49
52
  forceOpenshiftVersion,
50
53
  extensionAfter,
51
54
  isNutanix,
52
55
  cpuArchitectures,
56
+ allowHighlyAvailable,
53
57
  }) => {
54
- const { values, setFieldValue } = useFormikContext<ClusterDetailsValues>();
58
+ const { values } = useFormikContext<ClusterDetailsValues>();
55
59
  const { name, baseDnsDomain } = values;
60
+ const [openshiftVersionModalOpen, setOpenshiftVersionModalOpen] = React.useState(false);
61
+
62
+ const selectOptions = React.useMemo(
63
+ () =>
64
+ versions.map((version) => ({
65
+ label: version.label,
66
+ value: version.value,
67
+ })),
68
+ [versions],
69
+ );
70
+
71
+ const additionalSelectOptions = React.useMemo(() => {
72
+ if (
73
+ values.customOpenshiftSelect &&
74
+ !selectOptions.some((option) => option.value === values.customOpenshiftSelect?.value)
75
+ ) {
76
+ return [
77
+ {
78
+ value: values.customOpenshiftSelect.value,
79
+ label: values.customOpenshiftSelect.label,
80
+ },
81
+ ];
82
+ }
83
+ return [];
84
+ }, [selectOptions, values.customOpenshiftSelect]);
56
85
 
57
86
  const nameInputRef = React.useRef<HTMLInputElement>();
58
87
  React.useEffect(() => {
@@ -102,15 +131,27 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
102
131
  {t('ai:OpenShift')} {forceOpenshiftVersion}
103
132
  </StaticTextField>
104
133
  ) : (
105
- <OpenShiftVersionSelect
106
- versions={versions}
107
- onChange={(_event, value) => {
108
- const ocpVersion = versions.find((v) => v.value === value);
109
- setFieldValue('networkType', getNetworkType(ocpVersion));
110
- }}
111
- />
134
+ <>
135
+ <OpenShiftVersionDropdown
136
+ name="openshiftVersion"
137
+ items={selectOptions}
138
+ versions={versions}
139
+ showReleasesLink={false}
140
+ showOpenshiftVersionModal={() => setOpenshiftVersionModalOpen(true)}
141
+ customItems={additionalSelectOptions}
142
+ />
143
+ {openshiftVersionModalOpen && (
144
+ <OpenShiftVersionModal
145
+ allVersions={allVersions}
146
+ setOpenshiftVersionModalOpen={setOpenshiftVersionModalOpen}
147
+ />
148
+ )}
149
+ </>
112
150
  )}
113
- <ControlPlaneNodesDropdown isNutanix={isNutanix} isDisabled={isEditFlow} />
151
+ <ControlPlaneNodesDropdown
152
+ isDisabled={isEditFlow}
153
+ allowHighlyAvailable={allowHighlyAvailable}
154
+ />
114
155
  {!isNutanix && (
115
156
  <CpuArchitectureDropdown cpuArchitectures={cpuArchitectures} isDisabled={isEditFlow} />
116
157
  )}
@@ -15,8 +15,8 @@ const HypershiftKubeconfigDownload = ({
15
15
  fetchSecret,
16
16
  }: HypershiftKubeconfigDownloadProps) => {
17
17
  const { t } = useTranslation();
18
- const kubeconfigSecretName = hostedCluster.status?.customkubeconfig
19
- ? hostedCluster.status.customkubeconfig?.name
18
+ const kubeconfigSecretName = hostedCluster.status?.customKubeconfig
19
+ ? hostedCluster.status.customKubeconfig?.name
20
20
  : hostedCluster.status?.kubeconfig?.name;
21
21
  const handleKubeconfigDownload = async () => {
22
22
  const kubeconfigSecretNamespace = hostedCluster.metadata?.namespace;
@@ -157,7 +157,7 @@ export type HostedClusterK8sResource = K8sResourceCommon & {
157
157
  kubeconfig?: {
158
158
  name: string;
159
159
  };
160
- customkubeconfig?: {
160
+ customKubeconfig?: {
161
161
  name: string;
162
162
  };
163
163
  kubeadminPassword?: {
@@ -49,7 +49,7 @@ import { getErrorMessage } from '../../../common/utils';
49
49
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
50
50
  import { TFunction } from 'i18next';
51
51
  import CpuArchitectureDropdown from '../common/CpuArchitectureDropdown';
52
- import OpenshiftVersionDropdown from './OpenshiftVersionDropdown';
52
+ import InfraEnvOpenShiftVersionDropdown from './InfraEnvOpenShiftVersionDropdown';
53
53
  import { OsImage } from '../../types';
54
54
 
55
55
  export type EnvironmentStepFormValues = {
@@ -228,7 +228,7 @@ const InfraEnvForm: React.FC<InfraEnvFormProps> = ({
228
228
  </Flex>
229
229
  </FormGroup>
230
230
  <CpuArchitectureDropdown />
231
- {!!osImages && <OpenshiftVersionDropdown osImages={osImages} />}
231
+ {!!osImages && <InfraEnvOpenShiftVersionDropdown osImages={osImages} />}
232
232
  <RichInputField
233
233
  label={t('ai:Location')}
234
234
  name="location"
@@ -6,7 +6,7 @@ import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
6
6
  import { architectureData, getFieldId, SupportedCpuArchitecture } from '../../../common';
7
7
  import { OsImage } from '../../types';
8
8
 
9
- const OpenshiftVersionDropdown = ({ osImages }: { osImages: OsImage[] }) => {
9
+ const InfraEnvOpenShiftVersionDropdown = ({ osImages }: { osImages: OsImage[] }) => {
10
10
  const { t } = useTranslation();
11
11
  const [{ name, value }, , { setValue }] = useField<string>('osImageVersion');
12
12
  const [{ value: cpuArchitecture }] = useField<string>('cpuArchitecture');
@@ -69,4 +69,4 @@ const OpenshiftVersionDropdown = ({ osImages }: { osImages: OsImage[] }) => {
69
69
  );
70
70
  };
71
71
 
72
- export default OpenshiftVersionDropdown;
72
+ export default InfraEnvOpenShiftVersionDropdown;