@openshift-assisted/ui-lib 2.17.0-cim → 2.17.3-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 (562) hide show
  1. package/build/@types/cim/components/Agent/AgentStatus.d.ts +1 -0
  2. package/build/@types/cim/components/Agent/AgentStatus.d.ts.map +1 -1
  3. package/build/@types/cim/components/Agent/AgentTable.d.ts.map +1 -1
  4. package/build/@types/cim/components/Agent/AgentsSelectionTable.d.ts.map +1 -1
  5. package/build/@types/cim/components/Agent/BMCForm.d.ts.map +1 -1
  6. package/build/@types/cim/components/Agent/BMHEventsModal.d.ts +8 -0
  7. package/build/@types/cim/components/Agent/BMHEventsModal.d.ts.map +1 -0
  8. package/build/@types/cim/components/Agent/BMHStatus.d.ts +2 -0
  9. package/build/@types/cim/components/Agent/BMHStatus.d.ts.map +1 -1
  10. package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts +8 -0
  11. package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts.map +1 -0
  12. package/build/@types/cim/components/Agent/MinimalHWRequirements.d.ts.map +1 -1
  13. package/build/@types/cim/components/Agent/index.d.ts +2 -0
  14. package/build/@types/cim/components/Agent/index.d.ts.map +1 -1
  15. package/build/@types/cim/components/Agent/tableColumns.d.ts +29 -0
  16. package/build/@types/cim/components/Agent/tableColumns.d.ts.map +1 -0
  17. package/build/@types/cim/components/Agent/tableUtils.d.ts +2 -22
  18. package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
  19. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
  20. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
  21. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  22. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts +0 -1
  23. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
  24. package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
  25. package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  26. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
  27. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
  28. package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -1
  29. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  30. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +9 -5
  31. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
  32. package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.d.ts.map +1 -1
  33. package/build/@types/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.d.ts.map +1 -0
  34. package/build/@types/cim/components/Hypershift/modals/AddNodePoolModal.d.ts.map +1 -1
  35. package/build/@types/cim/components/Hypershift/modals/ManageHostsModal.d.ts.map +1 -1
  36. package/build/@types/cim/components/Hypershift/modals/RemoveNodePoolModal.d.ts.map +1 -1
  37. package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
  38. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts +0 -1
  39. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  40. package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts.map +1 -1
  41. package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
  42. package/build/@types/cim/components/helpers/versions.d.ts +1 -1
  43. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  44. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  45. package/build/@types/cim/components/modals/AddBmcHostYamlForm.d.ts.map +1 -1
  46. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  47. package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
  48. package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
  49. package/build/@types/cim/components/modals/EditBMHModal.d.ts.map +1 -1
  50. package/build/@types/cim/components/modals/EditNtpSourcesModal.d.ts.map +1 -1
  51. package/build/@types/cim/components/modals/EditProxyModal.d.ts.map +1 -1
  52. package/build/@types/cim/components/modals/EditPullSecretModal.d.ts.map +1 -1
  53. package/build/@types/cim/components/modals/EditSSHKeyModal.d.ts.map +1 -1
  54. package/build/@types/cim/components/modals/MassApproveAgentModal.d.ts.map +1 -1
  55. package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
  56. package/build/@types/cim/hooks/index.d.ts +1 -0
  57. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  58. package/build/@types/cim/hooks/types.d.ts +1 -1
  59. package/build/@types/cim/hooks/types.d.ts.map +1 -1
  60. package/build/@types/cim/hooks/useEvents.d.ts +4 -0
  61. package/build/@types/cim/hooks/useEvents.d.ts.map +1 -0
  62. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts +12 -0
  63. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts.map +1 -1
  64. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +4 -0
  65. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  66. package/build/@types/cim/types/k8s/bare-metal-host.d.ts +20 -0
  67. package/build/@types/cim/types/k8s/bare-metal-host.d.ts.map +1 -1
  68. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  69. package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
  70. package/build/@types/common/components/clusterConfiguration/utils.d.ts +2 -2
  71. package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
  72. package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
  73. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts +7 -0
  74. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts.map +1 -0
  75. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +10 -6
  76. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  77. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +13 -0
  78. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -0
  79. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.d.ts +1 -1
  80. package/build/@types/common/components/clusterWizard/networkingSteps/SubnetsDropdown.d.ts.map +1 -0
  81. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts +4 -2
  82. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
  83. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +7 -2
  84. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
  85. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.d.ts +1 -1
  86. package/build/@types/common/components/clusterWizard/networkingSteps/reorderNetworks.d.ts.map +1 -0
  87. package/build/@types/common/components/hosts/AdditionalNTPSourcesDialog.d.ts.map +1 -1
  88. package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
  89. package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
  90. package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
  91. package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
  92. package/build/@types/common/components/hosts/index.d.ts +2 -0
  93. package/build/@types/common/components/hosts/index.d.ts.map +1 -1
  94. package/build/@types/common/components/hosts/tableColumns.d.ts +21 -0
  95. package/build/@types/common/components/hosts/tableColumns.d.ts.map +1 -0
  96. package/build/@types/common/components/hosts/tableUtils.d.ts +3 -21
  97. package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
  98. package/build/@types/common/components/hosts/types.d.ts +1 -0
  99. package/build/@types/common/components/hosts/types.d.ts.map +1 -1
  100. package/build/@types/common/components/ui/EventsList.d.ts.map +1 -1
  101. package/build/@types/common/components/ui/PrismCode.d.ts +13 -11
  102. package/build/@types/common/components/ui/PrismCode.d.ts.map +1 -1
  103. package/build/@types/common/components/ui/formik/LabelField.d.ts +3 -11
  104. package/build/@types/common/components/ui/formik/LabelField.d.ts.map +1 -1
  105. package/build/@types/common/components/ui/formik/index.d.ts +0 -2
  106. package/build/@types/common/components/ui/formik/index.d.ts.map +1 -1
  107. package/build/@types/common/components/ui/index.d.ts +1 -1
  108. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  109. package/build/@types/common/config/constants.d.ts +2 -1
  110. package/build/@types/common/config/constants.d.ts.map +1 -1
  111. package/build/@types/common/index.d.ts +1 -0
  112. package/build/@types/common/index.d.ts.map +1 -1
  113. package/build/@types/common/types/clusters.d.ts +0 -1
  114. package/build/@types/common/types/clusters.d.ts.map +1 -1
  115. package/build/@types/common/utils.d.ts +2 -2
  116. package/build/@types/common/utils.d.ts.map +1 -1
  117. package/build/@types/common/validationSchemas/addressValidation.d.ts +18 -0
  118. package/build/@types/common/validationSchemas/addressValidation.d.ts.map +1 -0
  119. package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts +8 -0
  120. package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts.map +1 -0
  121. package/build/@types/common/{components/ui/formik → validationSchemas}/constants.d.ts +1 -3
  122. package/build/@types/common/validationSchemas/constants.d.ts.map +1 -0
  123. package/build/@types/common/validationSchemas/hostnameValidation.d.ts +4 -0
  124. package/build/@types/common/validationSchemas/hostnameValidation.d.ts.map +1 -0
  125. package/build/@types/common/validationSchemas/index.d.ts +11 -0
  126. package/build/@types/common/validationSchemas/index.d.ts.map +1 -0
  127. package/build/@types/common/validationSchemas/networkingValidation.d.ts +18 -0
  128. package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -0
  129. package/build/@types/common/validationSchemas/ntpValidation.d.ts +4 -0
  130. package/build/@types/common/validationSchemas/ntpValidation.d.ts.map +1 -0
  131. package/build/@types/common/validationSchemas/proxyValidation.d.ts +11 -0
  132. package/build/@types/common/validationSchemas/proxyValidation.d.ts.map +1 -0
  133. package/build/@types/common/validationSchemas/pullSecretValidation.d.ts +4 -0
  134. package/build/@types/common/validationSchemas/pullSecretValidation.d.ts.map +1 -0
  135. package/build/@types/common/validationSchemas/regexes.d.ts +14 -0
  136. package/build/@types/common/validationSchemas/regexes.d.ts.map +1 -0
  137. package/build/@types/common/validationSchemas/sshValidation.d.ts +5 -0
  138. package/build/@types/common/validationSchemas/sshValidation.d.ts.map +1 -0
  139. package/build/@types/common/validationSchemas/utils.d.ts +7 -0
  140. package/build/@types/common/validationSchemas/utils.d.ts.map +1 -0
  141. package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
  142. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.d.ts.map +1 -1
  143. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +2 -1
  144. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
  145. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts +1 -1
  146. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  147. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  148. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.d.ts.map +1 -1
  149. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +2 -1
  150. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  151. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.d.ts.map +1 -1
  152. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts +2 -1
  153. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts.map +1 -1
  154. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.d.ts.map +1 -1
  155. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts +2 -1
  156. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts.map +1 -1
  157. package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
  158. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -1
  159. package/build/@types/ocm/components/hosts/ClusterHostsTable.d.ts.map +1 -1
  160. package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
  161. package/build/@types/ocm/components/hosts/HostsStorageTable.d.ts.map +1 -1
  162. package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
  163. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  164. package/build/cjs/cim/components/Agent/AgentStatus.js +2 -2
  165. package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
  166. package/build/cjs/cim/components/Agent/AgentTable.js +10 -9
  167. package/build/cjs/cim/components/Agent/AgentTable.js.map +1 -1
  168. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +9 -8
  169. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  170. package/build/cjs/cim/components/Agent/BMCForm.js +7 -8
  171. package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
  172. package/build/cjs/cim/components/Agent/BMHEventsModal.js +54 -0
  173. package/build/cjs/cim/components/Agent/BMHEventsModal.js.map +1 -0
  174. package/build/cjs/cim/components/Agent/BMHStatus.js +3 -2
  175. package/build/cjs/cim/components/Agent/BMHStatus.js.map +1 -1
  176. package/build/cjs/cim/components/Agent/BMHStatusInfo.js +59 -0
  177. package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -0
  178. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +6 -5
  179. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
  180. package/build/cjs/cim/components/Agent/index.js +2 -0
  181. package/build/cjs/cim/components/Agent/index.js.map +1 -1
  182. package/build/cjs/cim/components/Agent/tableColumns.js +184 -0
  183. package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -0
  184. package/build/cjs/cim/components/Agent/tableUtils.js +4 -174
  185. package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
  186. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js +10 -10
  187. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js.map +1 -1
  188. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js +2 -2
  189. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js.map +1 -1
  190. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +28 -38
  191. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  192. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +9 -15
  193. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
  194. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +9 -7
  195. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  196. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +13 -14
  197. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  198. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +14 -13
  199. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  200. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +19 -18
  201. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  202. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js +9 -10
  203. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js.map +1 -1
  204. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js +2 -2
  205. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js.map +1 -1
  206. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js +12 -8
  207. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js.map +1 -1
  208. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +6 -4
  209. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  210. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +21 -14
  211. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  212. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
  213. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +2 -2
  214. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
  215. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js +1 -1
  216. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js +2 -11
  217. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js.map +1 -1
  218. package/build/cjs/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.js +3 -3
  219. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.js.map +1 -0
  220. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js +1 -1
  221. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js.map +1 -1
  222. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js +8 -8
  223. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js.map +1 -1
  224. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +4 -4
  225. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
  226. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +4 -4
  227. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js.map +1 -1
  228. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
  229. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
  230. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js +4 -4
  231. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js.map +1 -1
  232. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +5 -2
  233. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
  234. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  235. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  236. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +11 -11
  237. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  238. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +8 -6
  239. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  240. package/build/cjs/cim/components/common/ResourceAlerts.js +2 -4
  241. package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
  242. package/build/cjs/cim/components/helpers/agentStatus.js +5 -0
  243. package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
  244. package/build/cjs/cim/components/helpers/toAssisted.js +28 -26
  245. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  246. package/build/cjs/cim/components/helpers/versions.js +42 -27
  247. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  248. package/build/cjs/cim/components/modals/AddBmcHostModal.js +7 -5
  249. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  250. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js +2 -3
  251. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js.map +1 -1
  252. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +7 -5
  253. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  254. package/build/cjs/cim/components/modals/AddHostModal.js +9 -7
  255. package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
  256. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +26 -25
  257. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
  258. package/build/cjs/cim/components/modals/EditBMHModal.js +4 -2
  259. package/build/cjs/cim/components/modals/EditBMHModal.js.map +1 -1
  260. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js +4 -4
  261. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js.map +1 -1
  262. package/build/cjs/cim/components/modals/EditProxyModal.js +9 -7
  263. package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
  264. package/build/cjs/cim/components/modals/EditPullSecretModal.js +5 -5
  265. package/build/cjs/cim/components/modals/EditPullSecretModal.js.map +1 -1
  266. package/build/cjs/cim/components/modals/EditSSHKeyModal.js +8 -8
  267. package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
  268. package/build/cjs/cim/components/modals/MassApproveAgentModal.js +4 -4
  269. package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
  270. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +1 -1
  271. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  272. package/build/cjs/cim/components/modals/ScaleUpModal.js +4 -4
  273. package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
  274. package/build/cjs/cim/hooks/index.js +1 -0
  275. package/build/cjs/cim/hooks/index.js.map +1 -1
  276. package/build/cjs/cim/hooks/useEvents.js +12 -0
  277. package/build/cjs/cim/hooks/useEvents.js.map +1 -0
  278. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +7 -6
  279. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  280. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
  281. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
  282. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +9 -9
  283. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
  284. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js +3 -3
  285. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js.map +1 -1
  286. package/build/cjs/common/components/clusterConfiguration/utils.js +3 -4
  287. package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
  288. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +8 -8
  289. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
  290. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js +62 -0
  291. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js.map +1 -0
  292. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +130 -46
  293. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  294. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js} +59 -38
  295. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -0
  296. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.js +7 -5
  297. package/build/cjs/common/components/clusterWizard/networkingSteps/SubnetsDropdown.js.map +1 -0
  298. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +96 -38
  299. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
  300. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +13 -3
  301. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
  302. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.js +2 -2
  303. package/build/cjs/common/components/clusterWizard/networkingSteps/reorderNetworks.js.map +1 -0
  304. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js +2 -1
  305. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js.map +1 -1
  306. package/build/cjs/common/components/hosts/EditHostForm.js +3 -2
  307. package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
  308. package/build/cjs/common/components/hosts/HostStatus.js +8 -6
  309. package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
  310. package/build/cjs/common/components/hosts/HostValidationGroups.js +2 -3
  311. package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
  312. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +13 -18
  313. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
  314. package/build/cjs/common/components/hosts/index.js +2 -0
  315. package/build/cjs/common/components/hosts/index.js.map +1 -1
  316. package/build/cjs/common/components/hosts/tableColumns.js +336 -0
  317. package/build/cjs/common/components/hosts/tableColumns.js.map +1 -0
  318. package/build/cjs/common/components/hosts/tableUtils.js +1 -331
  319. package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
  320. package/build/cjs/common/components/ui/EventsList.js +1 -1
  321. package/build/cjs/common/components/ui/EventsList.js.map +1 -1
  322. package/build/cjs/common/components/ui/PrismCode.js +29 -20
  323. package/build/cjs/common/components/ui/PrismCode.js.map +1 -1
  324. package/build/cjs/common/components/ui/formik/LabelField.js +34 -26
  325. package/build/cjs/common/components/ui/formik/LabelField.js.map +1 -1
  326. package/build/cjs/common/components/ui/formik/index.js +0 -2
  327. package/build/cjs/common/components/ui/formik/index.js.map +1 -1
  328. package/build/cjs/common/components/ui/index.js +1 -2
  329. package/build/cjs/common/components/ui/index.js.map +1 -1
  330. package/build/cjs/common/config/constants.js +27 -4
  331. package/build/cjs/common/config/constants.js.map +1 -1
  332. package/build/cjs/common/config/docs_links.js +1 -1
  333. package/build/cjs/common/index.js +1 -0
  334. package/build/cjs/common/index.js.map +1 -1
  335. package/build/cjs/common/types/clusters.js.map +1 -1
  336. package/build/cjs/common/utils.js +5 -3
  337. package/build/cjs/common/utils.js.map +1 -1
  338. package/build/cjs/common/validationSchemas/addressValidation.js +246 -0
  339. package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -0
  340. package/build/cjs/common/validationSchemas/clusterDetailsValidation.js +104 -0
  341. package/build/cjs/common/validationSchemas/clusterDetailsValidation.js.map +1 -0
  342. package/build/cjs/common/{components/ui/formik → validationSchemas}/constants.js +3 -5
  343. package/build/cjs/common/validationSchemas/constants.js.map +1 -0
  344. package/build/cjs/common/validationSchemas/hostnameValidation.js +36 -0
  345. package/build/cjs/common/validationSchemas/hostnameValidation.js.map +1 -0
  346. package/build/cjs/common/validationSchemas/index.js +17 -0
  347. package/build/cjs/common/validationSchemas/index.js.map +1 -0
  348. package/build/cjs/common/validationSchemas/networkingValidation.js +74 -0
  349. package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -0
  350. package/build/cjs/common/validationSchemas/ntpValidation.js +25 -0
  351. package/build/cjs/common/validationSchemas/ntpValidation.js.map +1 -0
  352. package/build/cjs/common/validationSchemas/proxyValidation.js +43 -0
  353. package/build/cjs/common/validationSchemas/proxyValidation.js.map +1 -0
  354. package/build/cjs/common/validationSchemas/pullSecretValidation.js +21 -0
  355. package/build/cjs/common/validationSchemas/pullSecretValidation.js.map +1 -0
  356. package/build/cjs/common/validationSchemas/regexes.js +17 -0
  357. package/build/cjs/common/validationSchemas/regexes.js.map +1 -0
  358. package/build/cjs/common/validationSchemas/sshValidation.js +32 -0
  359. package/build/cjs/common/validationSchemas/sshValidation.js.map +1 -0
  360. package/build/cjs/common/validationSchemas/utils.js +40 -0
  361. package/build/cjs/common/validationSchemas/utils.js.map +1 -0
  362. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +1 -1
  363. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  364. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +7 -6
  365. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  366. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js +4 -2
  367. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js.map +1 -1
  368. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js +7 -6
  369. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
  370. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +6 -12
  371. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  372. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +2 -1
  373. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  374. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js +8 -9
  375. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js.map +1 -1
  376. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +13 -23
  377. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  378. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js +3 -1
  379. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js.map +1 -1
  380. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js +6 -6
  381. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js.map +1 -1
  382. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js +3 -1
  383. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js.map +1 -1
  384. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js +12 -12
  385. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js.map +1 -1
  386. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +1 -1
  387. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  388. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +1 -1
  389. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
  390. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +4 -3
  391. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -1
  392. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js +7 -8
  393. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js.map +1 -1
  394. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +7 -8
  395. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  396. package/build/cjs/ocm/components/hosts/HostsStorageTable.js +5 -6
  397. package/build/cjs/ocm/components/hosts/HostsStorageTable.js.map +1 -1
  398. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js +2 -1
  399. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js.map +1 -1
  400. package/build/cjs/ocm/components/hosts/use-hosts-table.js +2 -3
  401. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  402. package/lib/cim/components/Agent/AgentStatus.tsx +3 -0
  403. package/lib/cim/components/Agent/AgentTable.tsx +3 -2
  404. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +3 -12
  405. package/lib/cim/components/Agent/BMCForm.tsx +11 -10
  406. package/lib/cim/components/Agent/BMHEventsModal.tsx +87 -0
  407. package/lib/cim/components/Agent/BMHStatus.tsx +17 -17
  408. package/lib/cim/components/Agent/BMHStatusInfo.tsx +94 -0
  409. package/lib/cim/components/Agent/MinimalHWRequirements.tsx +17 -12
  410. package/lib/cim/components/Agent/index.ts +2 -0
  411. package/lib/cim/components/Agent/tableColumns.tsx +257 -0
  412. package/lib/cim/components/Agent/tableUtils.tsx +4 -243
  413. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.tsx +2 -2
  414. package/lib/cim/components/ClusterDeployment/LocationsSelector.tsx +2 -2
  415. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +61 -44
  416. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +8 -18
  417. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +9 -12
  418. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +3 -5
  419. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +28 -31
  420. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +30 -36
  421. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.tsx +2 -7
  422. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.tsx +3 -3
  423. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.tsx +26 -26
  424. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +20 -6
  425. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +41 -17
  426. package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +2 -2
  427. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +2 -2
  428. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.tsx +1 -1
  429. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.tsx +2 -13
  430. package/lib/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.tsx +4 -4
  431. package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.tsx +1 -1
  432. package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.tsx +8 -8
  433. package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +15 -16
  434. package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +15 -16
  435. package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +1 -1
  436. package/lib/cim/components/Hypershift/modals/RemoveNodePoolModal.tsx +14 -11
  437. package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +6 -3
  438. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +1 -6
  439. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +6 -6
  440. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +8 -6
  441. package/lib/cim/components/common/ResourceAlerts.tsx +4 -4
  442. package/lib/cim/components/helpers/agentStatus.tsx +5 -0
  443. package/lib/cim/components/helpers/toAssisted.ts +15 -15
  444. package/lib/cim/components/helpers/versions.ts +51 -34
  445. package/lib/cim/components/modals/AddBmcHostModal.tsx +14 -13
  446. package/lib/cim/components/modals/AddBmcHostYamlForm.tsx +6 -5
  447. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +8 -7
  448. package/lib/cim/components/modals/AddHostModal.tsx +22 -11
  449. package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +79 -69
  450. package/lib/cim/components/modals/EditBMHModal.tsx +2 -3
  451. package/lib/cim/components/modals/EditNtpSourcesModal.tsx +15 -10
  452. package/lib/cim/components/modals/EditProxyModal.tsx +22 -13
  453. package/lib/cim/components/modals/EditPullSecretModal.tsx +15 -11
  454. package/lib/cim/components/modals/EditSSHKeyModal.tsx +24 -19
  455. package/lib/cim/components/modals/MassApproveAgentModal.tsx +16 -8
  456. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +1 -1
  457. package/lib/cim/components/modals/ScaleUpModal.tsx +9 -7
  458. package/lib/cim/hooks/index.tsx +1 -0
  459. package/lib/cim/hooks/types.tsx +4 -1
  460. package/lib/cim/hooks/useEvents.tsx +14 -0
  461. package/lib/cim/types/fromOCP/k8sTypes.ts +13 -0
  462. package/lib/cim/types/k8s/agent-cluster-install.ts +4 -0
  463. package/lib/cim/types/k8s/bare-metal-host.ts +20 -0
  464. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +9 -8
  465. package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +1 -1
  466. package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +7 -10
  467. package/lib/common/components/clusterConfiguration/ProxyFields.tsx +3 -3
  468. package/lib/common/components/clusterConfiguration/utils.ts +22 -12
  469. package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +21 -11
  470. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/AdvancedNetworkFields.tsx +54 -38
  471. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +221 -53
  472. package/lib/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx} +64 -28
  473. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.tsx +4 -7
  474. package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +199 -80
  475. package/lib/common/components/clusterWizard/networkingSteps/index.ts +10 -2
  476. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.ts +2 -1
  477. package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +3 -6
  478. package/lib/common/components/hosts/EditHostForm.tsx +2 -8
  479. package/lib/common/components/hosts/HostStatus.tsx +14 -3
  480. package/lib/common/components/hosts/HostValidationGroups.tsx +5 -4
  481. package/lib/common/components/hosts/MassChangeHostnameModal.tsx +48 -44
  482. package/lib/common/components/hosts/index.ts +2 -0
  483. package/lib/common/components/hosts/tableColumns.tsx +411 -0
  484. package/lib/common/components/hosts/tableUtils.tsx +4 -409
  485. package/lib/common/components/hosts/types.ts +1 -0
  486. package/lib/common/components/ui/EventsList.tsx +4 -2
  487. package/lib/common/components/ui/PrismCode.tsx +35 -22
  488. package/lib/common/components/ui/formik/LabelField.tsx +77 -60
  489. package/lib/common/components/ui/formik/index.tsx +0 -2
  490. package/lib/common/components/ui/index.ts +1 -1
  491. package/lib/common/config/constants.ts +33 -2
  492. package/lib/common/config/docs_links.ts +1 -1
  493. package/lib/common/index.ts +2 -0
  494. package/lib/common/types/clusters.ts +0 -1
  495. package/lib/common/utils.ts +5 -7
  496. package/lib/common/{components/ui/formik → validationSchemas}/_validationSchemas.test.ts +51 -39
  497. package/lib/common/validationSchemas/addressValidation.tsx +349 -0
  498. package/lib/common/validationSchemas/clusterDetailsValidation.tsx +168 -0
  499. package/lib/common/{components/ui/formik → validationSchemas}/constants.tsx +3 -6
  500. package/lib/common/validationSchemas/hostnameValidation.tsx +46 -0
  501. package/lib/common/validationSchemas/index.tsx +11 -0
  502. package/lib/common/validationSchemas/networkingValidation.tsx +113 -0
  503. package/lib/common/validationSchemas/ntpValidation.tsx +30 -0
  504. package/lib/common/validationSchemas/proxyValidation.tsx +67 -0
  505. package/lib/common/validationSchemas/pullSecretValidation.tsx +24 -0
  506. package/lib/common/validationSchemas/regexes.tsx +22 -0
  507. package/lib/common/validationSchemas/sshValidation.tsx +46 -0
  508. package/lib/common/validationSchemas/utils.tsx +36 -0
  509. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +2 -2
  510. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +17 -15
  511. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx +4 -2
  512. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +31 -31
  513. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +12 -23
  514. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +9 -2
  515. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.tsx +3 -2
  516. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +16 -26
  517. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.tsx +3 -1
  518. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.tsx +11 -6
  519. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.tsx +5 -1
  520. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.tsx +33 -28
  521. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +2 -1
  522. package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +2 -2
  523. package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +5 -3
  524. package/lib/ocm/components/hosts/ClusterHostsTable.tsx +4 -3
  525. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +2 -4
  526. package/lib/ocm/components/hosts/HostsStorageTable.tsx +5 -7
  527. package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +3 -7
  528. package/lib/ocm/components/hosts/use-hosts-table.tsx +2 -1
  529. package/package.json +3 -3
  530. package/build/@types/common/components/clusterConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  531. package/build/@types/common/components/ui/formik/constants.d.ts.map +0 -1
  532. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -52
  533. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +0 -1
  534. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts +0 -4
  535. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  536. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts +0 -12
  537. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +0 -1
  538. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts +0 -11
  539. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts.map +0 -1
  540. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +0 -1
  541. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts +0 -9
  542. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts.map +0 -1
  543. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.d.ts.map +0 -1
  544. package/build/cjs/common/components/clusterConfiguration/AdvancedNetworkFields.js.map +0 -1
  545. package/build/cjs/common/components/ui/formik/LabelField.css +0 -43
  546. package/build/cjs/common/components/ui/formik/constants.js.map +0 -1
  547. package/build/cjs/common/components/ui/formik/validationSchemas.js +0 -571
  548. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +0 -1
  549. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +0 -53
  550. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +0 -1
  551. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +0 -124
  552. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +0 -1
  553. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +0 -1
  554. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +0 -1
  555. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +0 -98
  556. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +0 -1
  557. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.js.map +0 -1
  558. package/lib/common/components/ui/formik/LabelField.css +0 -43
  559. package/lib/common/components/ui/formik/validationSchemas.ts +0 -846
  560. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +0 -208
  561. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +0 -283
  562. /package/build/@types/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.d.ts +0 -0
