@openshift-assisted/ui-lib 2.38.5 → 2.39.0

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 (523) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts +2 -3
  2. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts +3 -0
  4. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
  6. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  8. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +1 -1
  9. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts +1 -1
  10. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts.map +1 -1
  11. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts +15 -2
  12. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +1 -1
  13. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts +1 -2
  14. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts.map +1 -1
  15. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts +1 -2
  16. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  17. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts +8 -7
  18. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts.map +1 -1
  19. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts +4 -2
  20. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  21. package/build/@types/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.d.ts +17 -0
  22. package/build/@types/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +1 -0
  23. package/build/@types/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.d.ts +8 -0
  24. package/build/@types/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.d.ts.map +1 -0
  25. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +16 -0
  26. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -0
  27. package/build/@types/cim/components/ClusterDeployment/constants.d.ts +2 -0
  28. package/build/@types/cim/components/ClusterDeployment/constants.d.ts.map +1 -1
  29. package/build/@types/cim/components/ClusterDeployment/index.d.ts +1 -2
  30. package/build/@types/cim/components/ClusterDeployment/index.d.ts.map +1 -1
  31. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -11
  32. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
  33. package/build/@types/cim/components/ClusterDeployment/types.d.ts +7 -9
  34. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  35. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +8 -2
  36. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
  37. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
  38. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  39. package/build/@types/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.d.ts.map +1 -1
  40. package/build/@types/cim/components/Hypershift/types.d.ts +6 -3
  41. package/build/@types/cim/components/Hypershift/types.d.ts.map +1 -1
  42. package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
  43. package/build/@types/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.d.ts +7 -0
  44. package/build/@types/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.d.ts.map +1 -0
  45. package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts +2 -1
  46. package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts.map +1 -1
  47. package/build/@types/cim/components/helpers/agents.d.ts +3 -0
  48. package/build/@types/cim/components/helpers/agents.d.ts.map +1 -1
  49. package/build/@types/cim/components/helpers/clusterDeployment.d.ts +1 -1
  50. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  51. package/build/@types/cim/components/helpers/versions.d.ts +2 -2
  52. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  53. package/build/@types/cim/components/modals/EditAgentModal.d.ts.map +1 -1
  54. package/build/@types/cim/components/modals/ScaleUpModal.d.ts +3 -0
  55. package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
  56. package/build/@types/common/api/index.d.ts +1 -0
  57. package/build/@types/common/api/index.d.ts.map +1 -1
  58. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +2 -2
  59. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  60. package/build/@types/common/components/clusterDetail/index.d.ts +1 -0
  61. package/build/@types/common/components/clusterDetail/index.d.ts.map +1 -1
  62. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  63. package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
  64. package/build/@types/common/components/hosts/HostPropertyValidationPopover.d.ts.map +1 -1
  65. package/build/@types/common/components/newFeatureSupportLevels/types.d.ts +4 -2
  66. package/build/@types/common/components/newFeatureSupportLevels/types.d.ts.map +1 -1
  67. package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
  68. package/build/@types/common/components/ui/DeveloperPreview.d.ts.map +1 -1
  69. package/build/@types/common/components/ui/{OpenshiftSelectWithSearch.d.ts → OpenShiftSelectWithSearch.d.ts} +3 -3
  70. package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts.map +1 -0
  71. package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts +2 -2
  72. package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts.map +1 -1
  73. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts +12 -0
  74. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -0
  75. package/build/@types/common/components/ui/WizardFooter.d.ts +1 -0
  76. package/build/@types/common/components/ui/WizardFooter.d.ts.map +1 -1
  77. package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
  78. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +1 -1
  79. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  80. package/build/@types/common/components/ui/index.d.ts +2 -0
  81. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  82. package/build/@types/common/config/constants.d.ts +20 -0
  83. package/build/@types/common/config/constants.d.ts.map +1 -1
  84. package/build/@types/common/config/docs_links.d.ts +8 -1
  85. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  86. package/build/@types/common/hooks/index.d.ts +1 -0
  87. package/build/@types/common/hooks/index.d.ts.map +1 -1
  88. package/build/@types/common/index.d.ts +1 -0
  89. package/build/@types/common/index.d.ts.map +1 -1
  90. package/build/@types/common/types/clusters.d.ts +5 -0
  91. package/build/@types/common/types/clusters.d.ts.map +1 -1
  92. package/build/@types/ocm/components/clusterConfiguration/HostInventory.d.ts.map +1 -1
  93. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  94. package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts.map +1 -1
  95. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +1 -1
  96. package/build/@types/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.d.ts.map +1 -1
  97. package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts.map +1 -1
  98. package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts.map +1 -1
  99. package/build/@types/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.d.ts +8 -0
  100. package/build/@types/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.d.ts.map +1 -0
  101. package/build/@types/ocm/components/clusterConfiguration/operators/KmmCheckbox.d.ts.map +1 -1
  102. package/build/@types/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.d.ts +8 -0
  103. package/build/@types/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.d.ts.map +1 -0
  104. package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts.map +1 -1
  105. package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts.map +1 -1
  106. package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts.map +1 -1
  107. package/build/@types/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.d.ts +8 -0
  108. package/build/@types/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.d.ts.map +1 -0
  109. package/build/@types/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.d.ts +8 -0
  110. package/build/@types/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.d.ts.map +1 -0
  111. package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts.map +1 -1
  112. package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts.map +1 -1
  113. package/build/@types/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.d.ts +8 -0
  114. package/build/@types/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.d.ts.map +1 -0
  115. package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts.map +1 -1
  116. package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts.map +1 -1
  117. package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts.map +1 -1
  118. package/build/@types/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.d.ts.map +1 -1
  119. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
  120. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.d.ts.map +1 -1
  121. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  122. package/build/@types/ocm/components/clusterWizard/ClusterWizard.d.ts.map +1 -1
  123. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  124. package/build/@types/ocm/components/clusterWizard/ClusterWizardFooter.d.ts.map +1 -1
  125. package/build/@types/ocm/components/clusterWizard/KubeconfigDownload.d.ts +7 -0
  126. package/build/@types/ocm/components/clusterWizard/KubeconfigDownload.d.ts.map +1 -0
  127. package/build/@types/ocm/components/clusterWizard/{OpenshiftVersionsContext.d.ts → OpenShiftVersionsContext.d.ts} +4 -4
  128. package/build/@types/ocm/components/clusterWizard/{OpenshiftVersionsContext.d.ts.map → OpenShiftVersionsContext.d.ts.map} +1 -1
  129. package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
  130. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  131. package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
  132. package/build/@types/ocm/components/clusterWizard/index.d.ts +2 -0
  133. package/build/@types/ocm/components/clusterWizard/index.d.ts.map +1 -1
  134. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +2 -2
  135. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  136. package/build/@types/ocm/components/clusters/ClusterPage.d.ts +2 -1
  137. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  138. package/build/@types/ocm/components/clusters/index.d.ts +3 -0
  139. package/build/@types/ocm/components/clusters/index.d.ts.map +1 -1
  140. package/build/@types/ocm/components/hosts/ModalDialogsContext.d.ts +5 -1
  141. package/build/@types/ocm/components/hosts/ModalDialogsContext.d.ts.map +1 -1
  142. package/build/@types/ocm/components/index.d.ts +2 -0
  143. package/build/@types/ocm/components/index.d.ts.map +1 -1
  144. package/build/@types/ocm/hooks/index.d.ts +2 -0
  145. package/build/@types/ocm/hooks/index.d.ts.map +1 -1
  146. package/build/@types/ocm/index.d.ts +1 -0
  147. package/build/@types/ocm/index.d.ts.map +1 -1
  148. package/build/@types/ocm/services/OperatorsService.d.ts +1 -1
  149. package/build/@types/ocm/services/OperatorsService.d.ts.map +1 -1
  150. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js +9 -7
  151. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +1 -1
  152. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js +40 -14
  153. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +1 -1
  154. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +13 -29
  155. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
  156. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js +2 -12
  157. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  158. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js +50 -26
  159. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +1 -1
  160. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js +3 -3
  161. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +1 -1
  162. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js +39 -21
  163. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
  164. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js +58 -27
  165. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +1 -1
  166. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js +24 -24
  167. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js.map +1 -1
  168. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +26 -42
  169. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  170. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.js +12 -8
  171. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.js.map +1 -1
  172. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +24 -9
  173. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  174. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +5 -5
  175. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  176. package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js +50 -0
  177. package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js.map +1 -0
  178. package/build/cjs/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.js +24 -0
  179. package/build/cjs/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.js.map +1 -0
  180. package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js +17 -0
  181. package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -0
  182. package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -0
  183. package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
  184. package/build/cjs/cim/components/ClusterDeployment/index.js +2 -5
  185. package/build/cjs/cim/components/ClusterDeployment/index.js.map +1 -1
  186. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +1 -14
  187. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  188. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +2 -2
  189. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  190. package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js +6 -4
  191. package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js.map +1 -1
  192. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -12
  193. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  194. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +2 -2
  195. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  196. package/build/cjs/cim/components/InfraEnv/{OpenshiftVersionDropdown.js → InfraEnvOpenShiftVersionDropdown.js} +3 -3
  197. package/build/cjs/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.js.map +1 -0
  198. package/build/cjs/cim/components/common/CpuArchitectureDropdown.js +14 -19
  199. package/build/cjs/cim/components/common/CpuArchitectureDropdown.js.map +1 -1
  200. package/build/cjs/cim/components/helpers/agents.js +19 -1
  201. package/build/cjs/cim/components/helpers/agents.js.map +1 -1
  202. package/build/cjs/cim/components/helpers/toAssisted.js +25 -23
  203. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  204. package/build/cjs/cim/components/helpers/versions.js +19 -11
  205. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  206. package/build/cjs/cim/components/modals/EditAgentModal.js +2 -2
  207. package/build/cjs/cim/components/modals/EditAgentModal.js.map +1 -1
  208. package/build/cjs/cim/components/modals/ScaleUpModal.js +3 -2
  209. package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
  210. package/build/cjs/common/api/index.js +1 -0
  211. package/build/cjs/common/api/index.js.map +1 -1
  212. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +11 -9
  213. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  214. package/build/cjs/common/components/clusterDetail/index.js +3 -1
  215. package/build/cjs/common/components/clusterDetail/index.js.map +1 -1
  216. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +14 -18
  217. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  218. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +4 -4
  219. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
  220. package/build/cjs/common/components/hosts/EditHostForm.js +3 -3
  221. package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
  222. package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js +12 -9
  223. package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
  224. package/build/cjs/common/components/storage/DisksTable.js +0 -2
  225. package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
  226. package/build/cjs/common/components/ui/DeveloperPreview.js +2 -1
  227. package/build/cjs/common/components/ui/DeveloperPreview.js.map +1 -1
  228. package/build/cjs/common/components/ui/{OpenshiftSelectWithSearch.js → OpenShiftSelectWithSearch.js} +6 -6
  229. package/build/cjs/common/components/ui/{OpenshiftSelectWithSearch.js.map → OpenShiftSelectWithSearch.js.map} +1 -1
  230. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.css +9 -0
  231. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +2 -2
  232. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
  233. package/build/cjs/{ocm/components/clusterConfiguration → common/components/ui}/OpenShiftVersionModal.js +4 -6
  234. package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -0
  235. package/build/cjs/common/components/ui/WizardFooter.js +5 -3
  236. package/build/cjs/common/components/ui/WizardFooter.js.map +1 -1
  237. package/build/cjs/common/components/ui/formik/RichInputField.js +3 -2
  238. package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
  239. package/build/cjs/common/components/ui/formik/validationSchemas.js +18 -15
  240. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  241. package/build/cjs/common/components/ui/index.js +2 -0
  242. package/build/cjs/common/components/ui/index.js.map +1 -1
  243. package/build/cjs/common/config/constants.js +33 -2
  244. package/build/cjs/common/config/constants.js.map +1 -1
  245. package/build/cjs/common/config/docs_links.js +22 -9
  246. package/build/cjs/common/config/docs_links.js.map +1 -1
  247. package/build/cjs/common/hooks/index.js +3 -1
  248. package/build/cjs/common/hooks/index.js.map +1 -1
  249. package/build/cjs/common/index.js +1 -0
  250. package/build/cjs/common/index.js.map +1 -1
  251. package/build/cjs/common/types/clusters.js.map +1 -1
  252. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js +2 -2
  253. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +2 -2
  254. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.js +2 -2
  255. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
  256. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +3 -4
  257. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  258. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersion.js +1 -1
  259. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js +5 -6
  260. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js.map +1 -1
  261. package/build/cjs/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.js +2 -2
  262. package/build/cjs/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.js.map +1 -1
  263. package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js +1 -2
  264. package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js.map +1 -1
  265. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +1 -3
  266. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +1 -1
  267. package/build/cjs/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.js +34 -0
  268. package/build/cjs/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.js.map +1 -0
  269. package/build/cjs/ocm/components/clusterConfiguration/operators/KmmCheckbox.js +9 -3
  270. package/build/cjs/ocm/components/clusterConfiguration/operators/KmmCheckbox.js.map +1 -1
  271. package/build/cjs/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.js +34 -0
  272. package/build/cjs/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.js.map +1 -0
  273. package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js +1 -2
  274. package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js.map +1 -1
  275. package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +0 -1
  276. package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +1 -1
  277. package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +1 -1
  278. package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +1 -1
  279. package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js +2 -2
  280. package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js.map +1 -1
  281. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js +1 -1
  282. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js.map +1 -1
  283. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js +1 -2
  284. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js.map +1 -1
  285. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.js +34 -0
  286. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.js.map +1 -0
  287. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.js +34 -0
  288. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.js.map +1 -0
  289. package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js +2 -2
  290. package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js.map +1 -1
  291. package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +1 -1
  292. package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +1 -1
  293. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js +1 -1
  294. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js.map +1 -1
  295. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.js +1 -1
  296. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.js +1 -1
  297. package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js +1 -1
  298. package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js.map +1 -1
  299. package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js +1 -2
  300. package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js.map +1 -1
  301. package/build/cjs/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.js +34 -0
  302. package/build/cjs/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.js.map +1 -0
  303. package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js +1 -2
  304. package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js.map +1 -1
  305. package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js +1 -2
  306. package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js.map +1 -1
  307. package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js +20 -0
  308. package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js.map +1 -1
  309. package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js +9 -2
  310. package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js.map +1 -1
  311. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +27 -10
  312. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  313. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +2 -2
  314. package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js +1 -1
  315. package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js.map +1 -1
  316. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsSelect.js +1 -1
  317. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +8 -2
  318. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
  319. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +2 -2
  320. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -2
  321. package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +2 -2
  322. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +2 -2
  323. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +5 -1
  324. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  325. package/build/cjs/ocm/components/clusterWizard/ClusterWizard.js +3 -0
  326. package/build/cjs/ocm/components/clusterWizard/ClusterWizard.js.map +1 -1
  327. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +1 -2
  328. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  329. package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js +11 -1
  330. package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
  331. package/build/cjs/ocm/components/clusterWizard/KubeconfigDownload.js +21 -0
  332. package/build/cjs/ocm/components/clusterWizard/KubeconfigDownload.js.map +1 -0
  333. package/build/cjs/ocm/components/clusterWizard/{OpenshiftVersionsContext.js → OpenShiftVersionsContext.js} +10 -10
  334. package/build/cjs/ocm/components/clusterWizard/{OpenshiftVersionsContext.js.map → OpenShiftVersionsContext.js.map} +1 -1
  335. package/build/cjs/ocm/components/clusterWizard/Operators.js +5 -0
  336. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  337. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +13 -6
  338. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  339. package/build/cjs/ocm/components/clusterWizard/constants.js +1 -0
  340. package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
  341. package/build/cjs/ocm/components/clusterWizard/index.js +5 -1
  342. package/build/cjs/ocm/components/clusterWizard/index.js.map +1 -1
  343. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +3 -0
  344. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  345. package/build/cjs/ocm/components/clusters/ClusterPage.js +7 -9
  346. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  347. package/build/cjs/ocm/components/clusters/NewClusterPage.js +2 -2
  348. package/build/cjs/ocm/components/clusters/index.js +7 -1
  349. package/build/cjs/ocm/components/clusters/index.js.map +1 -1
  350. package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js +2 -2
  351. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +2 -2
  352. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
  353. package/build/cjs/ocm/components/hosts/ModalDialogsContext.js +1 -0
  354. package/build/cjs/ocm/components/hosts/ModalDialogsContext.js.map +1 -1
  355. package/build/cjs/ocm/components/index.js +2 -0
  356. package/build/cjs/ocm/components/index.js.map +1 -1
  357. package/build/cjs/ocm/hooks/index.js +5 -1
  358. package/build/cjs/ocm/hooks/index.js.map +1 -1
  359. package/build/cjs/ocm/hooks/useInfraEnv.js +2 -2
  360. package/build/cjs/ocm/hooks/useInfraEnv.js.map +1 -1
  361. package/build/cjs/ocm/index.js +1 -0
  362. package/build/cjs/ocm/index.js.map +1 -1
  363. package/build/cjs/ocm/services/OperatorsService.js +7 -2
  364. package/build/cjs/ocm/services/OperatorsService.js.map +1 -1
  365. package/lib/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.tsx +11 -9
  366. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +85 -19
  367. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +25 -53
  368. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.tsx +7 -16
  369. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.tsx +102 -59
  370. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx +16 -10
  371. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.tsx +84 -48
  372. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx +106 -54
  373. package/lib/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.tsx +96 -85
  374. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +109 -119
  375. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.tsx +27 -14
  376. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +54 -13
  377. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +5 -5
  378. package/lib/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.tsx +107 -0
  379. package/lib/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.tsx +49 -0
  380. package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +41 -0
  381. package/lib/cim/components/ClusterDeployment/constants.ts +3 -1
  382. package/lib/cim/components/ClusterDeployment/index.ts +1 -3
  383. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +1 -26
  384. package/lib/cim/components/ClusterDeployment/types.ts +7 -10
  385. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +3 -3
  386. package/lib/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.tsx +4 -2
  387. package/lib/cim/components/Hypershift/types.ts +6 -3
  388. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +7 -16
  389. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +2 -2
  390. package/lib/cim/components/InfraEnv/{OpenshiftVersionDropdown.tsx → InfraEnvOpenShiftVersionDropdown.tsx} +2 -2
  391. package/lib/cim/components/common/CpuArchitectureDropdown.tsx +51 -40
  392. package/lib/cim/components/helpers/agents.ts +30 -1
  393. package/lib/cim/components/helpers/toAssisted.ts +12 -8
  394. package/lib/cim/components/helpers/versions.ts +20 -6
  395. package/lib/cim/components/modals/EditAgentModal.tsx +2 -1
  396. package/lib/cim/components/modals/ScaleUpModal.tsx +12 -2
  397. package/lib/common/api/index.ts +1 -0
  398. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +14 -14
  399. package/lib/common/components/clusterDetail/index.ts +1 -0
  400. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +50 -61
  401. package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +4 -4
  402. package/lib/common/components/hosts/EditHostForm.tsx +16 -6
  403. package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +10 -4
  404. package/lib/common/components/newFeatureSupportLevels/types.ts +14 -10
  405. package/lib/common/components/storage/DisksTable.tsx +0 -2
  406. package/lib/common/components/ui/DeveloperPreview.tsx +2 -0
  407. package/lib/common/components/ui/{OpenshiftSelectWithSearch.tsx → OpenShiftSelectWithSearch.tsx} +4 -4
  408. package/lib/common/components/ui/OpenShiftVersionDropdown.css +9 -0
  409. package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +3 -3
  410. package/lib/{ocm/components/clusterConfiguration → common/components/ui}/OpenShiftVersionModal.tsx +9 -9
  411. package/lib/common/components/ui/WizardFooter.tsx +26 -10
  412. package/lib/common/components/ui/formik/RichInputField.tsx +4 -2
  413. package/lib/common/components/ui/formik/validationSchemas.ts +13 -10
  414. package/lib/common/components/ui/index.ts +3 -0
  415. package/lib/common/config/constants.ts +31 -1
  416. package/lib/common/config/docs_links.ts +37 -7
  417. package/lib/common/hooks/index.ts +1 -0
  418. package/lib/common/index.ts +1 -0
  419. package/lib/common/types/clusters.ts +5 -0
  420. package/lib/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.tsx +2 -2
  421. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +3 -3
  422. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.tsx +3 -3
  423. package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +0 -1
  424. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +9 -13
  425. package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersion.tsx +1 -1
  426. package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +9 -5
  427. package/lib/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.tsx +2 -1
  428. package/lib/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.tsx +3 -7
  429. package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +1 -3
  430. package/lib/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.tsx +71 -0
  431. package/lib/ocm/components/clusterConfiguration/operators/KmmCheckbox.tsx +9 -8
  432. package/lib/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.tsx +66 -0
  433. package/lib/ocm/components/clusterConfiguration/operators/LsoCheckbox.tsx +2 -7
  434. package/lib/ocm/components/clusterConfiguration/operators/LvmCheckbox.tsx +1 -1
  435. package/lib/ocm/components/clusterConfiguration/operators/MceCheckbox.tsx +1 -1
  436. package/lib/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.tsx +3 -4
  437. package/lib/ocm/components/clusterConfiguration/operators/NmstateCheckbox.tsx +1 -1
  438. package/lib/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.tsx +2 -7
  439. package/lib/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.tsx +66 -0
  440. package/lib/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.tsx +66 -0
  441. package/lib/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.tsx +2 -1
  442. package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +1 -1
  443. package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.tsx +1 -1
  444. package/lib/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.tsx +1 -1
  445. package/lib/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.tsx +1 -1
  446. package/lib/ocm/components/clusterConfiguration/operators/OscCheckbox.tsx +1 -1
  447. package/lib/ocm/components/clusterConfiguration/operators/PipelinesChekbox.tsx +2 -7
  448. package/lib/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.tsx +68 -0
  449. package/lib/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.tsx +2 -7
  450. package/lib/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.tsx +2 -7
  451. package/lib/ocm/components/clusterConfiguration/operators/SupportedOperators.tsx +25 -0
  452. package/lib/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.tsx +9 -0
  453. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +55 -30
  454. package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +2 -2
  455. package/lib/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.tsx +1 -1
  456. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsSelect.tsx +1 -1
  457. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +13 -8
  458. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +3 -3
  459. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +3 -3
  460. package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +2 -2
  461. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +2 -2
  462. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +7 -1
  463. package/lib/ocm/components/clusterWizard/ClusterWizard.tsx +3 -0
  464. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +1 -2
  465. package/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx +15 -1
  466. package/lib/ocm/components/clusterWizard/KubeconfigDownload.tsx +39 -0
  467. package/lib/ocm/components/clusterWizard/{OpenshiftVersionsContext.tsx → OpenShiftVersionsContext.tsx} +8 -8
  468. package/lib/ocm/components/clusterWizard/Operators.tsx +10 -0
  469. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +13 -5
  470. package/lib/ocm/components/clusterWizard/constants.ts +1 -0
  471. package/lib/ocm/components/clusterWizard/index.ts +2 -0
  472. package/lib/ocm/components/clusterWizard/wizardTransition.ts +6 -1
  473. package/lib/ocm/components/clusters/ClusterPage.tsx +16 -13
  474. package/lib/ocm/components/clusters/NewClusterPage.tsx +3 -3
  475. package/lib/ocm/components/clusters/index.ts +3 -0
  476. package/lib/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.tsx +2 -2
  477. package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +2 -2
  478. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
  479. package/lib/ocm/components/hosts/ModalDialogsContext.tsx +8 -1
  480. package/lib/ocm/components/index.ts +2 -0
  481. package/lib/ocm/hooks/index.ts +2 -0
  482. package/lib/ocm/hooks/useInfraEnv.ts +1 -1
  483. package/lib/ocm/index.ts +1 -0
  484. package/lib/ocm/services/OperatorsService.tsx +12 -2
  485. package/package.json +4 -3
  486. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.d.ts +0 -10
  487. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.d.ts.map +0 -1
  488. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.d.ts +0 -13
  489. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.d.ts.map +0 -1
  490. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.d.ts +0 -4
  491. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.d.ts.map +0 -1
  492. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.d.ts +0 -7
  493. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.d.ts.map +0 -1
  494. package/build/@types/cim/components/InfraEnv/OpenshiftVersionDropdown.d.ts +0 -7
  495. package/build/@types/cim/components/InfraEnv/OpenshiftVersionDropdown.d.ts.map +0 -1
  496. package/build/@types/common/components/ui/OpenshiftSelectWithSearch.d.ts.map +0 -1
  497. package/build/@types/ocm/components/clusterConfiguration/OpenShiftVersionModal.d.ts +0 -10
  498. package/build/@types/ocm/components/clusterConfiguration/OpenShiftVersionModal.d.ts.map +0 -1
  499. package/build/@types/ocm/components/clusterDetail/RebootNodeZeroModal.d.ts +0 -7
  500. package/build/@types/ocm/components/clusterDetail/RebootNodeZeroModal.d.ts.map +0 -1
  501. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js +0 -31
  502. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js.map +0 -1
  503. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.js +0 -50
  504. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.js.map +0 -1
  505. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.js +0 -35
  506. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.js.map +0 -1
  507. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.js +0 -9
  508. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.js.map +0 -1
  509. package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js.map +0 -1
  510. package/build/cjs/common/components/ui/OpenshiftVersionDropdown.css +0 -4
  511. package/build/cjs/ocm/components/clusterConfiguration/OpenShiftVersionModal.js.map +0 -1
  512. package/build/cjs/ocm/components/clusterDetail/RebootNodeZeroModal.css +0 -7
  513. package/build/cjs/ocm/components/clusterDetail/RebootNodeZeroModal.js +0 -35
  514. package/build/cjs/ocm/components/clusterDetail/RebootNodeZeroModal.js.map +0 -1
  515. package/lib/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.tsx +0 -79
  516. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.tsx +0 -128
  517. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.tsx +0 -81
  518. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.tsx +0 -13
  519. package/lib/common/components/ui/OpenshiftVersionDropdown.css +0 -4
  520. package/lib/ocm/components/clusterDetail/RebootNodeZeroModal.css +0 -7
  521. package/lib/ocm/components/clusterDetail/RebootNodeZeroModal.tsx +0 -69
  522. /package/build/cjs/{ocm/components/clusterConfiguration/OpenshiftVersionModal.css → common/components/ui/OpenShiftVersionModal.css} +0 -0
  523. /package/lib/{ocm/components/clusterConfiguration/OpenshiftVersionModal.css → common/components/ui/OpenShiftVersionModal.css} +0 -0
