@openshift-assisted/ui-lib 5.0.1-cim → 5.0.2-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 (293) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +2 -2
  5. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -1
  6. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/types.d.ts +1 -2
  8. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  9. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +3 -2
  10. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  11. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
  12. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.d.ts.map +1 -1
  13. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts +6 -0
  14. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts.map +1 -0
  15. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts +4 -2
  16. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
  17. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts +2 -1
  18. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts.map +1 -1
  19. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  20. package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
  21. package/build/@types/cim/components/helpers/status.d.ts +5 -7
  22. package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
  23. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  24. package/build/@types/cim/components/helpers/versions.d.ts +3 -2
  25. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  26. package/build/@types/cim/components/index.d.ts +0 -1
  27. package/build/@types/cim/components/index.d.ts.map +1 -1
  28. package/build/@types/cim/components/modals/CimConfiguration/CimStorageMissingAlert.d.ts.map +1 -1
  29. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts +2 -3
  30. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
  31. package/build/@types/cim/hooks/index.d.ts +1 -0
  32. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  33. package/build/@types/cim/hooks/useStorageClasses.d.ts +4 -0
  34. package/build/@types/cim/hooks/useStorageClasses.d.ts.map +1 -0
  35. package/build/@types/cim/index.d.ts +0 -1
  36. package/build/@types/cim/index.d.ts.map +1 -1
  37. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +2 -1
  38. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  39. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +7 -1
  40. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
  41. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  42. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  43. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  44. package/build/@types/common/components/index.d.ts +1 -1
  45. package/build/@types/common/components/index.d.ts.map +1 -1
  46. package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
  47. package/build/@types/common/components/ui/formik/PullSecretField.d.ts +1 -0
  48. package/build/@types/common/components/ui/formik/PullSecretField.d.ts.map +1 -1
  49. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +2 -1
  50. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -1
  51. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  52. package/build/@types/common/types/clusters.d.ts +1 -1
  53. package/build/@types/common/types/clusters.d.ts.map +1 -1
  54. package/build/@types/common/utils.d.ts.map +1 -1
  55. package/build/@types/ocm/components/AddHosts/types.d.ts +4 -3
  56. package/build/@types/ocm/components/AddHosts/types.d.ts.map +1 -1
  57. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +10 -2
  58. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -0
  60. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterWizard/NewClusterWizard.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts +1 -0
  65. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts +4 -0
  67. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -0
  68. package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
  69. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
  70. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  71. package/build/@types/ocm/components/featureSupportLevels/index.d.ts +0 -1
  72. package/build/@types/ocm/components/featureSupportLevels/index.d.ts.map +1 -1
  73. package/build/@types/ocm/services/ClustersService.d.ts +2 -1
  74. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  75. package/build/@types/ocm/services/InfraEnvsService.d.ts +1 -1
  76. package/build/@types/ocm/services/NewFeatureSupportLevelsService.d.ts +1 -1
  77. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +1 -1
  78. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  79. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +13 -15
  80. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  81. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js +1 -1
  82. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js.map +1 -1
  83. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js +3 -2
  84. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js.map +1 -1
  85. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +4 -5
  86. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
  87. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js +2 -2
  88. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -1
  89. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +2 -5
  90. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  91. package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -1
  92. package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -2
  93. package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
  94. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +1 -1
  95. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  96. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js +2 -2
  97. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
  98. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +2 -2
  99. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  100. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +4 -4
  101. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  102. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +21 -7
  103. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  104. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +3 -1
  105. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
  106. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +13 -3
  107. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
  108. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js +52 -0
  109. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js.map +1 -0
  110. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +3 -3
  111. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  112. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  113. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  114. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -2
  115. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  116. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +1 -1
  117. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  118. package/build/cjs/cim/components/helpers/status.js +4 -4
  119. package/build/cjs/cim/components/helpers/status.js.map +1 -1
  120. package/build/cjs/cim/components/helpers/toAssisted.js +2 -12
  121. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  122. package/build/cjs/cim/components/helpers/versions.js +6 -6
  123. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  124. package/build/cjs/cim/components/helpers/versions.test.js +19 -18
  125. package/build/cjs/cim/components/helpers/versions.test.js.map +1 -1
  126. package/build/cjs/cim/components/index.js +0 -1
  127. package/build/cjs/cim/components/index.js.map +1 -1
  128. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js +1 -1
  129. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
  130. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
  131. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  132. package/build/cjs/cim/hooks/index.js +1 -0
  133. package/build/cjs/cim/hooks/index.js.map +1 -1
  134. package/build/cjs/cim/hooks/useStorageClasses.js +13 -0
  135. package/build/cjs/cim/hooks/useStorageClasses.js.map +1 -0
  136. package/build/cjs/cim/index.js +0 -1
  137. package/build/cjs/cim/index.js.map +1 -1
  138. package/build/cjs/common/api/assisted-service/ClustersAPI.js +3 -0
  139. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  140. package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
  141. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +2 -4
  142. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  143. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +1 -1
  144. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  145. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +1 -1
  146. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  147. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +1 -1
  148. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  149. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js +11 -4
  150. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  151. package/build/cjs/common/components/index.js +1 -1
  152. package/build/cjs/common/components/index.js.map +1 -1
  153. package/build/cjs/common/components/operators/operatorSpecs.js +0 -3
  154. package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
  155. package/build/cjs/common/components/ui/formik/PullSecretField.js +2 -2
  156. package/build/cjs/common/components/ui/formik/PullSecretField.js.map +1 -1
  157. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js +2 -1
  158. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -1
  159. package/build/cjs/common/config/docs_links.js +5 -4
  160. package/build/cjs/common/config/docs_links.js.map +1 -1
  161. package/build/cjs/common/utils.js +3 -0
  162. package/build/cjs/common/utils.js.map +1 -1
  163. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  164. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
  165. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  167. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +1 -1
  168. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
  169. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +1 -1
  170. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
  171. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +9 -0
  173. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +3 -0
  175. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterWizard/constants.js +1 -0
  177. package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +16 -22
  179. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +102 -0
  181. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -0
  182. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +7 -5
  183. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +3 -0
  185. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  186. package/build/cjs/ocm/components/featureSupportLevels/index.js +0 -1
  187. package/build/cjs/ocm/components/featureSupportLevels/index.js.map +1 -1
  188. package/build/cjs/ocm/services/ClustersService.js +3 -0
  189. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  190. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +1 -1
  191. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +91 -99
  192. package/lib/cim/components/ClusterDeployment/ClusterInstallationError.tsx +1 -1
  193. package/lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx +4 -3
  194. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +6 -6
  195. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx +2 -2
  196. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +2 -3
  197. package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +3 -2
  198. package/lib/cim/components/ClusterDeployment/constants.ts +2 -2
  199. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +1 -1
  200. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx +2 -2
  201. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +2 -2
  202. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +11 -11
  203. package/lib/cim/components/ClusterDeployment/types.ts +2 -3
  204. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +30 -19
  205. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +4 -0
  206. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +15 -2
  207. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.tsx +70 -0
  208. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +10 -2
  209. package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +4 -2
  210. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +9 -8
  211. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +0 -2
  212. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +1 -1
  213. package/lib/cim/components/helpers/status.ts +12 -13
  214. package/lib/cim/components/helpers/toAssisted.ts +3 -13
  215. package/lib/cim/components/helpers/versions.test.ts +21 -18
  216. package/lib/cim/components/helpers/versions.ts +7 -3
  217. package/lib/cim/components/index.ts +0 -1
  218. package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +4 -1
  219. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +3 -14
  220. package/lib/cim/hooks/index.tsx +1 -0
  221. package/lib/cim/hooks/useStorageClasses.tsx +15 -0
  222. package/lib/cim/index.ts +0 -1
  223. package/lib/common/api/assisted-service/ClustersAPI.ts +8 -0
  224. package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +9 -4
  225. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +5 -7
  226. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +3 -1
  227. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +1 -1
  228. package/lib/common/components/clusterDetail/ConsoleModal.tsx +1 -1
  229. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +16 -3
  230. package/lib/common/components/index.ts +1 -1
  231. package/lib/common/components/operators/operatorSpecs.tsx +0 -16
  232. package/lib/common/components/ui/formik/PullSecretField.tsx +5 -2
  233. package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +3 -0
  234. package/lib/common/config/docs_links.ts +5 -4
  235. package/lib/common/types/clusters.ts +1 -1
  236. package/lib/common/utils.ts +3 -0
  237. package/lib/ocm/components/AddHosts/types.ts +6 -3
  238. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +2 -2
  239. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +2 -2
  240. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +1 -1
  241. package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +1 -1
  242. package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +1 -1
  243. package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -0
  244. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +9 -0
  245. package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +3 -0
  246. package/lib/ocm/components/clusterWizard/constants.ts +1 -0
  247. package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +31 -52
  248. package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +173 -0
  249. package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +9 -7
  250. package/lib/ocm/components/clusterWizard/wizardTransition.ts +4 -0
  251. package/lib/ocm/components/featureSupportLevels/index.ts +0 -1
  252. package/lib/ocm/services/ClustersService.ts +5 -0
  253. package/package.json +5 -5
  254. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts +0 -9
  255. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +0 -1
  256. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts +0 -6
  257. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts.map +0 -1
  258. package/build/@types/cim/components/featureSupportLevels/index.d.ts +0 -2
  259. package/build/@types/cim/components/featureSupportLevels/index.d.ts.map +0 -1
  260. package/build/@types/cim/config/constants.d.ts +0 -16
  261. package/build/@types/cim/config/constants.d.ts.map +0 -1
  262. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts +0 -9
  263. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts.map +0 -1
  264. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts +0 -22
  265. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts.map +0 -1
  266. package/build/@types/common/components/featureSupportLevels/index.d.ts +0 -3
  267. package/build/@types/common/components/featureSupportLevels/index.d.ts.map +0 -1
  268. package/build/@types/common/components/featureSupportLevels/types.d.ts +0 -8
  269. package/build/@types/common/components/featureSupportLevels/types.d.ts.map +0 -1
  270. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +0 -82
  271. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +0 -1
  272. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js +0 -45
  273. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js.map +0 -1
  274. package/build/cjs/cim/components/featureSupportLevels/index.js +0 -7
  275. package/build/cjs/cim/components/featureSupportLevels/index.js.map +0 -1
  276. package/build/cjs/cim/config/constants.js +0 -272
  277. package/build/cjs/cim/config/constants.js.map +0 -1
  278. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js +0 -26
  279. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js.map +0 -1
  280. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js +0 -21
  281. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js.map +0 -1
  282. package/build/cjs/common/components/featureSupportLevels/index.js +0 -8
  283. package/build/cjs/common/components/featureSupportLevels/index.js.map +0 -1
  284. package/build/cjs/common/components/featureSupportLevels/types.js +0 -3
  285. package/build/cjs/common/components/featureSupportLevels/types.js.map +0 -1
  286. package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +0 -136
  287. package/lib/cim/components/featureSupportLevels/featureStateUtils.tsx +0 -61
  288. package/lib/cim/components/featureSupportLevels/index.ts +0 -1
  289. package/lib/cim/config/constants.ts +0 -285
  290. package/lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx +0 -37
  291. package/lib/common/components/featureSupportLevels/FeatureSupportLevelContext.tsx +0 -49
  292. package/lib/common/components/featureSupportLevels/index.ts +0 -2
  293. package/lib/common/components/featureSupportLevels/types.ts +0 -12