@@ -1,30 +1,36 @@
1
- import React, { useEffect } from 'react';
1
+ import React, { useEffect, useCallback } from 'react';
2
2
  import { useFormikContext } from 'formik';
3
3
  import { Checkbox, Grid } from '@patternfly/react-core';
4
- import AdvancedNetworkFields from '../../../common/components/clusterConfiguration/AdvancedNetworkFields';
5
4
  import { NetworkConfigurationValues } from '../../../common/types/clusters';
6
- import { Address6 } from 'ip-address';
7
5
  import {
8
- AvailableSubnetsControl,
9
6
  ManagedNetworkingControlGroup,
10
7
  UserManagedNetworkingTextContent,
8
+ StackTypeControlGroup,
9
+ AvailableSubnetsControl,
11
10
  VirtualIPControlGroup,
12
11
  VirtualIPControlGroupProps,
12
+ AdvancedNetworkFields,
13
13
  } from '../../../common/components/clusterWizard/networkingSteps';
14
14
  import {
15
+ canBeDualStack,
15
16
  canSelectNetworkTypeSDN,
17
+ DUAL_STACK,
16
18
  isAdvNetworkConf,
17
19
  isSNO,
18
- isSubnetInIPv6,
19
20
  NETWORK_TYPE_OVN,
20
- NO_SUBNET_SET,
21
21
  } from '../../../common';