@@ -4,17 +4,15 @@ export * from './AdditionalNTPSourcesDialogToggle';
4
4
  export * from './LogsDownloadButton';
5
5
  export * from './wizardTransition';
6
6
  export * from './networkConfigurationValidation';
7
+ export * from './ClusterDeploymentWizard';
7
8
 
8
9
  export { default as ClusterDeploymentValidationsOverview } from './ClusterDeploymentValidationsOverview';
9
10
  export { default as ClusterDeploymentDetails } from './ClusterDeploymentDetails';
10
11
  export { default as ClusterDeploymentProgress } from './ClusterDeploymentProgress';
11
12
  export { default as ClusterDeploymentCredentials } from './ClusterDeploymentCredentials';
12
13
  export { default as ClusterDeploymentKubeconfigDownload } from './ClusterDeploymentKubeconfigDownload';
13
- export { default as ClusterDeploymentWizard } from './ClusterDeploymentWizard';
14
14
  export { default as ClusterInstallationError } from './ClusterInstallationError';
15
15
  export { default as NetworkConfiguration } from './NetworkConfiguration';
16
-
17
16
  export { default as ACMClusterDeploymentDetailsStep } from './ACMClusterDeploymentDetailsStep';
18
17
 
19
- export { default as ClusterDeploymentCreateProgress } from './ClusterDeploymentCreateProgress';
20
18
  export { getTotalCompute } from './ShortCapacitySummary';