@@ -1,272 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.featureSupportLevelsACM = void 0;
4
- // source: https://github.com/openshift/assisted-service/blob/master/internal/featuresupport/support_levels_list.go
5
- exports.featureSupportLevelsACM = {
6
- supportLevels: [
7
- {
8
- features: [
9
- {
10
- featureId: 'VIP_AUTO_ALLOC',
11
- supportLevel: 'dev-preview',
12
- },
13
- {
14
- featureId: 'SNO',
15
- supportLevel: 'unsupported',
16
- },
17
- {
18
- featureId: 'ARM64_ARCHITECTURE',
19
- supportLevel: 'unsupported',
20
- },
21
- {
22
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
23
- supportLevel: 'unsupported',
24
- },
25
- {
26
- featureId: 'SINGLE_NODE_EXPANSION',
27
- supportLevel: 'unsupported',
28
- },
29
- {
30
- featureId: 'LVM',
31
- supportLevel: 'unsupported',
32
- },
33
- {
34
- featureId: 'DUAL_STACK_NETWORKING',
35
- supportLevel: 'unsupported',
36
- },
37
- {
38
- featureId: 'MULTIARCH_RELEASE_IMAGE',
39
- supportLevel: 'unsupported',
40
- },
41
- {
42
- featureId: 'NUTANIX_INTEGRATION',
43
- supportLevel: 'unsupported',
44
- },
45
- ],
46
- openshiftVersion: '4.6',
47
- },
48
- {
49
- features: [
50
- {
51
- featureId: 'DUAL_STACK_NETWORKING',
52
- supportLevel: 'unsupported',
53
- },
54
- {
55
- featureId: 'MULTIARCH_RELEASE_IMAGE',
56
- supportLevel: 'unsupported',
57
- },
58
- {
59
- featureId: 'NUTANIX_INTEGRATION',
60
- supportLevel: 'unsupported',
61
- },
62
- ],
63
- openshiftVersion: '4.7',
64
- },
65
- {
66
- features: [
67
- {
68
- featureId: 'DUAL_STACK_NETWORKING',
69
- supportLevel: 'supported',
70
- },
71
- {
72
- featureId: 'VIP_AUTO_ALLOC',
73
- supportLevel: 'dev-preview',
74
- },
75
- {
76
- featureId: 'SNO',
77
- supportLevel: 'dev-preview',
78
- },
79
- {
80
- featureId: 'ARM64_ARCHITECTURE',
81
- supportLevel: 'unsupported',
82
- },
83
- {
84
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
85
- supportLevel: 'unsupported',
86
- },
87
- {
88
- featureId: 'SINGLE_NODE_EXPANSION',
89
- supportLevel: 'unsupported',
90
- },
91
- {
92
- featureId: 'LVM',
93
- supportLevel: 'unsupported',
94
- },
95
- {
96
- featureId: 'MULTIARCH_RELEASE_IMAGE',
97
- supportLevel: 'unsupported',
98
- },
99
- {
100
- featureId: 'NUTANIX_INTEGRATION',
101
- supportLevel: 'unsupported',
102
- },
103
- ],
104
- openshiftVersion: '4.8',
105
- },
106
- {
107
- features: [
108
- {
109
- featureId: 'SNO',
110
- supportLevel: 'supported',
111
- },
112
- {
113
- featureId: 'DUAL_STACK_NETWORKING',
114
- supportLevel: 'supported',
115
- },
116
- {
117
- featureId: 'VIP_AUTO_ALLOC',
118
- supportLevel: 'dev-preview',
119
- },
120
- {
121
- featureId: 'ARM64_ARCHITECTURE',
122
- supportLevel: 'unsupported',
123
- },
124
- {
125
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
126
- supportLevel: 'unsupported',
127
- },
128
- {
129
- featureId: 'SINGLE_NODE_EXPANSION',
130
- supportLevel: 'unsupported',
131
- },
132
- {
133
- featureId: 'LVM',
134
- supportLevel: 'unsupported',
135
- },
136
- {
137
- featureId: 'MULTIARCH_RELEASE_IMAGE',
138
- supportLevel: 'unsupported',
139
- },
140
- {
141
- featureId: 'NUTANIX_INTEGRATION',
142
- supportLevel: 'unsupported',
143
- },
144
- ],
145
- openshiftVersion: '4.9',
146
- },
147
- {
148
- features: [
149
- {
150
- featureId: 'SNO',
151
- supportLevel: 'supported',
152
- },
153
- {
154
- featureId: 'ARM64_ARCHITECTURE',
155
- supportLevel: 'supported',
156
- },
157
- {
158
- featureId: 'DUAL_STACK_NETWORKING',
159
- supportLevel: 'supported',
160
- },
161
- {
162
- featureId: 'VIP_AUTO_ALLOC',
163
- supportLevel: 'dev-preview',
164
- },
165
- {
166
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
167
- supportLevel: 'unsupported',
168
- },
169
- {
170
- featureId: 'SINGLE_NODE_EXPANSION',
171
- supportLevel: 'unsupported',
172
- },
173
- {
174
- featureId: 'LVM',
175
- supportLevel: 'unsupported',
176
- },
177
- {
178
- featureId: 'MULTIARCH_RELEASE_IMAGE',
179
- supportLevel: 'unsupported',
180
- },
181
- {
182
- featureId: 'NUTANIX_INTEGRATION',
183
- supportLevel: 'unsupported',
184
- },
185
- ],
186
- openshiftVersion: '4.10',
187
- },
188
- {
189
- features: [
190
- {
191
- featureId: 'SNO',
192
- supportLevel: 'supported',
193
- },
194
- {
195
- featureId: 'ARM64_ARCHITECTURE',
196
- supportLevel: 'supported',
197
- },
198
- {
199
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
200
- supportLevel: 'supported',
201
- },
202
- {
203
- featureId: 'SINGLE_NODE_EXPANSION',
204
- supportLevel: 'supported',
205
- },
206
- {
207
- featureId: 'DUAL_STACK_NETWORKING',
208
- supportLevel: 'supported',
209
- },
210
- {
211
- featureId: 'MULTIARCH_RELEASE_IMAGE',
212
- supportLevel: 'tech-preview',
213
- },
214
- {
215
- featureId: 'VIP_AUTO_ALLOC',
216
- supportLevel: 'dev-preview',
217
- },
218
- {
219
- featureId: 'LVM',
220
- supportLevel: 'dev-preview',
221
- },
222
- {
223
- featureId: 'NUTANIX_INTEGRATION',
224
- supportLevel: 'dev-preview',
225
- },
226
- ],
227
- openshiftVersion: '4.11',
228
- },
229
- {
230
- features: [
231
- {
232
- featureId: 'SNO',
233
- supportLevel: 'supported',
234
- },
235
- {
236
- featureId: 'ARM64_ARCHITECTURE',
237
- supportLevel: 'supported',
238
- },
239
- {
240
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
241
- supportLevel: 'supported',
242
- },
243
- {
244
- featureId: 'SINGLE_NODE_EXPANSION',
245
- supportLevel: 'supported',
246
- },
247
- {
248
- featureId: 'LVM',
249
- supportLevel: 'supported',
250
- },
251
- {
252
- featureId: 'DUAL_STACK_NETWORKING',
253
- supportLevel: 'supported',
254
- },
255
- {
256
- featureId: 'NUTANIX_INTEGRATION',
257
- supportLevel: 'supported',
258
- },
259
- {
260
- featureId: 'MULTIARCH_RELEASE_IMAGE',
261
- supportLevel: 'tech-preview',
262
- },
263
- {
264
- featureId: 'VIP_AUTO_ALLOC',
265
- supportLevel: 'dev-preview',
266
- },
267
- ],
268
- openshiftVersion: '4.12',
269
- },
270
- ],
271
- };
272
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../lib/cim/config/constants.ts"],"names":[],"mappings":"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"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
5
- const types_1 = require("../../types");
6
- const TechnologyPreview_1 = require("../ui/TechnologyPreview");
7
- const DeveloperPreview_1 = require("../ui/DeveloperPreview");
8
- const FeatureSupportLevelContext_1 = require("./FeatureSupportLevelContext");
9
- const FeatureSupportLevelBadge = ({ featureId, openshiftVersion, }) => {
10
- const featureSupportLevelData = (0, FeatureSupportLevelContext_1.useFeatureSupportLevel)();
11
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
12
- const supportLevel = react_1.default.useMemo(() => {
13
- if (!openshiftVersion) {
14
- return undefined;
15
- }
16
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
17
- return featureSupportLevelData.getFeatureSupportLevel(openshiftVersion, featureId);
18
- }, [openshiftVersion, featureId, featureSupportLevelData]);
19
- if (!(0, types_1.isPreviewSupportLevel)(supportLevel)) {
20
- return null;
21
- }
22
- const testId = `${featureId}-support-level`;
23
- return supportLevel === 'tech-preview' ? (react_1.default.createElement(TechnologyPreview_1.TechnologyPreview, { testId: testId })) : (react_1.default.createElement(DeveloperPreview_1.DeveloperPreview, { testId: testId }));
24
- };
25
- exports.default = FeatureSupportLevelBadge;
26
- //# sourceMappingURL=FeatureSupportLevelBadge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeatureSupportLevelBadge.js","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAE1B,uCAA+D;AAC/D,+DAA4D;AAC5D,6DAA0D;AAC1D,6EAAsE;AAOtE,MAAM,wBAAwB,GAAqC,CAAC,EAClE,SAAS,EACT,gBAAgB,GACjB,EAAE,EAAE;IACH,MAAM,uBAAuB,GAAG,IAAA,mDAAsB,GAAE,CAAC;IACzD,mEAAmE;IACnE,MAAM,YAAY,GAA6B,eAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAChE,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,+DAA+D;QAC/D,OAAO,uBAAuB,CAAC,sBAAsB,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IACrF,CAAC,EAAE,CAAC,gBAAgB,EAAE,SAAS,EAAE,uBAAuB,CAAC,CAAC,CAAC;IAC3D,IAAI,CAAC,IAAA,6BAAqB,EAAC,YAAY,CAAC,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,GAAG,SAAS,gBAAgB,CAAC;IAC5C,OAAO,YAAY,KAAK,cAAc,CAAC,CAAC,CAAC,CACvC,8BAAC,qCAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,CACtC,CAAC,CAAC,CAAC,CACF,8BAAC,mCAAgB,IAAC,MAAM,EAAE,MAAM,GAAI,CACrC,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,wBAAwB,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useFeatureSupportLevel = exports.FeatureSupportLevelContextProvider = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const use_translation_wrapper_1 = require("../../hooks/use-translation-wrapper");
7
- const FeatureSupportLevelContext = react_1.default.createContext(null);
8
- const FeatureSupportLevelContextProvider = ({ value, children }) => {
9
- return (react_1.default.createElement(FeatureSupportLevelContext.Provider, { value: value }, children));
10
- };
11
- exports.FeatureSupportLevelContextProvider = FeatureSupportLevelContextProvider;
12
- const useFeatureSupportLevel = () => {
13
- const context = react_1.default.useContext(FeatureSupportLevelContext);
14
- const { t } = (0, use_translation_wrapper_1.useTranslation)();
15
- if (!context) {
16
- throw new Error(t('ai:useFeatureSupportLevel must be used within FeatureSupportLevelContextProvider.'));
17
- }
18
- return context;
19
- };
20
- exports.useFeatureSupportLevel = useFeatureSupportLevel;
21
- //# sourceMappingURL=FeatureSupportLevelContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeatureSupportLevelContext.js","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/FeatureSupportLevelContext.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAI1B,iFAAqE;AAqBrE,MAAM,0BAA0B,GAAG,eAAK,CAAC,aAAa,CAAiC,IAAI,CAAC,CAAC;AAEtF,MAAM,kCAAkC,GAG1C,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3B,OAAO,CACL,8BAAC,0BAA0B,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAC9C,QAAQ,CAC2B,CACvC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,kCAAkC,sCAS7C;AAEK,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACzC,MAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;IAE7D,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,CAAC,CAAC,mFAAmF,CAAC,CACvF,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAVW,QAAA,sBAAsB,0BAUjC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeatureSupportLevelBadge = void 0;
4
- const tslib_1 = require("tslib");
5
- var FeatureSupportLevelBadge_1 = require("./FeatureSupportLevelBadge");
6
- Object.defineProperty(exports, "FeatureSupportLevelBadge", { enumerable: true, get: function () { return tslib_1.__importDefault(FeatureSupportLevelBadge_1).default; } });
7
- tslib_1.__exportStar(require("./FeatureSupportLevelContext"), exports);
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/index.ts"],"names":[],"mappings":";;;;AAAA,uEAAiF;AAAxE,6JAAA,OAAO,OAA4B;AAC5C,uEAA6C"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/types.ts"],"names":[],"mappings":""}
@@ -1,136 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import {
3
- FeatureSupportLevelsMap,
4
- FeatureIdToSupportLevel,
5
- FeatureId,
6
- FeatureSupportLevelContextProvider,
7
- FeatureSupportLevelData,
8
- } from '../../../common';
9
- import { ClusterImageSetK8sResource } from '../../types';
10
- import { featureSupportLevelsACM } from '../../config/constants';
11
- import { getFeatureDisabledReason, isFeatureSupported } from './featureStateUtils';
12
- import { getOCPVersions, getVersionFromClusterImageSet } from '../helpers';
13
- import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
14
- import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
15
- import { getMajorMinorVersion } from '../../../common/utils';
16
-
17
- export type ACMFeatureSupportLevelProvider = PropsWithChildren<{
18
- clusterImages: ClusterImageSetK8sResource[];
19
- isEditClusterFlow?: boolean;
20
- }>;
21
- const getFeatureSupportLevelsMap = (): FeatureSupportLevelsMap => {
22
- try {
23
- const featureSupportLevelsMap: FeatureSupportLevelsMap = {};
24
- featureSupportLevelsACM.supportLevels.forEach((feature) => {
25
- const featureIdParams: FeatureIdToSupportLevel = {};
26
- const featureProps = feature.features;
27
- featureProps.forEach((ops) => {
28
- featureIdParams[ops.featureId] = ops.supportLevel;
29
- });
30
- featureSupportLevelsMap[feature.openshiftVersion] = featureIdParams;
31
- });
32
- return featureSupportLevelsMap;
33
- } catch (err) {
34
- // console.error(err);
35
- return {};
36
- }
37
- };
38
-
39
- export const ACMFeatureSupportLevelProvider: React.FC<ACMFeatureSupportLevelProvider> = ({
40
- children,
41
- clusterImages,
42
- isEditClusterFlow = false,
43
- }) => {
44
- const { t } = useTranslation();
45
-
46
- const supportLevelData: FeatureSupportLevelsMap = React.useMemo<FeatureSupportLevelsMap>(() => {
47
- return getFeatureSupportLevelsMap();
48
- }, []);
49
- const ocpVersions = getOCPVersions(clusterImages);
50
-
51
- const getNormalizedVersion = React.useCallback(
52
- (versionName: string) => {
53
- const clusterImage = clusterImages.find(
54
- (clusterImageSet) => clusterImageSet.metadata?.name === versionName,
55
- );
56
- const version = getVersionFromClusterImageSet(clusterImage);
57
- return getMajorMinorVersion(version);
58
- },
59
- [clusterImages],
60
- );
61
-
62
- const getVersionSupportLevelsMap: FeatureSupportLevelData['getVersionSupportLevelsMap'] =
63
- React.useCallback(
64
- (versionName: string): FeatureIdToSupportLevel | undefined => {
65
- const normalized = getNormalizedVersion(versionName);
66
- return normalized
67
- ? supportLevelData[normalized]
68
- : {
69
- /* empty FeatureIdToSupportLevel */
70
- };
71
- },
72
- [supportLevelData, getNormalizedVersion],
73
- );
74
-
75
- // TODO(mlibra): Following callbacks can be reused with the OCM flow, just based on providing an application-specific map
76
- const getFeatureSupportLevel: FeatureSupportLevelData['getFeatureSupportLevel'] =
77
- React.useCallback(
78
- (versionName: string, featureId: FeatureId): SupportLevel | undefined => {
79
- const versionSupportLevelData = getVersionSupportLevelsMap(versionName);
80
- return versionSupportLevelData ? versionSupportLevelData[featureId] : undefined;
81
- },
82
- [getVersionSupportLevelsMap],
83
- );
84
-
85
- const isFeatureSupportedCallback = React.useCallback(
86
- (versionName: string, featureId: FeatureId) => {
87
- const supportLevel = getFeatureSupportLevel(versionName, featureId);
88
- return isFeatureSupported(supportLevel);
89
- },
90
- [getFeatureSupportLevel],
91
- );
92
-
93
- const getDisabledReasonCallback = React.useCallback(
94
- (versionName: string, featureId: FeatureId) => {
95
- const isSupported = isFeatureSupportedCallback(versionName, featureId);
96
- return getFeatureDisabledReason(
97
- featureId,
98
- isEditClusterFlow,
99
- versionName,
100
- ocpVersions,
101
- isSupported,
102
- t,
103
- );
104
- },
105
- [isFeatureSupportedCallback, t, ocpVersions, isEditClusterFlow],
106
- );
107
-
108
- const isFeatureDisabled = React.useCallback(
109
- (version: string, featureId: FeatureId) => !!getDisabledReasonCallback(version, featureId),
110
- [getDisabledReasonCallback],
111
- );
112
-
113
- const providerValue = React.useMemo<FeatureSupportLevelData>(() => {
114
- return {
115
- getVersionSupportLevelsMap,
116
- getFeatureSupportLevel,
117
- isFeatureDisabled,
118
- getFeatureDisabledReason: getDisabledReasonCallback,
119
- isFeatureSupported: isFeatureSupportedCallback,
120
- };
121
- }, [
122
- getVersionSupportLevelsMap,
123
- getFeatureSupportLevel,
124
- isFeatureDisabled,
125
- getDisabledReasonCallback,
126
- isFeatureSupportedCallback,
127
- ]);
128
-
129
- return (
130
- <FeatureSupportLevelContextProvider value={providerValue}>
131
- {children}
132
- </FeatureSupportLevelContextProvider>
133
- );
134
- };
135
-
136
- export default ACMFeatureSupportLevelProvider;
@@ -1,61 +0,0 @@
1
- import { FeatureId, OpenshiftVersionOptionType } from '../../../common/types';
2
- import { TFunction } from 'i18next';
3
- import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
4
-
5
- const getClusterExistsReason = (t: TFunction) =>
6
- t('ai:This option is not editable after the draft cluster is created');
7
-
8
- const getSNODisabledReason = (clusterExists: boolean, isSupported: boolean, t: TFunction) => {
9
- if (clusterExists) {
10
- return getClusterExistsReason(t);
11
- }
12
- if (!isSupported) {
13
- return t('ai:Single-Node OpenShift is not supported in this OpenShift version');
14
- }
15
- return undefined;
16
- };
17
-
18
- const getArmDisabledReason = (
19
- clusterExists: boolean,
20
- versionName: string,
21
- versionOptions: OpenshiftVersionOptionType[],
22
- isSupported: boolean,
23
- t: TFunction,
24
- ) => {
25
- if (clusterExists) {
26
- return getClusterExistsReason(t);
27
- }
28
- if (!isSupported) {
29
- return t('ai:arm64 is not supported in this OpenShift version');
30
- }
31
- // TODO(jtomasek): versionOptions derived from clusterimagesets need to include cpuArchitectures array to correctly determine this
32
- // if (!isArmSupportedByTheImage(versionName, versionOptions)) {
33
- // return t('ai:Selected image does not support arm64');
34
- // }
35
- return undefined;
36
- };
37
-
38
- export const getFeatureDisabledReason = (
39
- featureId: FeatureId,
40
- clusterExists: boolean,
41
- versionName: string,
42
- versionOptions: OpenshiftVersionOptionType[],
43
- isSupported: boolean,
44
- t: TFunction,
45
- ): string | undefined => {
46
- switch (featureId) {
47
- case 'SNO': {
48
- return getSNODisabledReason(clusterExists, isSupported, t);
49
- }
50
- case 'ARM64_ARCHITECTURE': {
51
- return getArmDisabledReason(clusterExists, versionName, versionOptions, isSupported, t);
52
- }
53
- default: {
54
- return undefined;
55
- }
56
- }
57
- };
58
-
59
- export const isFeatureSupported = (supportLevel: SupportLevel | undefined) => {
60
- return supportLevel !== 'unsupported';
61
- };
@@ -1 +0,0 @@
1
- export { default as ACMFeatureSupportLevelProvider } from './ACMFeatureSupportLevelProvider';