22
22
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
23
23
  import { NetworkTypeControlGroup } from '../../../common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup';
24
24
  import { ClusterDefaultConfig } from '@openshift-assisted/types/assisted-installer-service';
25
25
 
26
26
  export type NetworkConfigurationProps = VirtualIPControlGroupProps & {
27
- defaultNetworkSettings: ClusterDefaultConfig;
27
+ defaultNetworkSettings: Pick<
28
+ ClusterDefaultConfig,
29
+ | 'clusterNetworksIpv4'
30
+ | 'clusterNetworksDualstack'
31
+ | 'serviceNetworksIpv4'
32
+ | 'serviceNetworksDualstack'
33
+ >;
28
34
  hideManagedNetworking?: boolean;
29
35
  };
30
36
 
@@ -40,60 +46,57 @@ const NetworkConfiguration = ({
40
46
  useFormikContext<NetworkConfigurationValues>();
41
47
 
42
48
  const isMultiNodeCluster = !isSNO(cluster);
43
- const isClusterCIDRIPv6 = Address6.isValid(values.clusterNetworkCidr || '');
44
- const { isIPv6, isSDNSelectable } = React.useMemo(() => {
45
- const isIPv6 = isSubnetInIPv6({
46
- machineNetworkCidr: cluster.machineNetworkCidr,
47
- clusterNetworkCidr: values.clusterNetworkCidr,
48
- serviceNetworkCidr: values.serviceNetworkCidr,
49
- });
50
- return {
51
- isIPv6,
52
- isSDNSelectable: canSelectNetworkTypeSDN(!isMultiNodeCluster, isIPv6),
53
- };
54
- }, [
55
- isMultiNodeCluster,
56
- values.clusterNetworkCidr,
57
- cluster.machineNetworkCidr,
58
- values.serviceNetworkCidr,
59
- ]);
49
+ const isDualStackSelectable = React.useMemo(() => canBeDualStack(hostSubnets), [hostSubnets]);
50
+
51
+ const isDualStack = values.stackType === DUAL_STACK;
52
+ const isSDNSelectable = React.useMemo(
53
+ () => canSelectNetworkTypeSDN(!isMultiNodeCluster, isDualStack),
54
+ [isMultiNodeCluster, isDualStack],
55
+ );
60
56
 
61
57
  const [isAdvanced, setAdvanced] = React.useState(
62
- isAdvNetworkConf(cluster, defaultNetworkSettings),
58
+ isDualStack || isAdvNetworkConf(cluster, defaultNetworkSettings),
63
59
  );
64
60
 
65
- const toggleAdvConfiguration = (checked: boolean) => {
66
- setAdvanced(checked);
61
+ const toggleAdvConfiguration = useCallback(
62
+ (checked: boolean) => {
63
+ setAdvanced(checked);
64
+
65
+ if (!checked) {
66
+ setFieldValue('clusterNetworks', defaultNetworkSettings.clusterNetworksIpv4);
67
+ setFieldValue('serviceNetworks', defaultNetworkSettings.serviceNetworksIpv4);
68
+ }
69
+ },
70
+ [setFieldValue, defaultNetworkSettings],
71
+ );
67
72
 
68
- if (!checked) {
69
- setFieldValue('clusterNetworkCidr', defaultNetworkSettings.clusterNetworkCidr);
70
- setFieldValue('serviceNetworkCidr', defaultNetworkSettings.serviceNetworkCidr);
71
- setFieldValue('clusterNetworkHostPrefix', defaultNetworkSettings.clusterNetworkHostPrefix);
73
+ // Auto-enable advanced networking when switching to dual-stack
74
+ useEffect(() => {
75
+ if (isDualStack) {
76
+ toggleAdvConfiguration(true);
72
77
  }
73
- };
78
+ }, [isDualStack, toggleAdvConfiguration]);
74
79
 
75
80
  const isUserManagedNetworking = values.managedNetworkingType === 'userManaged';
76
- const firstSubnet = hostSubnets[0]?.subnet;
81
+ const primaryMachineNetwork = values.machineNetworks?.[0]?.cidr;
77
82
 
83
+ // Clear machine networks when switching to user-managed networking for multi-node clusters
78
84
  useEffect(() => {
79
- if (isUserManagedNetworking && isMultiNodeCluster) {
80
- values.hostSubnet !== NO_SUBNET_SET && setFieldValue('hostSubnet', NO_SUBNET_SET, false);
81
- } else if (values.hostSubnet === NO_SUBNET_SET && firstSubnet) {
82
- setFieldValue('hostSubnet', firstSubnet, false);
85
+ if (isUserManagedNetworking && isMultiNodeCluster && values.machineNetworks?.length) {
86
+ setFieldValue('machineNetworks', [], false);
83
87
  }
84
- }, [isUserManagedNetworking, isMultiNodeCluster, values.hostSubnet, setFieldValue, firstSubnet]);
85
-
88
+ }, [isUserManagedNetworking, isMultiNodeCluster, values.machineNetworks?.length, setFieldValue]);
86
89
  useEffect(() => {
87
90
  if (!cluster.networkType) {
88
91
  setFieldValue('networkType', NETWORK_TYPE_OVN);
89
92
  }
90
93
  // Skipping "cluster.networkType" as it's ultimately the value we are setting in the form
91
94
  // eslint-disable-next-line react-hooks/exhaustive-deps
92
- }, [isIPv6, isMultiNodeCluster, setFieldValue]);
95
+ }, [isDualStack, isMultiNodeCluster, setFieldValue]);
93
96
 