@@ -1,17 +1,8 @@
1
- import * as Yup from 'yup';
2
1
  import {
3
2
  Cluster,
4
3
  ClusterDefaultConfig,
5
4
  } from '@openshift-assisted/types/assisted-installer-service';
6
- import { HostSubnets, NetworkConfigurationValues } from '../../../common/types/clusters';
7
- import {
8
- hostPrefixValidationSchema,
9
- hostSubnetValidationSchema,
10
- ipBlockValidationSchema,
11
- sshPublicKeyValidationSchema,
12
- vipValidationSchema,
13
- } from '../../../common/components/ui';
14
-
5
+ import { NetworkConfigurationValues } from '../../../common/types/clusters';
15
6
  import {
16
7
  getSubnetFromMachineNetworkCidr,
17
8
  getHostSubnets,
@@ -63,19 +54,3 @@ export const getNetworkInitialValues = (
63
54
  networkType: cluster.networkType || NETWORK_TYPE_OVN,
64
55
  };
65
56
  };
66
-
67
- export const getNetworkConfigurationValidationSchema = (
68
- initialValues: NetworkConfigurationValues,
69
- hostSubnets: HostSubnets,
70
- ) =>
71
- Yup.lazy((values: NetworkConfigurationValues) =>
72
- Yup.object<NetworkConfigurationValues>().shape({
73
- clusterNetworkHostPrefix: hostPrefixValidationSchema(values.clusterNetworkCidr),
74
- clusterNetworkCidr: ipBlockValidationSchema(values.serviceNetworkCidr),
75
- serviceNetworkCidr: ipBlockValidationSchema(values.clusterNetworkCidr),
76
- apiVip: vipValidationSchema(hostSubnets, values, initialValues.apiVip),
77
- ingressVip: vipValidationSchema(hostSubnets, values, initialValues.ingressVip),
78
- sshPublicKey: sshPublicKeyValidationSchema,
79
- hostSubnet: hostSubnetValidationSchema,
80
- }),
81
- );
@@ -17,14 +17,13 @@ import { BMCFormProps } from '../Agent/types';
17
17
  import { AgentMachineK8sResource } from '../Hypershift/types';
18
18
  import { AddHostDropdownProps, ProvisioningConfigResult } from '../InfraEnv/types';
19
19
  import { AddHostModalProps, EditBMHModalProps, UploadActionModalProps } from '../modals/types';
20
+ import { Host } from '@openshift-assisted/types/assisted-installer-service';
20
21
 
21
22
  export type EditAgentModalProps = {
22
- agent: AgentK8sResource | undefined;
23
- isOpen: boolean;
23
+ agent: AgentK8sResource;
24
24
  usedHostnames: string[] | undefined;
25
25
  onClose: () => void;
26
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
- onSave: (agent: AgentK8sResource, hostname: string) => Promise<any>;
26
+ onSave: (host: Host, hostname: string) => Promise<unknown>;
28
27
  };
29
28
 
30
29
  export type AgentTableActions = {
@@ -85,7 +84,6 @@ export type ScaleUpFormValues = Omit<
85
84
 
86
85
  export type ClusterDeploymentDetailsStepProps = ClusterDeploymentDetailsProps & {
87
86
  onSaveDetails: (values: ClusterDeploymentDetailsValues) => Promise<unknown>;
88
- onClose: () => void;
89
87
  isPreviewOpen: boolean;
90
88
  isNutanix: boolean;
91
89
  };
@@ -98,7 +96,6 @@ export type ClusterDeploymentDetailsNetworkingProps = Pick<
98
96
  agentClusterInstall: AgentClusterInstallK8sResource;
99
97
  agents: AgentK8sResource[];
100
98
  onSaveNetworking: (values: ClusterDeploymentNetworkingValues) => Promise<string | void>;
101
- onClose: () => void;
102
99
  fetchInfraEnv: (name: string, namespace: string) => Promise<InfraEnvK8sResource>;
103
100
  isPreviewOpen: boolean;
104
101
  isNutanix: boolean;
@@ -115,7 +112,6 @@ export type ClusterDeploymentHostSelectionStepProps = Omit<
115
112
  'onHostSelect' | 'onAutoSelectChange'
116
113
  > & {
117
114
  onSaveHostsSelection: (values: ClusterDeploymentHostsSelectionValues) => Promise<string | void>;
118
- onClose: () => void;
119
115
  };
120
116
 
121
117
  export type ClusterDeploymentHostsDiscoveryStepProps = Omit<
@@ -123,7 +119,6 @@ export type ClusterDeploymentHostsDiscoveryStepProps = Omit<
123
119
  'usedHostnames'
124
120
  > & {
125
121
  onSaveHostsDiscovery: () => Promise<void>;
126
- onClose: () => void;
127
122
  };
128
123
 
129
124
  export type ClusterDeploymentWizardProps = {
@@ -146,6 +141,7 @@ export type ClusterDeploymentWizardProps = {
146
141
  clusterDeployment: ClusterDeploymentK8sResource;
147
142
  agentClusterInstall: AgentClusterInstallK8sResource;
148
143
  agents: AgentK8sResource[];
144
+ bareMetalHosts: BareMetalHostK8sResource[];
149
145
  aiConfigMap?: ConfigMapK8sResource;
150
146
  infraEnv?: InfraEnvK8sResource;
151
147
  infraNMStates: NMStateK8sResource[];
@@ -155,7 +151,8 @@ export type ClusterDeploymentWizardProps = {
155
151
  setPreviewOpen: (open: boolean) => void;
156
152
  fetchManagedClusters: () => Promise<K8sResourceCommon[]>;
157
153
  fetchKlusterletAddonConfig: () => Promise<K8sResourceCommon[]>;
158
- onSaveAgent: EditAgentModalProps['onSave'];
154
+ onChangeHostname: ClusterDeploymentHostsDiscoveryStepProps['onChangeHostname'];
155
+ onChangeBMHHostname: ClusterDeploymentHostsDiscoveryStepProps['onChangeBMHHostname'];
159
156
  onSaveBMH: EditBMHModalProps['onEdit'];
160
157
  onSaveISOParams?: AddHostModalProps['onSaveISOParams'];
161
158
  onSaveHostsDiscovery: ClusterDeploymentHostsDiscoveryStepProps['onSaveHostsDiscovery'];
@@ -225,7 +222,7 @@ export type ClusterDeploymentHostsDiscoveryProps = AddHostDropdownProps & {
225
222
  aiConfigMap?: ConfigMapK8sResource;
226
223
  infraNMStates: NMStateK8sResource[];
227
224
 
228
- onSaveAgent: EditAgentModalProps['onSave'];
225
+ onChangeHostname: InfraEnvAgentTableProps['onChangeHostname'];
229
226
  onEditRole: ClusterDeploymentHostDiscoveryTableProps['onEditRole'];
230
227
  onSetInstallationDiskId: AgentTableActions['onSetInstallationDiskId'];
231
228
  onSaveBMH: EditBMHModalProps['onEdit'];
@@ -17,7 +17,7 @@ import {
17
17
  HostSubnets,
18
18
  hostPrefixValidationSchema,
19
19
  ipBlockValidationSchema,
20
- vipValidationSchema,
20
+ vipArrayValidationSchema,
21
21
  sshPublicKeyValidationSchema,
22
22
  hostSubnetValidationSchema,
23
23
  httpProxyValidationSchema,
@@ -50,8 +50,8 @@ const getNetworkConfigurationValidationSchema = (
50
50
  clusterNetworkHostPrefix: hostPrefixValidationSchema(values.clusterNetworkCidr),
51
51
  clusterNetworkCidr: ipBlockValidationSchema(values.serviceNetworkCidr),
52
52
  serviceNetworkCidr: ipBlockValidationSchema(values.clusterNetworkCidr),
53
- apiVip: vipValidationSchema(hostSubnets, values, initialValues.apiVip),
54
- ingressVip: vipValidationSchema(hostSubnets, values, initialValues.ingressVip),
53
+ apiVips: vipArrayValidationSchema(hostSubnets, values, initialValues.apiVips),
54
+ ingressVips: vipArrayValidationSchema(hostSubnets, values, initialValues.ingressVips),
55
55
  sshPublicKey: sshPublicKeyValidationSchema,
56
56
  hostSubnet: hostSubnetValidationSchema,
57
57
  httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy' }),
@@ -15,8 +15,10 @@ const HypershiftKubeconfigDownload = ({
15
15
  fetchSecret,
16
16
  }: HypershiftKubeconfigDownloadProps) => {
17
17
  const { t } = useTranslation();
18
+ const kubeconfigSecretName = hostedCluster.status?.customKubeconfig
19
+ ? hostedCluster.status.customKubeconfig?.name
20
+ : hostedCluster.status?.kubeconfig?.name;
18
21
  const handleKubeconfigDownload = async () => {
19
- const kubeconfigSecretName = hostedCluster.status?.kubeconfig?.name;
20
22
  const kubeconfigSecretNamespace = hostedCluster.metadata?.namespace;
21
23
 
22
24
  if (kubeconfigSecretName && kubeconfigSecretNamespace) {
@@ -41,7 +43,7 @@ const HypershiftKubeconfigDownload = ({
41
43
  variant={ButtonVariant.secondary}
42
44
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
43
45
  onClick={handleKubeconfigDownload}
44
- isDisabled={!hostedCluster.status?.kubeconfig?.name}
46
+ isDisabled={!kubeconfigSecretName}
45
47
  >
46
48
  {t('ai:Download kubeconfig')}
47
49
  </Button>
@@ -133,11 +133,11 @@ export type HostedClusterK8sResource = K8sResourceCommon & {
133
133
  endpointAccess: 'Public';
134
134
  kubeCloudControllerCreds: { name?: string };
135
135
  nodePoolManagementCreds: { name?: string };
136
- region: 'us-west-2';
136
+ region: string;
137
137
  resourceTags: [
138
138
  {
139
- key: 'kubernetes.io/cluster/feng-hs-scale-74zxh';
140
- value: 'owned';
139
+ key: string;
140
+ value: string;
141
141
  },
142
142
  ];
143
143
  };
@@ -157,6 +157,9 @@ export type HostedClusterK8sResource = K8sResourceCommon & {
157
157
  kubeconfig?: {
158
158
  name: string;
159
159
  };
160
+ customKubeconfig?: {
161
+ name: string;
162
+ };
160
163
  kubeadminPassword?: {
161
164
  name: string;
162
165
  };
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Button, Stack, StackItem } from '@patternfly/react-core';
3
3
  import { DropdownItem } from '@patternfly/react-core/deprecated';
4
- import noop from 'lodash-es/noop.js';
5
4
 
6
5
  import { Host } from '@openshift-assisted/types/assisted-installer-service';
7
6
  import {
@@ -33,12 +32,12 @@ import {
33
32
  } from '../../../common';
34
33
  import { InfraEnvAgentTableProps } from '../ClusterDeployment/types';
35
34
  import { MassApproveAgentModal, MassDeleteAgentModal } from '../modals';
36
- import { MassChangeHostnameModalProps } from '../../../common/components/hosts/MassChangeHostnameModal';
37
35
  import MassApproveAction from '../modals/MassApproveAction';
38
36
  import { usePagination } from '../../../common/components/hosts/usePagination';
39
37
  import InfraTableToolbar from './InfraTableToolbar';
40
38
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
41
39
  import { agentStatus, bmhStatus } from '../helpers/agentStatus';
40
+ import { onAgentChangeHostname } from '../helpers';
42
41
 
43
42
  type NoFilterMatchStateProps = {
44
43
  onClearFilters: VoidFunction;
@@ -205,19 +204,6 @@ const InfraEnvAgentTable: React.FC<InfraEnvAgentTableProps> = ({
205
204
  <DeleteHostAction key="delete" onDeleteHost={() => setMassDeleteOpen(!isMassDeleteOpen)} />,
206
205
  ];
207
206
 
208
- const onAgentChangeHostname: MassChangeHostnameModalProps['onChangeHostname'] = async (
209
- host,
210
- hostname,
211
- ) => {
212
- const agent = agents.find((a) => a.metadata?.uid === host.id);
213
- if (agent) {
214
- return onChangeHostname(agent, hostname);
215
- } else {
216
- const bmh = bareMetalHosts.find((bmh) => bmh.metadata?.uid === host.id);
217
- return bmh ? onChangeBMHHostname(bmh, hostname) : noop;
218
- }
219
- };
220
-
221
207
  const paginationProps = usePagination(hosts.length);
222
208
 
223
209
  return (
@@ -272,7 +258,12 @@ const InfraEnvAgentTable: React.FC<InfraEnvAgentTableProps> = ({
272
258
  isOpen={isMassChangeHostOpen}
273
259
  hosts={hosts}
274
260
  selectedHostIDs={selectedHostIDs}
275
- onChangeHostname={onAgentChangeHostname}
261
+ onChangeHostname={onAgentChangeHostname(
262
+ agents,
263
+ bareMetalHosts,
264
+ onChangeHostname,
265
+ onChangeBMHHostname,
266
+ )}
276
267
  onClose={() => setMassChangeHostOpen(false)}
277
268
  canChangeHostname={canChangeHostname(agents, agentStatuses, bareMetalHosts, t)}
278
269
  />
@@ -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;
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FormGroup } from '@patternfly/react-core';
3
- import { Dropdown, DropdownItem, DropdownToggle } from '@patternfly/react-core/deprecated';
2
+ import { Dropdown, DropdownItem, FormGroup, MenuToggle } from '@patternfly/react-core';
4
3
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
5
4
  import {
6
5
  architectureData,
@@ -12,30 +11,18 @@ import {
12
11
  import { useField } from 'formik';
13
12
  import { useFormikHelpers } from '../../../common/hooks/useFormikHelpers';
14
13
 
15
- const allDropdownItems = {
16
- [CpuArchitecture.x86]: (
17
- <DropdownItem key={'x86_64'} id="x86_64" description={architectureData['x86_64'].description}>
18
- {architectureData['x86_64'].label}
19
- </DropdownItem>
20
- ),
21
- [CpuArchitecture.ARM]: (
22
- <DropdownItem key={'arm64'} id="arm64" description={architectureData['arm64'].description}>
23
- {architectureData['arm64'].label}
24
- </DropdownItem>
25
- ),
26
- [CpuArchitecture.s390x]: (
27
- <DropdownItem key={'s390x'} id="s390x" description={architectureData['s390x'].description}>
28
- {architectureData['s390x'].label}
29
- </DropdownItem>
30
- ),
31
- };
14
+ const cimCpuArchitectures = [
15
+ CpuArchitecture.x86,
16
+ CpuArchitecture.ARM,
17
+ CpuArchitecture.s390x,
18
+ ] as SupportedCpuArchitecture[];
32
19
 
33
20
  const CpuArchitectureDropdown = ({
34
21
  isDisabled = false,
35
22
  cpuArchitectures,
36
23
  }: {
37
24
  isDisabled?: boolean;
38
- cpuArchitectures?: string[];
25
+ cpuArchitectures?: SupportedCpuArchitecture[];
39
26
  }) => {
40
27
  const { t } = useTranslation();
41
28
  const [{ name, value }, , { setValue }] = useField<SupportedCpuArchitecture | ''>(
@@ -45,7 +32,7 @@ const CpuArchitectureDropdown = ({
45
32
  const fieldId = getFieldId(name, 'input');
46
33
  const { setValue: setUserManagedNetworking } = useFormikHelpers<boolean>('userManagedNetworking');
47
34
 
48
- const onCpuArchSelect = (e?: React.SyntheticEvent<HTMLDivElement>) => {
35
+ const onCpuArchSelect = (e?: React.MouseEvent<Element, MouseEvent>) => {
49
36
  const val = e?.currentTarget.id as SupportedCpuArchitecture;
50
37
  setValue(val);
51
38
  setUserManagedNetworking(val === CpuArchitecture.s390x);
@@ -53,36 +40,60 @@ const CpuArchitectureDropdown = ({
53
40
  setCpuArchOpen(false);
54
41
  };
55
42
 
56
- const dropdownItems = React.useMemo(() => {
57
- if (!cpuArchitectures) {
58
- return Object.values(allDropdownItems);
59
- } else {
60
- return Object.entries(allDropdownItems)
61
- .filter(([key, _]) => cpuArchitectures.includes(key))
62
- .map(([_, val]) => val);
63
- }
64
- }, [cpuArchitectures]);
43
+ const dropdownItems = React.useMemo(
44
+ () =>
45
+ cimCpuArchitectures.map((arch) => {
46
+ const isItemEnabled = !cpuArchitectures || cpuArchitectures.includes(arch);
47
+ const disabledReason = t(
48
+ 'ai:This option is not available with the selected OpenShift version',
49
+ );
50
+ return (
51
+ <DropdownItem
52
+ key={arch}
53
+ id={arch}
54
+ isAriaDisabled={!isItemEnabled}
55
+ selected={arch === value}
56
+ description={architectureData[arch].description}
57
+ tooltipProps={{ content: disabledReason, position: 'top' }}
58
+ onClick={(e: React.MouseEvent) => e.preventDefault()}
59
+ >
60
+ {architectureData[arch].label}
61
+ </DropdownItem>
62
+ );
63
+ }),
64
+ [cpuArchitectures, t, value],
65
+ );
65
66
 
66
67
  React.useEffect(() => {
67
68
  if (!isDisabled && value !== '' && cpuArchitectures && !cpuArchitectures?.includes(value)) {
68
- setValue('');
69
+ const defaultVal = cpuArchitectures?.[0] || CpuArchitecture.x86;
70
+ setValue(defaultVal);
69
71
  }
70
72
  }, [cpuArchitectures, isDisabled, setValue, value]);
71
73
 
72
74
  return !isDisabled ? (
73
- <FormGroup isInline fieldId={fieldId} label={t('ai:CPU architecture')} isRequired>
75
+ <FormGroup
76
+ isInline
77
+ fieldId={fieldId}
78
+ label={t('ai:CPU architecture')}
79
+ isRequired
80
+ name={'cpuArchiteture'}
81
+ >
74
82
  <Dropdown
75
- toggle={
76
- <DropdownToggle onToggle={() => setCpuArchOpen(!cpuArchOpen)} className="pf-u-w-100">
83
+ toggle={(toggleRef) => (
84
+ <MenuToggle
85
+ ref={toggleRef}
86
+ onClick={() => setCpuArchOpen(!cpuArchOpen)}
87
+ className="pf-u-w-100"
88
+ >
77
89
  {value ? architectureData[value].label : t('ai:CPU architecture')}
78
- </DropdownToggle>
79
- }
80
- name="cpuArchitecture"
90
+ </MenuToggle>
91
+ )}
81
92
  isOpen={cpuArchOpen}
82
93
  onSelect={onCpuArchSelect}
83
- dropdownItems={dropdownItems}
84
- className="pf-u-w-100"
85
- />
94
+ >
95
+ {dropdownItems}
96
+ </Dropdown>
86
97
  </FormGroup>
87
98
  ) : (
88
99
  <StaticField name={'cpuArchitecture'} label={t('ai:CPU architecture')} isRequired>
@@ -1,7 +1,7 @@
1
1
  import { AgentStatus, getAgentStatusKey } from './status';
2
2
  import { Host } from '@openshift-assisted/types/assisted-installer-service';
3
3
  import { AgentK8sResource, BareMetalHostK8sResource } from '../../types';
4
- import { INFRAENV_AGENTINSTALL_LABEL_KEY } from '../common/constants';
4
+ import { AGENT_BMH_NAME_LABEL_KEY, INFRAENV_AGENTINSTALL_LABEL_KEY } from '../common/constants';
5
5
 
6
6
  const AGENT_FOR_SELECTION_STATUSES: AgentStatus[] = [
7
7
  'known',
@@ -33,3 +33,32 @@ export const getInfraEnvNameOfAgent = (resource?: AgentK8sResource | BareMetalHo
33
33
 
34
34
  export const getClusterNameOfAgent = (agent?: AgentK8sResource) =>
35
35
  agent?.spec?.clusterDeploymentName?.name;
36
+
37
+ type OnAgentChangeHostname<A = AgentK8sResource, B = BareMetalHostK8sResource> = (
38
+ agents: A[],
39
+ bmhs: B[],
40
+ onChangeHostname: (agent: A, hostname: string) => Promise<unknown>,
41
+ onChangeBMHHostname: (bmh: B, hostname: string) => Promise<unknown>,
42
+ ) => (host: Host, hostname: string) => Promise<unknown>;
43
+
44
+ export const onAgentChangeHostname: OnAgentChangeHostname<
45
+ AgentK8sResource,
46
+ BareMetalHostK8sResource
47
+ > = (agents, bmhs, onChangeHostname, onChangeBMHHostname) => (host, hostname) => {
48
+ const agent = agents.find((a) => a.metadata?.uid === host.id);
49
+ let bmh: BareMetalHostK8sResource | undefined;
50
+ if (agent) {
51
+ const bmhName = agent.metadata?.labels?.[AGENT_BMH_NAME_LABEL_KEY];
52
+ if (!bmhName) {
53
+ return onChangeHostname(agent, hostname);
54
+ }
55
+ // If Agent is backed by BMH, we need to update hostname on BMH
56
+ bmh = bmhs.find(
57
+ (bmh) =>
58
+ bmh.metadata?.namespace === agent.metadata?.namespace && bmh.metadata?.name === bmhName,
59
+ );
60
+ } else {
61
+ bmh = bmhs.find((bmh) => bmh.metadata?.uid === host.id);
62
+ }
63
+ return bmh ? onChangeBMHHostname(bmh, hostname) : Promise.resolve(undefined);
64
+ };
@@ -135,14 +135,18 @@ export const getAICluster = ({
135
135
  name: clusterDeployment.spec?.clusterName,
136
136
  baseDnsDomain: clusterDeployment.spec?.baseDomain,
137
137
  openshiftVersion: installVersion,
138
- apiVips: [
139
- {
140
- ip: agentClusterInstall?.status?.apiVIP || agentClusterInstall?.spec?.apiVIP,
141
- },
142
- ],
143
- ingressVips: [
144
- { ip: agentClusterInstall?.status?.ingressVIP || agentClusterInstall?.spec?.apiVIP },
145
- ],
138
+ apiVips:
139
+ agentClusterInstall?.status?.apiVIP || agentClusterInstall?.spec?.apiVIP
140
+ ? [
141
+ {
142
+ ip: agentClusterInstall?.status?.apiVIP || agentClusterInstall?.spec?.apiVIP,
143
+ },
144
+ ]
145
+ : [],
146
+ ingressVips:
147
+ agentClusterInstall?.status?.ingressVIP || agentClusterInstall?.spec?.ingressVIP
148
+ ? [{ ip: agentClusterInstall?.status?.ingressVIP || agentClusterInstall?.spec?.ingressVIP }]
149
+ : [],
146
150
  highAvailabilityMode:
147
151
  agentClusterInstall?.spec?.provisionRequirements?.controlPlaneAgents === 1 ? 'None' : 'Full',
148
152
  status,
@@ -6,11 +6,18 @@ import {
6
6
  ClusterVersionK8sResource,
7
7
  OsImage,
8
8
  } from '../../types';
9
- import { OpenshiftVersionOptionType } from '../../../common';
9
+ import { CpuArchitecture, OpenshiftVersionOptionType } from '../../../common';
10
10
  import { OpenshiftVersion } from '@openshift-assisted/types/assisted-installer-service';
11
11
 
12
12
  export const getVersionFromReleaseImage = (releaseImage = '') => {
13
- const match = /.+:(.*)-/gm.exec(releaseImage);
13
+ const match = /.+:(.*)/gm.exec(releaseImage);
14
+ if (match && match.length > 1 && match[1]) {
15
+ return match[1];
16
+ }
17
+ };
18
+
19
+ const getCPUArchFromReleaseImage = (releaseImage = '') => {
20
+ const match = /.+:.*-(.*)/gm.exec(releaseImage);
14
21
  if (match && match.length > 1 && match[1]) {
15
22
  return match[1];
16
23
  }
@@ -37,8 +44,12 @@ const getSupportLevelFromChannel = (
37
44
 
38
45
  export const supportedNutanixPlatforms = ['x86_64', 'x86-64'];
39
46
 
40
- export const isValidImageSet = (cis: ClusterImageSetK8sResource, architectures?: string[]) => {
41
- if (cis.metadata?.labels?.visible !== 'true') {
47
+ export const isValidImageSet = (
48
+ cis: ClusterImageSetK8sResource,
49
+ architectures?: string[],
50
+ extended?: boolean,
51
+ ) => {
52
+ if (!extended && cis.metadata?.labels?.visible !== 'true') {
42
53
  return false;
43
54
  }
44
55
  if (!architectures) {
@@ -53,6 +64,7 @@ export const getOCPVersions = (
53
64
  clusterImageSets: ClusterImageSetK8sResource[],
54
65
  isNutanix?: boolean | undefined,
55
66
  osImages?: OsImage[],
67
+ extended?: boolean,
56
68
  ): OpenshiftVersionOptionType[] => {
57
69
  const ocpImageVersions = Array.from(
58
70
  new Set(osImages?.map((osImage) => osImage.openshiftVersion)),
@@ -60,10 +72,11 @@ export const getOCPVersions = (
60
72
 
61
73
  const versions = clusterImageSets
62
74
  .filter((clusterImageSet) =>
63
- isValidImageSet(clusterImageSet, isNutanix ? supportedNutanixPlatforms : undefined),
75
+ isValidImageSet(clusterImageSet, isNutanix ? supportedNutanixPlatforms : undefined, extended),
64
76
  )
65
77
  .map((clusterImageSet): OpenshiftVersionOptionType => {
66
78
  const version = getVersionFromReleaseImage(clusterImageSet.spec?.releaseImage);
79
+ const cpuArch = getCPUArchFromReleaseImage(clusterImageSet.spec?.releaseImage);
67
80
  return {
68
81
  label: `OpenShift ${version ? version : (clusterImageSet.metadata?.name as string)}`,
69
82
  version: version || clusterImageSet.metadata?.name || '',
@@ -71,6 +84,7 @@ export const getOCPVersions = (
71
84
  default: false,
72
85
  // (rawagner) ACM does not have the warning so changing to 'production'
73
86
  supportLevel: 'production', // getSupportLevelFromChannel(clusterImageSet.metadata?.labels?.channel),
87
+ cpuArchitectures: cpuArch ? [cpuArch as CpuArchitecture] : undefined,
74
88
  };
75
89
  })
76
90
  .filter((ocpVersion) => {
@@ -99,7 +113,7 @@ export const getSelectedVersion = (
99
113
  );
100
114
 
101
115
  return selectedClusterImage
102
- ? getOCPVersions([selectedClusterImage])?.[0]?.version
116
+ ? getOCPVersions([selectedClusterImage], undefined, undefined, true)?.[0]?.version
103
117
  : agentClusterInstall?.spec?.imageSetRef?.name;
104
118
  };
105
119
 
@@ -7,11 +7,12 @@ const EditAgentModal: React.FC<EditAgentModalProps> = ({ agent, onSave, ...rest
7
7
  const [host] = agent ? getAIHosts([agent]) : [];
8
8
  return (
9
9
  <EditHostModal
10
+ isOpen
10
11
  host={host}
11
12
  inventory={agent?.status?.inventory}
12
13
  {...rest}
13
14
  onSave={async ({ hostname }) => {
14
- agent && (await onSave(agent, hostname));
15
+ agent && (await onSave(host, hostname));
15
16
  rest.onClose();
16
17
  }}
17
18
  />
@@ -25,6 +25,8 @@ import EditAgentModal from './EditAgentModal';
25
25
  import { getAgentsHostsNames } from '../ClusterDeployment/helpers';
26
26
  import { getErrorMessage } from '../../../common/utils';
27
27
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
28
+ import { onAgentChangeHostname } from '../helpers';
29
+ import { BareMetalHostK8sResource } from '../../types';
28
30
 
29
31
  const getAgentsToAdd = (
30
32
  selectedHostIds: ScaleUpFormValues['selectedHostIds'] | ScaleUpFormValues['autoSelectedHostIds'],
@@ -56,7 +58,9 @@ type ScaleUpModalProps = {
56
58
  addHostsToCluster: (agentsToAdd: AgentK8sResource[]) => Promise<void>;
57
59
  clusterDeployment: ClusterDeploymentK8sResource;
58
60
  agents: AgentK8sResource[];
61
+ bareMetalHosts: BareMetalHostK8sResource[];
59
62
  onChangeHostname: (agent: AgentK8sResource, hostname: string) => Promise<AgentK8sResource>;
63
+ onChangeBMHHostname: (bmh: BareMetalHostK8sResource, hostname: string) => Promise<unknown>;
60
64
  onSetInstallationDiskId: AgentTableActions['onSetInstallationDiskId'];
61
65
  isNutanix: boolean;
62
66
  };
@@ -67,7 +71,9 @@ const ScaleUpModal: React.FC<ScaleUpModalProps> = ({
67
71
  addHostsToCluster,
68
72
  clusterDeployment,
69
73
  agents,
74
+ bareMetalHosts,
70
75
  onChangeHostname,
76
+ onChangeBMHHostname,
71
77
  onSetInstallationDiskId,
72
78
  isNutanix,
73
79
  }) => {
@@ -176,9 +182,13 @@ const ScaleUpModal: React.FC<ScaleUpModalProps> = ({
176
182
  {editAgent && (
177
183
  <EditAgentModal
178
184
  agent={editAgent}
179
- isOpen
180
185
  onClose={() => setEditAgent(undefined)}
181
- onSave={onChangeHostname}
186
+ onSave={onAgentChangeHostname(
187
+ agents,
188
+ bareMetalHosts,
189
+ onChangeHostname,
190
+ onChangeBMHHostname,
191
+ )}
182
192
  usedHostnames={getAgentsHostsNames(clusterAgents)}
183
193
  />
184
194
  )}
@@ -1,2 +1,3 @@
1
1
  export * from './axiosClient';
2
2
  export * from './utils';
3
+ export * from './assisted-service';