94
97
  useEffect(() => {
95
98
  if (isUserManagedNetworking) {
96
- const shouldValidate = !!touched.hostSubnet;
99
+ const shouldValidate = !!touched.machineNetworks;
97
100
 
98
101
  // We need to reset these fields' values in order to align with the values the server sends
99
102
  setFieldValue('vipDhcpAllocation', false);
@@ -106,12 +109,13 @@ const NetworkConfiguration = ({
106
109
  }
107
110
  }
108
111
  }, [
109
- touched.hostSubnet,
112
+ touched.machineNetworks,
110
113
  isMultiNodeCluster,
111
114
  isUserManagedNetworking,
112
115
  setFieldValue,
113
116
  values.vipDhcpAllocation,
114
117
  validateField,
118
+ primaryMachineNetwork,
115
119
  ]);
116
120
  return (
117
121
  <Grid hasGutter>
@@ -124,13 +128,25 @@ const NetworkConfiguration = ({
124
128
  />
125
129
  )}
126
130
 
131
+ {(!isMultiNodeCluster || !isUserManagedNetworking) && (
132
+ <StackTypeControlGroup
133
+ clusterId={cluster.id}
134
+ isDualStackSelectable={isDualStackSelectable}
135
+ hostSubnets={hostSubnets}
136
+ defaultNetworkValues={defaultNetworkSettings}
137
+ />
138
+ )}
139
+
127
140
  <NetworkTypeControlGroup isSDNSelectable={isSDNSelectable} />
128
141
 
129
142
  {!(isMultiNodeCluster && isUserManagedNetworking) && (
130
143
  <AvailableSubnetsControl
144
+ clusterId={cluster.id}
131
145
  hostSubnets={hostSubnets}
132
- hosts={cluster.hosts || []}
133
146
  isRequired={!isUserManagedNetworking}
147
+ isDisabled={hostSubnets.length === 0}
148
+ openshiftVersion={cluster.openshiftVersion}
149
+ hosts={cluster.hosts || []}
134
150
  isMultiNodeCluster={isMultiNodeCluster}
135
151
  />
136
152
  )}
@@ -149,7 +165,8 @@ const NetworkConfiguration = ({
149
165
  description={t('ai:Configure advanced networking properties (e.g. CIDR ranges).')}
150
166
  isChecked={isAdvanced}
151
167
  onChange={(_event, checked: boolean) => toggleAdvConfiguration(checked)}
152
- body={isAdvanced && <AdvancedNetworkFields isClusterCIDRIPv6={isClusterCIDRIPv6} />}
168
+ isDisabled={isDualStack}
169
+ body={isAdvanced && <AdvancedNetworkFields />}
153
170
  />
154
171
  </Grid>
155
172
  );
@@ -14,7 +14,7 @@ import {
14
14
  OsImage,
15
15
  } from '../../../types';
16
16
  import { ClusterImageSetK8sResource } from '../../../types/k8s/cluster-image-set';
17
- import { getOCPVersions, getSelectedVersion } from '../../helpers';
17
+ import { getOCPVersions } from '../../helpers';
18
18
  import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
19
19
  import {
20
20
  ClusterDetailsFormFields,
@@ -46,17 +46,14 @@ export const ClusterDeploymentDetailsFormWrapper = ({
46
46
  }) => {
47
47
  const { activeStep, goToPrevStep, goToNextStep, close } = useWizardContext();
48
48
  const { syncError } = React.useContext(ClusterDeploymentWizardContext);
49
- const { submitForm, isSubmitting, isValid, isValidating, dirty } =
50
- useFormikContext<ClusterDetailsValues>();
49
+ const { isSubmitting, isValid, isValidating } = useFormikContext<ClusterDetailsValues>();
51
50
  const { t } = useTranslation();
52
51
 
52
+ // ClusterDeploymentDetailsFormWrapper is exclusively used by ClusterDeploymentWizard (edit flow).
53
+ // No form submission needed here—just navigate to the next step.
53
54
  const handleOnNext = React.useCallback(() => {
54
- if (dirty) {
55
- void submitForm();
56
- } else {
57
- void goToNextStep();
58
- }
59
- }, [dirty, goToNextStep, submitForm]);
55
+ void goToNextStep();
56
+ }, [goToNextStep]);
60
57
 
61
58
  const footer = React.useMemo(
62
59
  () => (
@@ -93,7 +90,6 @@ export const ClusterDeploymentDetailsFormWrapper = ({
93
90
  };
94
91
 
95
92
  export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps> = ({
96
- agentClusterInstall,
97
93
  clusterDeployment,
98
94
  clusterImages,
99
95
  extensionAfter,
@@ -111,18 +107,13 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
111
107
  [clusterImages, isNutanix, osImages],
112
108
  );
113
109
 
114
- const forceOpenshiftVersion = agentClusterInstall
115
- ? getSelectedVersion(clusterImages, agentClusterInstall)
116
- : undefined;
117
110
  const isEditFlow = !!clusterDeployment;
118
111
 
119
112
  const { values } = useFormikContext<ClusterDetailsValues>();
120
113
 
121
114
  const [cpuArchitectures, allowHighlyAvailable] = React.useMemo(() => {
122
115
  const cpuArchitectures = [CpuArchitecture.x86, CpuArchitecture.ARM, CpuArchitecture.s390x];
123
- const version = allVersions.find(
124
- (ver) => ver.value === values.openshiftVersion || ver.version === forceOpenshiftVersion,
125
- );
116
+ const version = allVersions.find((ver) => ver.value === values.openshiftVersion);
126
117
  const isMulti = version?.cpuArchitectures?.[0] === CpuArchitecture.MULTI;
127
118
 
128
119
  const highlyAvailableSupported = toNumber(version?.version?.split('.')?.[1]) >= 18;
@@ -130,7 +121,7 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
130
121
  (isMulti ? cpuArchitectures : version?.cpuArchitectures) as SupportedCpuArchitecture[],
131
122
  highlyAvailableSupported && !isMulti,
132
123
  ];
133
- }, [allVersions, forceOpenshiftVersion, values.openshiftVersion]);
124
+ }, [allVersions, values.openshiftVersion]);
134
125
 
135
126
  return (
136
127
  <>
@@ -148,7 +139,6 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
148
139
  versions={versions}
149
140
  allVersions={allVersions}
150
141
  isEditFlow={isEditFlow}
151
- forceOpenshiftVersion={forceOpenshiftVersion}
152
142
  extensionAfter={extensionAfter}
153
143
  isNutanix={isNutanix}
154
144
  cpuArchitectures={cpuArchitectures}
@@ -3,6 +3,7 @@ import { Form } from '@patternfly/react-core';
3
3
  import { useFormikContext } from 'formik';
4
4
 
5
5
  import {
6
+ acmClusterNameValidationMessages,
6
7
  ExternalPlatformsDropdown,
7
8
  isMajorMinorVersionEqualOrGreater,
8
9
  OpenShiftVersionDropdown,
@@ -11,11 +12,7 @@ import {
11
12
  import { StaticTextField } from '../../../../common/components/ui/StaticTextField';
12
13
  import { PullSecret } from '../../../../common/components/clusters';
13
14
  import { OpenshiftVersionOptionType, SupportedCpuArchitecture } from '../../../../common/types';
14
- import {
15
- InputField,
16
- RichInputField,
17
- acmClusterNameValidationMessages,
18
- } from '../../../../common/components/ui/formik';
15
+ import { InputField, RichInputField } from '../../../../common/components/ui/formik';
19
16
  import { ClusterDetailsValues } from '../../../../common/components/clusterWizard/types';
20
17
  import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
21
18
  import CpuArchitectureDropdown from '../../common/CpuArchitectureDropdown';
@@ -24,7 +21,6 @@ import { getNetworkType } from '../../helpers';
24
21
 
25
22
  export type ClusterDetailsFormFieldsProps = {
26
23
  isEditFlow: boolean;
27
- forceOpenshiftVersion?: string;
28
24
  extensionAfter?: { [key: string]: React.ReactElement };
29
25
  versions: OpenshiftVersionOptionType[];
30
26
  allVersions: OpenshiftVersionOptionType[];
@@ -44,9 +40,9 @@ export const BaseDnsHelperText: React.FC<{ name?: string; baseDnsDomain?: string
44
40
  'ai:All DNS records must be subdomains of this base and include the cluster name. This cannot be changed after cluster installation. The full cluster address will be:',
45
41
  )}{' '}
46
42
  <br />
47
- <strong>
43
+ <span className="pf-v6-u-font-weight-bold">
48
44
  {name || '[Cluster Name]'}.{baseDnsDomain || '[example.com]'}
49
- </strong>
45
+ </span>
50
46
  </>
51
47
  );
52
48
  };
@@ -55,7 +51,6 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
55
51
  isEditFlow,
56
52
  versions,
57
53
  allVersions,
58
- forceOpenshiftVersion,
59
54
  extensionAfter,
60
55
  isNutanix,
61
56
  cpuArchitectures,
@@ -68,7 +63,7 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
68
63
  const { name, baseDnsDomain } = values;
69
64
 
70
65
  React.useEffect(() => {
71
- if (!versions.length && !values.openshiftVersion) {
66
+ if (!versions.length && !values.openshiftVersion && !isEditFlow) {
72
67
  const fallbackOpenShiftVersion = allVersions.find((version) => version.default);
73
68
  setFieldValue('customOpenshiftSelect', fallbackOpenShiftVersion?.value);
74
69
  setFieldValue('openshiftVersion', fallbackOpenShiftVersion?.value);
@@ -143,9 +138,11 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
143
138
  isRequired
144
139
  />
145
140
  )}
146
- {forceOpenshiftVersion ? (
141
+ {isEditFlow ? (
147
142
  <StaticTextField name="openshiftVersion" label="OpenShift version" isRequired>
148
- {t('ai:OpenShift')} {forceOpenshiftVersion}
143
+ {t('ai:OpenShift')}{' '}
144
+ {allVersions.find((v) => v.value === values.openshiftVersion)?.version ||
145
+ values.openshiftVersion}
149
146
  </StaticTextField>
150
147
  ) : (
151
148
  <>
@@ -2,11 +2,11 @@ import * as React from 'react';
2
2
  import { Stack, StackItem } from '@patternfly/react-core';
3
3
  import { Host } from '@openshift-assisted/types/assisted-installer-service';
4
4
  import {
5
- discoveryTypeColumn,
6
- agentStatusColumn,
7
5
  useAgentsTable,
8
6
  canChangeHostname,
9
- } from '../../Agent/tableUtils';
7
+ discoveryTypeColumn,
8
+ agentStatusColumn,
9
+ } from '../../Agent';
10
10
  import HostsTable, {
11
11
  DefaultExpandComponent,
12
12
  HostsTableEmptyState,
@@ -20,8 +20,6 @@ import {
20
20
  labelsColumn,
21
21
  memoryColumn,
22
22
  roleColumn,
23
- } from '../../../../common/components/hosts/tableUtils';
24
- import {
25
23
  DiscoveryTroubleshootingModal,
26
24
  ChangeHostnameAction,
27
25
  MassChangeHostnameModal,
@@ -96,9 +96,7 @@ const getValidationSchema = (agentClusterInstall: AgentClusterInstallK8sResource
96
96
  selectedHostIds: values.autoSelectHosts
97
97
  ? Yup.array(Yup.string())
98
98
  : isSNOCluster
99
- ? Yup.array(Yup.string())
100
- .min(1, t('ai:Please select one host for the cluster.'))
101
- .max(1, t('ai:Please select one host for the cluster.')) // TODO(jtomasek): replace this with Yup.array().length() after updating Yup
99
+ ? Yup.array(Yup.string()).length(1, t('ai:Please select one host for the cluster.'))
102
100
  : Yup.array(Yup.string()).min(3, t('ai:Please select at least 3 hosts for the cluster.')),
103
101
  });
104
102
  });
@@ -171,7 +169,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
171
169
  setSubmitting,
172
170
  } = useFormikContext<ClusterDeploymentHostsSelectionValues>();
173
171
  const [nextRequested, setNextRequested] = React.useState(false);
174
- const [showFormErrors, setShowFormErrors] = React.useState(false);
172
+ const [hasAttemptedSubmit, setHasAttemptedSubmit] = React.useState(false);
175
173
  const selectedAgents = getSelectedAgents(agents, values);
176
174
  const { t } = useTranslation();
177
175
  const onEditRole = React.useCallback(
@@ -189,7 +187,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
189
187
  const onAutoSelectChange = React.useCallback(() => {
190
188
  setNextRequested(false);
191
189
  setShowClusterErrors(false);
192
- setShowFormErrors(false);
190
+ setHasAttemptedSubmit(false);
193
191
  }, []);
194
192
 
195
193
  const onHostSelect = React.useCallback(() => {
@@ -198,8 +196,8 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
198
196
  }, []);
199
197
 
200
198
  const onNext = React.useCallback(async () => {
201
- if (!showFormErrors) {
202
- setShowFormErrors(true);
199
+ if (!hasAttemptedSubmit) {
200
+ setHasAttemptedSubmit(true);
203
201
  const errors = await validateForm();
204
202
  setTouched(
205
203
  Object.keys(errors).reduce((acc, curr) => {
@@ -213,7 +211,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
213
211
  }
214
212
  void submitForm();
215
213
  setNextRequested(true);
216
- }, [setTouched, showFormErrors, submitForm, validateForm]);
214
+ }, [setTouched, hasAttemptedSubmit, submitForm, validateForm]);
217
215
 
218
216
  React.useEffect(() => {
219
217
  if (nextRequested && !isSubmitting) {
@@ -265,35 +263,34 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
265
263
  </ValidationSection>
266
264
  );
267
265
 
268
- const footer = React.useMemo(
269
- () => (
266
+ const footer = React.useMemo(() => {
267
+ const hasValidationErrors = hasAttemptedSubmit && (!isValid || isValidating);
268
+ const isNextDisabled = nextRequested || isSubmitting || hasValidationErrors; // || !!syncError
269
+
270
+ return (
270
271
  <WizardFooter
271
272
  activeStep={activeStep}
272
273
  onNext={onNext}
273
- isNextDisabled={
274
- nextRequested || isSubmitting || (showFormErrors ? !isValid || isValidating : false) // ||
275
- // !!syncError
276
- }
274
+ isNextDisabled={isNextDisabled}
277
275
  nextButtonText={submittingText || t('ai:Next')}
278
276
  nextButtonProps={{ isLoading: !!submittingText }}
279
277
  onBack={goToPrevStep}
280
278
  onClose={close}
281
279
  />
282
- ),
283
- [
284
- activeStep,
285
- onNext,
286
- nextRequested,
287
- isSubmitting,
288
- showFormErrors,
289
- isValid,
290
- isValidating,
291
- submittingText,
292
- t,
293
- goToPrevStep,
294
- close,
295
- ],
296
- );
280
+ );
281
+ }, [
282
+ activeStep,
283
+ onNext,
284
+ nextRequested,
285
+ isSubmitting,
286
+ hasAttemptedSubmit,
287
+ isValid,
288
+ isValidating,
289
+ submittingText,
290
+ t,
291
+ goToPrevStep,
292
+ close,
293
+ ]);
297
294
 
298
295
  useWizardFooter(footer);
299
296
 
@@ -316,14 +313,14 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
316
313
  hostsBinding={nextRequested && !showClusterErrors}
317
314
  />
318
315
  </GridItem>
319
- {(showClusterErrors || showFormErrors) && !!alerts.length && (
316
+ {(showClusterErrors || hasAttemptedSubmit) && !!alerts.length && (
320
317
  <GridItem>
321
318
  <Alerts />
322
319
  </GridItem>
323
320
  )}
324
321
 
325
322
  {syncError && <GridItem>{errorsSection}</GridItem>}
326
- {showFormErrors && errors.selectedHostIds && touched.selectedHostIds && (
323
+ {hasAttemptedSubmit && errors.selectedHostIds && touched.selectedHostIds && (
327
324
  <GridItem>
328
325
  <Alert
329
326
  variant={AlertVariant.danger}
@@ -3,54 +3,48 @@ import {
3
3
  ClusterDefaultConfig,
4
4
  } from '@openshift-assisted/types/assisted-installer-service';
5
5
  import { NetworkConfigurationValues } from '../../../common/types/clusters';
6
- import {
7
- getSubnetFromMachineNetworkCidr,
8
- getHostSubnets,
9
- } from '../../../common/components/clusterConfiguration/utils';
10
- import {
11
- isSNO,
12
- selectClusterNetworkCIDR,
13
- selectClusterNetworkHostPrefix,
14
- selectMachineNetworkCIDR,
15
- selectServiceNetworkCIDR,
16
- } from '../../../common/selectors/clusterSelectors';
17
- import { NETWORK_TYPE_OVN, NO_SUBNET_SET } from '../../../common/config';
18
-
19
- const getInitHostSubnet = (
20
- cluster: Cluster,
21
- managedNetworkingType: 'userManaged' | 'clusterManaged',
22
- ) => {
23
- if (!isSNO(cluster) && managedNetworkingType === 'userManaged') {
24
- return NO_SUBNET_SET;
25
- }
26
- const machineNetworkCIDR = selectMachineNetworkCIDR(cluster);
27
- if (machineNetworkCIDR) {
28
- return getSubnetFromMachineNetworkCidr(machineNetworkCIDR);
29
- }
30
- if (managedNetworkingType === 'clusterManaged') {
31
- return getHostSubnets(cluster)?.[0]?.subnet;
32
- }
33
- };
6
+ import { isDualStack } from '../../../common/components/clusterConfiguration/utils';
7
+ import { DUAL_STACK, IPV4_STACK, NETWORK_TYPE_OVN } from '../../../common/config';
34
8
 
35
9
  export const getNetworkInitialValues = (
36
10
  cluster: Cluster,
37
- defaultNetworkSettings: ClusterDefaultConfig,
11
+ defaultNetworkSettings: Pick<
12
+ ClusterDefaultConfig,
13
+ | 'clusterNetworksIpv4'
14
+ | 'clusterNetworksDualstack'
15
+ | 'serviceNetworksIpv4'
16
+ | 'serviceNetworksDualstack'
17
+ >,
38
18
  ): NetworkConfigurationValues => {
39
19
  const managedNetworkingType = cluster.userManagedNetworking ? 'userManaged' : 'clusterManaged';
20
+ const isDualStackCluster = isDualStack(cluster);
21
+
22
+ let clusterNetworks = cluster.clusterNetworks;
23
+ if (!cluster.clusterNetworks?.length) {
24
+ clusterNetworks = isDualStackCluster
25
+ ? defaultNetworkSettings.clusterNetworksDualstack
26
+ : defaultNetworkSettings.clusterNetworksIpv4;
27
+ }
28
+
29
+ let serviceNetworks = cluster.serviceNetworks;
30
+ if (!serviceNetworks?.length) {
31
+ serviceNetworks = isDualStackCluster
32
+ ? defaultNetworkSettings.serviceNetworksDualstack
33
+ : defaultNetworkSettings.serviceNetworksIpv4;
34
+ }
35
+
36
+ const machineNetworks = cluster.machineNetworks || [];
40
37
 
41
38
  return {
42
- clusterNetworkCidr:
43
- selectClusterNetworkCIDR(cluster) || defaultNetworkSettings.clusterNetworkCidr,
44
- clusterNetworkHostPrefix:
45
- selectClusterNetworkHostPrefix(cluster) || defaultNetworkSettings.clusterNetworkHostPrefix,
46
- serviceNetworkCidr:
47
- selectServiceNetworkCIDR(cluster) || defaultNetworkSettings.serviceNetworkCidr,
39
+ clusterNetworks,
40
+ serviceNetworks,
41
+ machineNetworks,
48
42
  apiVips: cluster.apiVips,
49
43
  ingressVips: cluster.ingressVips,
50
44
  sshPublicKey: cluster.sshPublicKey || '',
51
- hostSubnet: getInitHostSubnet(cluster, managedNetworkingType) || NO_SUBNET_SET,
52
45
  vipDhcpAllocation: cluster.vipDhcpAllocation,
53
46
  managedNetworkingType,
54
47
  networkType: cluster.networkType || NETWORK_TYPE_OVN,
48
+ stackType: isDualStackCluster ? DUAL_STACK : IPV4_STACK,
55
49
  };
56
50
  };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ConnectedIcon } from '@patternfly/react-icons/dist/js/icons/connected-icon';
3
- import { EmptyState } from '../../../../common';
3
+ import { EmptyState, activeNICColumn, hostnameColumn, roleColumn } from '../../../../common';
4
4
  import { AgentTableActions } from '../types';
5
5
  import {
6
6
  AgentClusterInstallK8sResource,
@@ -9,14 +9,9 @@ import {
9
9
  } from '../../../types';
10
10
  import { getAICluster, getIsSNOCluster } from '../../helpers';
11
11
  import { AdditionalNTPSourcesDialogToggle } from '../components/AdditionalNTPSourcesDialogToggle';
12
- import { agentStatusColumn, useAgentsTable } from '../../Agent/tableUtils';
12
+ import { agentStatusColumn, useAgentsTable } from '../../Agent';
13
13
  import HostsTable from '../../../../common/components/hosts/HostsTable';
14
14
  import { HostDetail } from '../../../../common/components/hosts/HostRowDetail';
15
- import {
16
- activeNICColumn,
17
- hostnameColumn,
18
- roleColumn,
19
- } from '../../../../common/components/hosts/tableUtils';
20
15
  import { usePagination } from '../../../../common/components/hosts/usePagination';
21
16
  import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
22
17
  import { Host } from '@openshift-assisted/types/assisted-installer-service';
@@ -14,7 +14,7 @@ import {
14
14
  StackItem,
15
15
  } from '@patternfly/react-core';
16
16
  import {
17
- CLUSTER_DEFAULT_NETWORK_SETTINGS_IPV4,
17
+ CLUSTER_DEFAULT_NETWORK_SETTINGS,
18
18
  getHostSubnets,
19
19
  SecurityFields,
20
20
  ProxyFields,
@@ -99,7 +99,7 @@ const ClusterDeploymentNetworkingForm: React.FC<ClusterDeploymentNetworkingFormP
99
99
  <Content component={ContentVariants.p}>
100
100
  <Trans
101
101
  t={t}
102
- components={{ bold: <strong /> }}
102
+ components={{ bold: <span className="pf-v6-u-font-weight-bold" /> }}
103
103
  i18nKey="ai:The hosts you selected are using different proxy settings. Configure a proxy that will be applied for these hosts. <bold>Configure at least one of the proxy settings below.</bold>"
104
104
  />
105
105
  </Content>
@@ -133,7 +133,7 @@ const ClusterDeploymentNetworkingForm: React.FC<ClusterDeploymentNetworkingFormP
133
133
  cluster={cluster}
134
134
  hostSubnets={hostSubnets}
135
135
  isVipDhcpAllocationDisabled
136
- defaultNetworkSettings={CLUSTER_DEFAULT_NETWORK_SETTINGS_IPV4}
136
+ defaultNetworkSettings={CLUSTER_DEFAULT_NETWORK_SETTINGS}
137
137
  hideManagedNetworking={getIsSNOCluster(agentClusterInstall) || isNutanix}
138
138
  />
139
139
  </GridItem>