@openshift-assisted/ui-lib 2.49.0 → 2.50.1

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 (1142) 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/NoAgentsAlert.d.ts.map +1 -1
  14. package/build/@types/cim/components/Agent/index.d.ts +2 -0
  15. package/build/@types/cim/components/Agent/index.d.ts.map +1 -1
  16. package/build/@types/cim/components/Agent/tableColumns.d.ts +29 -0
  17. package/build/@types/cim/components/Agent/tableColumns.d.ts.map +1 -0
  18. package/build/@types/cim/components/Agent/tableUtils.d.ts +4 -23
  19. package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
  20. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts +1 -1
  21. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts.map +1 -1
  22. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
  23. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
  24. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  25. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts +0 -1
  26. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
  27. package/build/@types/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +1 -1
  28. package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts.map +1 -1
  29. package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.d.ts +1 -1
  30. package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.d.ts.map +1 -1
  31. package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapForm.d.ts.map +1 -1
  32. package/build/@types/cim/components/ClusterDeployment/helpers.d.ts.map +1 -1
  33. package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
  34. package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.d.ts.map +1 -1
  35. package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  36. package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +1 -1
  37. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
  38. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
  39. package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -1
  40. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  41. package/build/@types/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.d.ts.map +1 -1
  42. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +9 -5
  43. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
  44. package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsTable.d.ts +1 -0
  45. package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsTable.d.ts.map +1 -1
  46. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
  47. package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.d.ts.map +1 -1
  48. package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.d.ts.map +1 -1
  49. package/build/@types/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.d.ts.map +1 -0
  50. package/build/@types/cim/components/Hypershift/hooks/useTemptiflySync.d.ts.map +1 -1
  51. package/build/@types/cim/components/Hypershift/modals/AddNodePoolModal.d.ts.map +1 -1
  52. package/build/@types/cim/components/Hypershift/modals/ManageHostsModal.d.ts.map +1 -1
  53. package/build/@types/cim/components/Hypershift/modals/RemoveNodePoolModal.d.ts.map +1 -1
  54. package/build/@types/cim/components/Hypershift/utils/labels.d.ts.map +1 -1
  55. package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
  56. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts +0 -1
  57. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  58. package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts +1 -1
  59. package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts.map +1 -1
  60. package/build/@types/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.d.ts.map +1 -1
  61. package/build/@types/cim/components/YamlPreview/YamlPreview.d.ts +1 -1
  62. package/build/@types/cim/components/YamlPreview/YamlPreview.d.ts.map +1 -1
  63. package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts +2 -2
  64. package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts.map +1 -1
  65. package/build/@types/cim/components/common/SpecSyncErrAlert.d.ts.map +1 -1
  66. package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
  67. package/build/@types/cim/components/helpers/status.d.ts +1 -1
  68. package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
  69. package/build/@types/cim/components/helpers/toAssisted.d.ts +3 -3
  70. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  71. package/build/@types/cim/components/helpers/versions.d.ts +1 -1
  72. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  73. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  74. package/build/@types/cim/components/modals/AddBmcHostYamlForm.d.ts.map +1 -1
  75. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  76. package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
  77. package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationFormFields.d.ts.map +1 -1
  78. package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
  79. package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts +2 -2
  80. package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
  81. package/build/@types/cim/components/modals/CimConfiguration/types.d.ts +1 -1
  82. package/build/@types/cim/components/modals/CimConfiguration/utils.d.ts +4 -4
  83. package/build/@types/cim/components/modals/CimConfiguration/utils.d.ts.map +1 -1
  84. package/build/@types/cim/components/modals/EditBMHModal.d.ts.map +1 -1
  85. package/build/@types/cim/components/modals/EditNtpSourcesModal.d.ts.map +1 -1
  86. package/build/@types/cim/components/modals/EditProxyModal.d.ts.map +1 -1
  87. package/build/@types/cim/components/modals/EditPullSecretModal.d.ts.map +1 -1
  88. package/build/@types/cim/components/modals/EditSSHKeyModal.d.ts.map +1 -1
  89. package/build/@types/cim/components/modals/MassApproveAgentModal.d.ts.map +1 -1
  90. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts.map +1 -1
  91. package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
  92. package/build/@types/cim/components/modals/utils.d.ts.map +1 -1
  93. package/build/@types/cim/hooks/index.d.ts +1 -0
  94. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  95. package/build/@types/cim/hooks/types.d.ts +1 -1
  96. package/build/@types/cim/hooks/types.d.ts.map +1 -1
  97. package/build/@types/cim/hooks/useEvents.d.ts +4 -0
  98. package/build/@types/cim/hooks/useEvents.d.ts.map +1 -0
  99. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts +12 -0
  100. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts.map +1 -1
  101. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +4 -0
  102. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  103. package/build/@types/cim/types/k8s/bare-metal-host.d.ts +20 -0
  104. package/build/@types/cim/types/k8s/bare-metal-host.d.ts.map +1 -1
  105. package/build/@types/cim/utils.d.ts +1 -1
  106. package/build/@types/cim/utils.d.ts.map +1 -1
  107. package/build/@types/common/api/axiosClient.d.ts.map +1 -1
  108. package/build/@types/common/components/AddHosts/AddHostsContext.d.ts +1 -1
  109. package/build/@types/common/components/AddHosts/AddHostsContext.d.ts.map +1 -1
  110. package/build/@types/common/components/AlertsContextProvider.d.ts +1 -1
  111. package/build/@types/common/components/AlertsContextProvider.d.ts.map +1 -1
  112. package/build/@types/common/components/ErrorHandling/ErrorMonitorContext.d.ts +1 -1
  113. package/build/@types/common/components/ErrorHandling/ErrorMonitorContext.d.ts.map +1 -1
  114. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +3 -3
  115. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  116. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts +1 -1
  117. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  118. package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
  119. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.d.ts.map +1 -1
  120. package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts.map +1 -1
  121. package/build/@types/common/components/clusterConfiguration/utils.d.ts +2 -2
  122. package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
  123. package/build/@types/common/components/clusterDetail/ClusterProgressItem.d.ts.map +1 -1
  124. package/build/@types/common/components/clusterWizard/ClusterWizardStepHeader.d.ts +1 -1
  125. package/build/@types/common/components/clusterWizard/ClusterWizardStepHeader.d.ts.map +1 -1
  126. package/build/@types/common/components/clusterWizard/ClusterWizardStepValidationsAlert.d.ts.map +1 -1
  127. package/build/@types/common/components/clusterWizard/ReviewHostsInventory.d.ts +1 -1
  128. package/build/@types/common/components/clusterWizard/ReviewHostsInventory.d.ts.map +1 -1
  129. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  130. package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts +6 -6
  131. package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
  132. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts +7 -0
  133. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts.map +1 -0
  134. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +10 -6
  135. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  136. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +13 -0
  137. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -0
  138. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.d.ts +1 -1
  139. package/build/@types/common/components/clusterWizard/networkingSteps/SubnetsDropdown.d.ts.map +1 -0
  140. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts +4 -2
  141. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
  142. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +7 -2
  143. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
  144. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.d.ts +1 -1
  145. package/build/@types/common/components/clusterWizard/networkingSteps/reorderNetworks.d.ts.map +1 -0
  146. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts +3 -3
  147. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  148. package/build/@types/common/components/hosts/AITable.d.ts +1 -22
  149. package/build/@types/common/components/hosts/AITable.d.ts.map +1 -1
  150. package/build/@types/common/components/hosts/AdditionalNTPSourcesDialog.d.ts.map +1 -1
  151. package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
  152. package/build/@types/common/components/hosts/HostProgress.d.ts.map +1 -1
  153. package/build/@types/common/components/hosts/HostPropertyValidationPopover.d.ts +1 -1
  154. package/build/@types/common/components/hosts/HostPropertyValidationPopover.d.ts.map +1 -1
  155. package/build/@types/common/components/hosts/HostStatus.d.ts +1 -1
  156. package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
  157. package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
  158. package/build/@types/common/components/hosts/HostsTableDetailContext.d.ts +1 -1
  159. package/build/@types/common/components/hosts/HostsTableDetailContext.d.ts.map +1 -1
  160. package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
  161. package/build/@types/common/components/hosts/TableToolbar.d.ts +1 -1
  162. package/build/@types/common/components/hosts/TableToolbar.d.ts.map +1 -1
  163. package/build/@types/common/components/hosts/index.d.ts +2 -0
  164. package/build/@types/common/components/hosts/index.d.ts.map +1 -1
  165. package/build/@types/common/components/hosts/tableColumns.d.ts +21 -0
  166. package/build/@types/common/components/hosts/tableColumns.d.ts.map +1 -0
  167. package/build/@types/common/components/hosts/tableUtils.d.ts +3 -21
  168. package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
  169. package/build/@types/common/components/hosts/types.d.ts +1 -0
  170. package/build/@types/common/components/hosts/types.d.ts.map +1 -1
  171. package/build/@types/common/components/hosts/usePagination.d.ts +1 -1
  172. package/build/@types/common/components/hosts/usePagination.d.ts.map +1 -1
  173. package/build/@types/common/components/operators/operatorSpecs.d.ts +1 -1
  174. package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
  175. package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
  176. package/build/@types/common/components/ui/Alerts.d.ts +1 -1
  177. package/build/@types/common/components/ui/Alerts.d.ts.map +1 -1
  178. package/build/@types/common/components/ui/CustomToolbarFilter.d.ts.map +1 -1
  179. package/build/@types/common/components/ui/EventsList.d.ts.map +1 -1
  180. package/build/@types/common/components/ui/GridGap.d.ts +1 -1
  181. package/build/@types/common/components/ui/GridGap.d.ts.map +1 -1
  182. package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts.map +1 -1
  183. package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts +2 -4
  184. package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts.map +1 -1
  185. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts +2 -2
  186. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -1
  187. package/build/@types/common/components/ui/PrismCode.d.ts +13 -11
  188. package/build/@types/common/components/ui/PrismCode.d.ts.map +1 -1
  189. package/build/@types/common/components/ui/StaticTextField.d.ts +3 -3
  190. package/build/@types/common/components/ui/StaticTextField.d.ts.map +1 -1
  191. package/build/@types/common/components/ui/Toolbar/ToolbarSecondaryGroup.d.ts +1 -1
  192. package/build/@types/common/components/ui/Toolbar/ToolbarSecondaryGroup.d.ts.map +1 -1
  193. package/build/@types/common/components/ui/formik/CertificatesUploadField.d.ts +1 -1
  194. package/build/@types/common/components/ui/formik/CertificatesUploadField.d.ts.map +1 -1
  195. package/build/@types/common/components/ui/formik/InputField.d.ts +2 -2
  196. package/build/@types/common/components/ui/formik/InputField.d.ts.map +1 -1
  197. package/build/@types/common/components/ui/formik/LabelField.d.ts +5 -10
  198. package/build/@types/common/components/ui/formik/LabelField.d.ts.map +1 -1
  199. package/build/@types/common/components/ui/formik/NumberInputField.d.ts +1 -1
  200. package/build/@types/common/components/ui/formik/NumberInputField.d.ts.map +1 -1
  201. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +3 -3
  202. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -1
  203. package/build/@types/common/components/ui/formik/TextAreaField.d.ts +1 -1
  204. package/build/@types/common/components/ui/formik/TextAreaField.d.ts.map +1 -1
  205. package/build/@types/common/components/ui/formik/UploadField.d.ts +1 -1
  206. package/build/@types/common/components/ui/formik/UploadField.d.ts.map +1 -1
  207. package/build/@types/common/components/ui/formik/index.d.ts +0 -2
  208. package/build/@types/common/components/ui/formik/index.d.ts.map +1 -1
  209. package/build/@types/common/components/ui/formik/utils.d.ts +1 -1
  210. package/build/@types/common/components/ui/formik/utils.d.ts.map +1 -1
  211. package/build/@types/common/components/ui/index.d.ts +1 -1
  212. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  213. package/build/@types/common/components/ui/utils.d.ts +3 -0
  214. package/build/@types/common/components/ui/utils.d.ts.map +1 -1
  215. package/build/@types/common/config/constants.d.ts +2 -1
  216. package/build/@types/common/config/constants.d.ts.map +1 -1
  217. package/build/@types/common/features/featureGate.d.ts +2 -2
  218. package/build/@types/common/features/featureGate.d.ts.map +1 -1
  219. package/build/@types/common/hooks/useDeepCompareMemoize.d.ts.map +1 -1
  220. package/build/@types/common/hooks/useFormikHelpers.d.ts.map +1 -1
  221. package/build/@types/common/hooks/useStateSafely.d.ts.map +1 -1
  222. package/build/@types/common/index.d.ts +1 -0
  223. package/build/@types/common/index.d.ts.map +1 -1
  224. package/build/@types/common/types/clusters.d.ts +0 -1
  225. package/build/@types/common/types/clusters.d.ts.map +1 -1
  226. package/build/@types/common/utils.d.ts +2 -2
  227. package/build/@types/common/utils.d.ts.map +1 -1
  228. package/build/@types/common/validationSchemas/addressValidation.d.ts +18 -0
  229. package/build/@types/common/validationSchemas/addressValidation.d.ts.map +1 -0
  230. package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts +8 -0
  231. package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts.map +1 -0
  232. package/build/@types/common/{components/ui/formik → validationSchemas}/constants.d.ts +1 -3
  233. package/build/@types/common/validationSchemas/constants.d.ts.map +1 -0
  234. package/build/@types/common/validationSchemas/hostnameValidation.d.ts +4 -0
  235. package/build/@types/common/validationSchemas/hostnameValidation.d.ts.map +1 -0
  236. package/build/@types/common/validationSchemas/index.d.ts +11 -0
  237. package/build/@types/common/validationSchemas/index.d.ts.map +1 -0
  238. package/build/@types/common/validationSchemas/networkingValidation.d.ts +18 -0
  239. package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -0
  240. package/build/@types/common/validationSchemas/ntpValidation.d.ts +4 -0
  241. package/build/@types/common/validationSchemas/ntpValidation.d.ts.map +1 -0
  242. package/build/@types/common/validationSchemas/proxyValidation.d.ts +11 -0
  243. package/build/@types/common/validationSchemas/proxyValidation.d.ts.map +1 -0
  244. package/build/@types/common/validationSchemas/pullSecretValidation.d.ts +4 -0
  245. package/build/@types/common/validationSchemas/pullSecretValidation.d.ts.map +1 -0
  246. package/build/@types/common/validationSchemas/regexes.d.ts +14 -0
  247. package/build/@types/common/validationSchemas/regexes.d.ts.map +1 -0
  248. package/build/@types/common/validationSchemas/sshValidation.d.ts +5 -0
  249. package/build/@types/common/validationSchemas/sshValidation.d.ts.map +1 -0
  250. package/build/@types/common/validationSchemas/utils.d.ts +7 -0
  251. package/build/@types/common/validationSchemas/utils.d.ts.map +1 -0
  252. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts +1 -1
  253. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts.map +1 -1
  254. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2DiscoveryImageModalButton.d.ts.map +1 -1
  255. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIP.d.ts.map +1 -1
  256. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts.map +1 -1
  257. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.d.ts.map +1 -1
  258. package/build/@types/ocm/components/Routes.d.ts +1 -2
  259. package/build/@types/ocm/components/Routes.d.ts.map +1 -1
  260. package/build/@types/ocm/components/SentryErrorMonitorContextProvider.d.ts +1 -1
  261. package/build/@types/ocm/components/SentryErrorMonitorContextProvider.d.ts.map +1 -1
  262. package/build/@types/ocm/components/clusterConfiguration/ClusterDefaultConfigurationContext.d.ts +1 -1
  263. package/build/@types/ocm/components/clusterConfiguration/ClusterDefaultConfigurationContext.d.ts.map +1 -1
  264. package/build/@types/ocm/components/clusterConfiguration/HostInventory.d.ts.map +1 -1
  265. package/build/@types/ocm/components/clusterConfiguration/InformationAndAlerts.d.ts.map +1 -1
  266. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts +2 -2
  267. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
  268. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts +3 -7
  269. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  270. package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
  271. package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts +2 -3
  272. package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts.map +1 -1
  273. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
  274. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.d.ts.map +1 -1
  275. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifest.d.ts.map +1 -1
  276. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.d.ts.map +1 -1
  277. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +2 -1
  278. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
  279. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts +1 -1
  280. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  281. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  282. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.d.ts.map +1 -1
  283. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +2 -1
  284. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  285. package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts +2 -2
  286. package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts.map +1 -1
  287. package/build/@types/ocm/components/clusterConfiguration/operators/bundleSpecs.d.ts.map +1 -1
  288. package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts.map +1 -1
  289. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
  290. package/build/@types/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.d.ts.map +1 -1
  291. package/build/@types/ocm/components/clusterConfiguration/review/ReviewCustomManifestsTable.d.ts.map +1 -1
  292. package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
  293. package/build/@types/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.d.ts.map +1 -1
  294. package/build/@types/ocm/components/clusterConfiguration/review/ReviewPlatformTable.d.ts.map +1 -1
  295. package/build/@types/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.d.ts.map +1 -1
  296. package/build/@types/ocm/components/clusterConfiguration/review/ReviewStep.d.ts.map +1 -1
  297. package/build/@types/ocm/components/clusterConfiguration/review/ReviewSummary.d.ts.map +1 -1
  298. package/build/@types/ocm/components/clusterConfiguration/review/TableSummaryExpandable.d.ts +1 -1
  299. package/build/@types/ocm/components/clusterConfiguration/review/TableSummaryExpandable.d.ts.map +1 -1
  300. package/build/@types/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.d.ts.map +1 -1
  301. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.d.ts.map +1 -1
  302. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts +2 -1
  303. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts.map +1 -1
  304. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWideFields.d.ts.map +1 -1
  305. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.d.ts +1 -1
  306. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.d.ts.map +1 -1
  307. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.d.ts.map +1 -1
  308. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.d.ts.map +1 -1
  309. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.d.ts.map +1 -1
  310. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.d.ts.map +1 -1
  311. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts +2 -1
  312. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts.map +1 -1
  313. package/build/@types/ocm/components/clusterDetail/ClusterPollingErrorModal.d.ts +2 -2
  314. package/build/@types/ocm/components/clusterDetail/ClusterPollingErrorModal.d.ts.map +1 -1
  315. package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.d.ts.map +1 -1
  316. package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
  317. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  318. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  319. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts +4 -4
  320. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  321. package/build/@types/ocm/components/clusterWizard/ClusterWizardNavigation.d.ts +1 -1
  322. package/build/@types/ocm/components/clusterWizard/ClusterWizardNavigation.d.ts.map +1 -1
  323. package/build/@types/ocm/components/clusterWizard/CustomManifestStep.d.ts.map +1 -1
  324. package/build/@types/ocm/components/clusterWizard/HostDiscovery.d.ts.map +1 -1
  325. package/build/@types/ocm/components/clusterWizard/OpenShiftVersionsContext.d.ts.map +1 -1
  326. package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
  327. package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts +1 -1
  328. package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts.map +1 -1
  329. package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts +1 -1
  330. package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts.map +1 -1
  331. package/build/@types/ocm/components/clusterWizard/Storage.d.ts.map +1 -1
  332. package/build/@types/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.d.ts +1 -1
  333. package/build/@types/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.d.ts.map +1 -1
  334. package/build/@types/ocm/components/clusters/ClusterBreadcrumbs.d.ts +1 -1
  335. package/build/@types/ocm/components/clusters/ClusterBreadcrumbs.d.ts.map +1 -1
  336. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  337. package/build/@types/ocm/components/clusters/ClusterToolbar.d.ts +1 -1
  338. package/build/@types/ocm/components/clusters/ClusterToolbar.d.ts.map +1 -1
  339. package/build/@types/ocm/components/clusters/clusterPolling.d.ts.map +1 -1
  340. package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
  341. package/build/@types/ocm/components/hosts/ClusterHostsTable.d.ts.map +1 -1
  342. package/build/@types/ocm/components/hosts/HardwareStatus.d.ts +2 -2
  343. package/build/@types/ocm/components/hosts/HardwareStatus.d.ts.map +1 -1
  344. package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
  345. package/build/@types/ocm/components/hosts/HostsStorageTable.d.ts.map +1 -1
  346. package/build/@types/ocm/components/hosts/ModalDialogsContext.d.ts +1 -1
  347. package/build/@types/ocm/components/hosts/ModalDialogsContext.d.ts.map +1 -1
  348. package/build/@types/ocm/components/hosts/StorageAlerts.d.ts.map +1 -1
  349. package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
  350. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  351. package/build/@types/ocm/components/hosts/utils.d.ts.map +1 -1
  352. package/build/@types/ocm/components/ui/AssistedUILibVersion.d.ts +1 -1
  353. package/build/@types/ocm/components/ui/AssistedUILibVersion.d.ts.map +1 -1
  354. package/build/@types/ocm/services/ClusterDetailsService.d.ts +4 -4
  355. package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
  356. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  357. package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -1
  358. package/build/@types/ocm/store/slices/clusters/slice.d.ts +1 -1
  359. package/build/@types/ocm/store/slices/clusters/slice.d.ts.map +1 -1
  360. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +2 -2
  361. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
  362. package/build/@types/ocm/store/slices/current-user/slice.d.ts +1 -1
  363. package/build/@types/ocm/store/slices/current-user/slice.d.ts.map +1 -1
  364. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts +1 -1
  365. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts.map +1 -1
  366. package/build/@types/ocm/store/slices/infra-envs/slice.d.ts +1 -1
  367. package/build/@types/ocm/store/slices/infra-envs/slice.d.ts.map +1 -1
  368. package/build/@types/ocm/store/store-day1.d.ts +1 -1
  369. package/build/@types/ocm/store/store-day1.d.ts.map +1 -1
  370. package/build/cjs/cim/components/Agent/AgentStatus.js +2 -2
  371. package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
  372. package/build/cjs/cim/components/Agent/AgentTable.js +10 -9
  373. package/build/cjs/cim/components/Agent/AgentTable.js.map +1 -1
  374. package/build/cjs/cim/components/Agent/AgentsSelectionHostCountAlerts.js.map +1 -1
  375. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +9 -8
  376. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  377. package/build/cjs/cim/components/Agent/AgentsSelectionUtils.js.map +1 -1
  378. package/build/cjs/cim/components/Agent/BMCForm.js +8 -9
  379. package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
  380. package/build/cjs/cim/components/Agent/BMHEventsModal.js +54 -0
  381. package/build/cjs/cim/components/Agent/BMHEventsModal.js.map +1 -0
  382. package/build/cjs/cim/components/Agent/BMHStatus.js +3 -2
  383. package/build/cjs/cim/components/Agent/BMHStatus.js.map +1 -1
  384. package/build/cjs/cim/components/Agent/BMHStatusInfo.js +59 -0
  385. package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -0
  386. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +6 -5
  387. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
  388. package/build/cjs/cim/components/Agent/index.js +2 -0
  389. package/build/cjs/cim/components/Agent/index.js.map +1 -1
  390. package/build/cjs/cim/components/Agent/tableColumns.js +184 -0
  391. package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -0
  392. package/build/cjs/cim/components/Agent/tableUtils.js +4 -174
  393. package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
  394. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCredentials.js.map +1 -1
  395. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js +10 -10
  396. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js.map +1 -1
  397. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentKubeconfigDownload.js.map +1 -1
  398. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentValidationsOverview.js.map +1 -1
  399. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js +2 -2
  400. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js.map +1 -1
  401. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +28 -38
  402. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  403. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +9 -15
  404. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
  405. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js +1 -1
  406. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -1
  407. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +11 -13
  408. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  409. package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js +8 -6
  410. package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js.map +1 -1
  411. package/build/cjs/cim/components/ClusterDeployment/constants.js +1 -1
  412. package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
  413. package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -1
  414. package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapForm.js +1 -1
  415. package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapForm.js.map +1 -1
  416. package/build/cjs/cim/components/ClusterDeployment/helpers.js +1 -1
  417. package/build/cjs/cim/components/ClusterDeployment/helpers.js.map +1 -1
  418. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +13 -14
  419. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  420. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.js +8 -6
  421. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.js.map +1 -1
  422. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
  423. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +16 -15
  424. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  425. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelection.js.map +1 -1
  426. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.js +8 -6
  427. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.js.map +1 -1
  428. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +19 -18
  429. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  430. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js +9 -10
  431. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js.map +1 -1
  432. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js +2 -2
  433. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js.map +1 -1
  434. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js +12 -8
  435. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js.map +1 -1
  436. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +6 -4
  437. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  438. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +21 -14
  439. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  440. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  441. package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js.map +1 -1
  442. package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js.map +1 -1
  443. package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js.map +1 -1
  444. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js.map +1 -1
  445. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +3 -3
  446. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js.map +1 -1
  447. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +4 -8
  448. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
  449. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +2 -2
  450. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
  451. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js +17 -18
  452. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js.map +1 -1
  453. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js +2 -11
  454. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js.map +1 -1
  455. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.js.map +1 -1
  456. package/build/cjs/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.js +3 -3
  457. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.js.map +1 -0
  458. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js +1 -1
  459. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js.map +1 -1
  460. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js +8 -8
  461. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js.map +1 -1
  462. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  463. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +4 -4
  464. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
  465. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +4 -4
  466. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js.map +1 -1
  467. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
  468. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
  469. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js +4 -4
  470. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js.map +1 -1
  471. package/build/cjs/cim/components/Hypershift/utils/status.js.map +1 -1
  472. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +5 -2
  473. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
  474. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  475. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  476. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +11 -11
  477. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  478. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +9 -7
  479. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  480. package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js.map +1 -1
  481. package/build/cjs/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.js.map +1 -1
  482. package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js.map +1 -1
  483. package/build/cjs/cim/components/YamlPreview/YamlPreview.js +10 -11
  484. package/build/cjs/cim/components/YamlPreview/YamlPreview.js.map +1 -1
  485. package/build/cjs/cim/components/YamlPreview/useYAMLPreview.js.map +1 -1
  486. package/build/cjs/cim/components/common/CpuArchitectureDropdown.js.map +1 -1
  487. package/build/cjs/cim/components/common/ResourceAlerts.js +2 -4
  488. package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
  489. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +1 -1
  490. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  491. package/build/cjs/cim/components/helpers/agentClusterInstall.js.map +1 -1
  492. package/build/cjs/cim/components/helpers/agentStatus.js +5 -0
  493. package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
  494. package/build/cjs/cim/components/helpers/agents.js.map +1 -1
  495. package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
  496. package/build/cjs/cim/components/helpers/conditions.js.map +1 -1
  497. package/build/cjs/cim/components/helpers/network.js.map +1 -1
  498. package/build/cjs/cim/components/helpers/status.js.map +1 -1
  499. package/build/cjs/cim/components/helpers/storage.js.map +1 -1
  500. package/build/cjs/cim/components/helpers/toAssisted.js +29 -27
  501. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  502. package/build/cjs/cim/components/helpers/units.js.map +1 -1
  503. package/build/cjs/cim/components/helpers/versions.js +42 -27
  504. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  505. package/build/cjs/cim/components/modals/AddBmcHostModal.js +7 -5
  506. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  507. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js +2 -3
  508. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js.map +1 -1
  509. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +7 -5
  510. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  511. package/build/cjs/cim/components/modals/AddHostModal.js +9 -7
  512. package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
  513. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js.map +1 -1
  514. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +7 -3
  515. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -1
  516. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +30 -28
  517. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
  518. package/build/cjs/cim/components/modals/CimConfiguration/persist.js +12 -5
  519. package/build/cjs/cim/components/modals/CimConfiguration/persist.js.map +1 -1
  520. package/build/cjs/cim/components/modals/CimConfiguration/utils.js.map +1 -1
  521. package/build/cjs/cim/components/modals/EditAgentModal.js +1 -1
  522. package/build/cjs/cim/components/modals/EditAgentModal.js.map +1 -1
  523. package/build/cjs/cim/components/modals/EditBMHModal.js +4 -2
  524. package/build/cjs/cim/components/modals/EditBMHModal.js.map +1 -1
  525. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js +4 -4
  526. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js.map +1 -1
  527. package/build/cjs/cim/components/modals/EditProxyModal.js +9 -7
  528. package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
  529. package/build/cjs/cim/components/modals/EditPullSecretModal.js +5 -5
  530. package/build/cjs/cim/components/modals/EditPullSecretModal.js.map +1 -1
  531. package/build/cjs/cim/components/modals/EditSSHKeyModal.js +8 -8
  532. package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
  533. package/build/cjs/cim/components/modals/MassApproveAgentModal.js +5 -5
  534. package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
  535. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +1 -1
  536. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  537. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js.map +1 -1
  538. package/build/cjs/cim/components/modals/ScaleUpModal.js +4 -4
  539. package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
  540. package/build/cjs/cim/components/modals/utils.js +1 -1
  541. package/build/cjs/cim/components/modals/utils.js.map +1 -1
  542. package/build/cjs/cim/hooks/index.js +1 -0
  543. package/build/cjs/cim/hooks/index.js.map +1 -1
  544. package/build/cjs/cim/hooks/useEvents.js +12 -0
  545. package/build/cjs/cim/hooks/useEvents.js.map +1 -0
  546. package/build/cjs/cim/types/k8s/cluster-version.js +1 -1
  547. package/build/cjs/cim/types/k8s/cluster-version.js.map +1 -1
  548. package/build/cjs/cim/utils.js.map +1 -1
  549. package/build/cjs/common/api/accounts-management-service/organizations-api.js +2 -2
  550. package/build/cjs/common/api/accounts-management-service/organizations-api.js.map +1 -1
  551. package/build/cjs/common/api/axiosClient.js +0 -1
  552. package/build/cjs/common/api/axiosClient.js.map +1 -1
  553. package/build/cjs/common/api/utils.js.map +1 -1
  554. package/build/cjs/common/components/AddHosts/AddHostsContext.js.map +1 -1
  555. package/build/cjs/common/components/AlertsContextProvider.js.map +1 -1
  556. package/build/cjs/common/components/ErrorHandling/WithErrorBoundary.js +1 -1
  557. package/build/cjs/common/components/ErrorHandling/WithErrorBoundary.js.map +1 -1
  558. package/build/cjs/common/components/clusterConfiguration/CertificateFields.js.map +1 -1
  559. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  560. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +7 -6
  561. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  562. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
  563. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
  564. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +9 -9
  565. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
  566. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js.map +1 -1
  567. package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js.map +1 -1
  568. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js +3 -3
  569. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js.map +1 -1
  570. package/build/cjs/common/components/clusterConfiguration/SecurityFields.js.map +1 -1
  571. package/build/cjs/common/components/clusterConfiguration/utils.js +4 -5
  572. package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
  573. package/build/cjs/common/components/clusterConfiguration/utils.test.js +1 -1
  574. package/build/cjs/common/components/clusterConfiguration/utils.test.js.map +1 -1
  575. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
  576. package/build/cjs/common/components/clusterDetail/ClusterProgress.js.map +1 -1
  577. package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
  578. package/build/cjs/common/components/clusterDetail/KubeconfigDownload.js.map +1 -1
  579. package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
  580. package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js.map +1 -1
  581. package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js +1 -1
  582. package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js.map +1 -1
  583. package/build/cjs/common/components/clusterWizard/ClusterWizardStepValidationsAlert.js.map +1 -1
  584. package/build/cjs/common/components/clusterWizard/ReviewHostsInventory.js.map +1 -1
  585. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  586. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +8 -8
  587. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
  588. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js +62 -0
  589. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js.map +1 -0
  590. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +130 -46
  591. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  592. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js} +59 -38
  593. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -0
  594. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.js +7 -5
  595. package/build/cjs/common/components/clusterWizard/networkingSteps/SubnetsDropdown.js.map +1 -0
  596. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +96 -38
  597. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
  598. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +13 -3
  599. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
  600. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.js +2 -2
  601. package/build/cjs/common/components/clusterWizard/networkingSteps/reorderNetworks.js.map +1 -0
  602. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  603. package/build/cjs/common/components/clusters/PullSecret.js.map +1 -1
  604. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js.map +1 -1
  605. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js.map +1 -1
  606. package/build/cjs/common/components/fetching/EventListFetch.js.map +1 -1
  607. package/build/cjs/common/components/hosts/AITable.js.map +1 -1
  608. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js +2 -1
  609. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js.map +1 -1
  610. package/build/cjs/common/components/hosts/DiskLimitations.js.map +1 -1
  611. package/build/cjs/common/components/hosts/DiskRole.js.map +1 -1
  612. package/build/cjs/common/components/hosts/EditHostForm.js +3 -2
  613. package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
  614. package/build/cjs/common/components/hosts/EditHostModal.js.map +1 -1
  615. package/build/cjs/common/components/hosts/FormatDiskCheckbox.js.map +1 -1
  616. package/build/cjs/common/components/hosts/HostProgress.js.map +1 -1
  617. package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js +1 -1
  618. package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
  619. package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
  620. package/build/cjs/common/components/hosts/HostStatus.js +8 -6
  621. package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
  622. package/build/cjs/common/components/hosts/HostValidationGroups.js +2 -3
  623. package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
  624. package/build/cjs/common/components/hosts/HostsTableDetailContext.js +1 -1
  625. package/build/cjs/common/components/hosts/HostsTableDetailContext.js.map +1 -1
  626. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +13 -18
  627. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
  628. package/build/cjs/common/components/hosts/MassDeleteHostModal.js.map +1 -1
  629. package/build/cjs/common/components/hosts/NtpValidationStatus.js.map +1 -1
  630. package/build/cjs/common/components/hosts/OcpConsoleNodesSectionLink.js.map +1 -1
  631. package/build/cjs/common/components/hosts/RoleDropdown.js.map +1 -1
  632. package/build/cjs/common/components/hosts/TableToolbar.js.map +1 -1
  633. package/build/cjs/common/components/hosts/hardwareInfo.js.map +1 -1
  634. package/build/cjs/common/components/hosts/index.js +2 -0
  635. package/build/cjs/common/components/hosts/index.js.map +1 -1
  636. package/build/cjs/common/components/hosts/tableColumns.js +336 -0
  637. package/build/cjs/common/components/hosts/tableColumns.js.map +1 -0
  638. package/build/cjs/common/components/hosts/tableUtils.js +3 -333
  639. package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
  640. package/build/cjs/common/components/hosts/utils.js.map +1 -1
  641. package/build/cjs/common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge.js.map +1 -1
  642. package/build/cjs/common/components/newFeatureSupportLevels/NewFeatureSupportLevelContext.js.map +1 -1
  643. package/build/cjs/common/components/newFeatureSupportLevels/utils.js.map +1 -1
  644. package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
  645. package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
  646. package/build/cjs/common/components/ui/Alerts.js.map +1 -1
  647. package/build/cjs/common/components/ui/BorderedIcon/BorderedIcon.js.map +1 -1
  648. package/build/cjs/common/components/ui/ClusterEventsToolbar.js.map +1 -1
  649. package/build/cjs/common/components/ui/CustomToolbarFilter.js +5 -5
  650. package/build/cjs/common/components/ui/CustomToolbarFilter.js.map +1 -1
  651. package/build/cjs/common/components/ui/EventsList.js +1 -1
  652. package/build/cjs/common/components/ui/EventsList.js.map +1 -1
  653. package/build/cjs/common/components/ui/ExternalLink.js.map +1 -1
  654. package/build/cjs/common/components/ui/GridGap.js +1 -1
  655. package/build/cjs/common/components/ui/GridGap.js.map +1 -1
  656. package/build/cjs/common/components/ui/OpenShiftSelectWithSearch.js +21 -30
  657. package/build/cjs/common/components/ui/OpenShiftSelectWithSearch.js.map +1 -1
  658. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +27 -34
  659. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
  660. package/build/cjs/common/components/ui/OpenShiftVersionModal.js +8 -9
  661. package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -1
  662. package/build/cjs/common/components/ui/PreviewBadge.js +1 -1
  663. package/build/cjs/common/components/ui/PreviewBadge.js.map +1 -1
  664. package/build/cjs/common/components/ui/PrismCode.js +29 -20
  665. package/build/cjs/common/components/ui/PrismCode.js.map +1 -1
  666. package/build/cjs/common/components/ui/StaticTextField.js.map +1 -1
  667. package/build/cjs/common/components/ui/Toolbar/ToolbarSecondaryGroup.js.map +1 -1
  668. package/build/cjs/common/components/ui/WizardNavItem.js.map +1 -1
  669. package/build/cjs/common/components/ui/formik/AdditionalNTPSourcesField.js.map +1 -1
  670. package/build/cjs/common/components/ui/formik/AlertFormikError.js.map +1 -1
  671. package/build/cjs/common/components/ui/formik/CertificatesUploadField.js.map +1 -1
  672. package/build/cjs/common/components/ui/formik/CodeField.js.map +1 -1
  673. package/build/cjs/common/components/ui/formik/FormikAutoSave.js.map +1 -1
  674. package/build/cjs/common/components/ui/formik/InputField.js.map +1 -1
  675. package/build/cjs/common/components/ui/formik/LabelField.js +65 -39
  676. package/build/cjs/common/components/ui/formik/LabelField.js.map +1 -1
  677. package/build/cjs/common/components/ui/formik/MultiSelectField.js.map +1 -1
  678. package/build/cjs/common/components/ui/formik/NumberInputField.js.map +1 -1
  679. package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
  680. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -1
  681. package/build/cjs/common/components/ui/formik/SwitchField.js.map +1 -1
  682. package/build/cjs/common/components/ui/formik/TextAreaField.js.map +1 -1
  683. package/build/cjs/common/components/ui/formik/TextAreaSecretField.js.map +1 -1
  684. package/build/cjs/common/components/ui/formik/UploadField.js +4 -5
  685. package/build/cjs/common/components/ui/formik/UploadField.js.map +1 -1
  686. package/build/cjs/common/components/ui/formik/index.js +0 -2
  687. package/build/cjs/common/components/ui/formik/index.js.map +1 -1
  688. package/build/cjs/common/components/ui/formik/utils.js.map +1 -1
  689. package/build/cjs/common/components/ui/index.js +1 -2
  690. package/build/cjs/common/components/ui/index.js.map +1 -1
  691. package/build/cjs/common/components/ui/table/utils.js.map +1 -1
  692. package/build/cjs/common/components/ui/utils.js +5 -1
  693. package/build/cjs/common/components/ui/utils.js.map +1 -1
  694. package/build/cjs/common/config/constants.js +30 -4
  695. package/build/cjs/common/config/constants.js.map +1 -1
  696. package/build/cjs/common/config/docs_links.js +1 -1
  697. package/build/cjs/common/config/docs_links.js.map +1 -1
  698. package/build/cjs/common/features/featureGate.js.map +1 -1
  699. package/build/cjs/common/hooks/useDeepCompareMemoize.js.map +1 -1
  700. package/build/cjs/common/hooks/useFieldErrorMsg.js.map +1 -1
  701. package/build/cjs/common/hooks/useStateSafely.js.map +1 -1
  702. package/build/cjs/common/index.js +1 -0
  703. package/build/cjs/common/index.js.map +1 -1
  704. package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
  705. package/build/cjs/common/services/DateAndTime.js.map +1 -1
  706. package/build/cjs/common/types/clusters.js.map +1 -1
  707. package/build/cjs/common/types/cpuArchitecture.js +2 -2
  708. package/build/cjs/common/types/cpuArchitecture.js.map +1 -1
  709. package/build/cjs/common/types/resource-ui-state.js +1 -1
  710. package/build/cjs/common/types/resource-ui-state.js.map +1 -1
  711. package/build/cjs/common/utils.js +5 -3
  712. package/build/cjs/common/utils.js.map +1 -1
  713. package/build/cjs/common/validationSchemas/addressValidation.js +258 -0
  714. package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -0
  715. package/build/cjs/common/validationSchemas/clusterDetailsValidation.js +104 -0
  716. package/build/cjs/common/validationSchemas/clusterDetailsValidation.js.map +1 -0
  717. package/build/cjs/common/{components/ui/formik → validationSchemas}/constants.js +3 -5
  718. package/build/cjs/common/validationSchemas/constants.js.map +1 -0
  719. package/build/cjs/common/validationSchemas/hostnameValidation.js +36 -0
  720. package/build/cjs/common/validationSchemas/hostnameValidation.js.map +1 -0
  721. package/build/cjs/common/validationSchemas/index.js +17 -0
  722. package/build/cjs/common/validationSchemas/index.js.map +1 -0
  723. package/build/cjs/common/validationSchemas/networkingValidation.js +74 -0
  724. package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -0
  725. package/build/cjs/common/validationSchemas/ntpValidation.js +25 -0
  726. package/build/cjs/common/validationSchemas/ntpValidation.js.map +1 -0
  727. package/build/cjs/common/validationSchemas/proxyValidation.js +43 -0
  728. package/build/cjs/common/validationSchemas/proxyValidation.js.map +1 -0
  729. package/build/cjs/common/validationSchemas/pullSecretValidation.js +21 -0
  730. package/build/cjs/common/validationSchemas/pullSecretValidation.js.map +1 -0
  731. package/build/cjs/common/validationSchemas/regexes.js +17 -0
  732. package/build/cjs/common/validationSchemas/regexes.js.map +1 -0
  733. package/build/cjs/common/validationSchemas/sshValidation.js +32 -0
  734. package/build/cjs/common/validationSchemas/sshValidation.js.map +1 -0
  735. package/build/cjs/common/validationSchemas/utils.js +40 -0
  736. package/build/cjs/common/validationSchemas/utils.js.map +1 -0
  737. package/build/cjs/ocm/components/AddHosts/AddHosts.js.map +1 -1
  738. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js.map +1 -1
  739. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js.map +1 -1
  740. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2GenerateISO.js.map +1 -1
  741. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIP.js +1 -1
  742. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIP.js.map +1 -1
  743. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js.map +1 -1
  744. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2WizardContext.js.map +1 -1
  745. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2WizardContextProvider.js.map +1 -1
  746. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2WizardNav.js.map +1 -1
  747. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js.map +1 -1
  748. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.js.map +1 -1
  749. package/build/cjs/ocm/components/HostsClusterDetailTab/utils.js.map +1 -1
  750. package/build/cjs/ocm/components/Routes.js +2 -3
  751. package/build/cjs/ocm/components/Routes.js.map +1 -1
  752. package/build/cjs/ocm/components/SentryErrorMonitorContextProvider.js +2 -2
  753. package/build/cjs/ocm/components/SentryErrorMonitorContextProvider.js.map +1 -1
  754. package/build/cjs/ocm/components/clusterConfiguration/ClusterDefaultConfigurationContext.js.map +1 -1
  755. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  756. package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js.map +1 -1
  757. package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js.map +1 -1
  758. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
  759. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
  760. package/build/cjs/ocm/components/clusterConfiguration/HostsNetworkConfigurationControlGroup.js.map +1 -1
  761. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +1 -1
  762. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  763. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +6 -5
  764. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  765. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +7 -6
  766. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  767. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js +14 -18
  768. package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js.map +1 -1
  769. package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
  770. package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js.map +1 -1
  771. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +2 -1
  772. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
  773. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifest.js.map +1 -1
  774. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js +4 -2
  775. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js.map +1 -1
  776. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
  777. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +1 -1
  778. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  779. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js +7 -6
  780. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
  781. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js.map +1 -1
  782. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +6 -12
  783. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  784. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +7 -3
  785. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  786. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js +8 -9
  787. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js.map +1 -1
  788. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +13 -23
  789. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  790. package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js.map +1 -1
  791. package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js +3 -0
  792. package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js.map +1 -1
  793. package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js.map +1 -1
  794. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  795. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.js.map +1 -1
  796. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js.map +1 -1
  797. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js.map +1 -1
  798. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js.map +1 -1
  799. package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js.map +1 -1
  800. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js.map +1 -1
  801. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js +3 -1
  802. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js.map +1 -1
  803. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
  804. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js +6 -6
  805. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js.map +1 -1
  806. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWide.js.map +1 -1
  807. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWideFields.js.map +1 -1
  808. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.js.map +1 -1
  809. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
  810. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js.map +1 -1
  811. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js +2 -1
  812. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js.map +1 -1
  813. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpViewRadioGroup.js.map +1 -1
  814. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js +3 -1
  815. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js.map +1 -1
  816. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js.map +1 -1
  817. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js +12 -12
  818. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js.map +1 -1
  819. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/dataTypes.js +2 -2
  820. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/dataTypes.js.map +1 -1
  821. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/dummyData.js.map +1 -1
  822. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataFromInfraEnvField.js.map +1 -1
  823. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js.map +1 -1
  824. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/fromInfraEnv.js.map +1 -1
  825. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.js +1 -1
  826. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.js.map +1 -1
  827. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js.map +1 -1
  828. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/protocolVersion.js.map +1 -1
  829. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  830. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
  831. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
  832. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  833. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusVarieties.js.map +1 -1
  834. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
  835. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
  836. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +1 -1
  837. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  838. package/build/cjs/ocm/components/clusterDetail/getProgressBarAlerts.js.map +1 -1
  839. package/build/cjs/ocm/components/clusterDetail/utils.js.map +1 -1
  840. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +1 -1
  841. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  842. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +1 -3
  843. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  844. package/build/cjs/ocm/components/clusterWizard/ClusterWizard.js.map +1 -1
  845. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
  846. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  847. package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
  848. package/build/cjs/ocm/components/clusterWizard/ClusterWizardNavigation.js.map +1 -1
  849. package/build/cjs/ocm/components/clusterWizard/CredentialsDownload.js.map +1 -1
  850. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js +1 -1
  851. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js.map +1 -1
  852. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
  853. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
  854. package/build/cjs/ocm/components/clusterWizard/OpenShiftVersionsContext.js +40 -36
  855. package/build/cjs/ocm/components/clusterWizard/OpenShiftVersionsContext.js.map +1 -1
  856. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  857. package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js.map +1 -1
  858. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +1 -1
  859. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
  860. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.test.js +3 -3
  861. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.test.js.map +1 -1
  862. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  863. package/build/cjs/ocm/components/clusterWizard/StaticIp.js +1 -1
  864. package/build/cjs/ocm/components/clusterWizard/StaticIp.js.map +1 -1
  865. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +1 -1
  866. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  867. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  868. package/build/cjs/ocm/components/clusters/ClusterStatus.js.map +1 -1
  869. package/build/cjs/ocm/components/clusters/ClusterToolbar.js +1 -1
  870. package/build/cjs/ocm/components/clusters/ClusterToolbar.js.map +1 -1
  871. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  872. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
  873. package/build/cjs/ocm/components/clusters/ClustersTable.js +1 -1
  874. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  875. package/build/cjs/ocm/components/clusters/clusterPolling.js.map +1 -1
  876. package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js.map +1 -1
  877. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
  878. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  879. package/build/cjs/ocm/components/fetching/fetchEvents.js.map +1 -1
  880. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js +7 -8
  881. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js.map +1 -1
  882. package/build/cjs/ocm/components/hosts/HostRequirementsContent.js.map +1 -1
  883. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +7 -8
  884. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  885. package/build/cjs/ocm/components/hosts/HostsStorageTable.js +5 -6
  886. package/build/cjs/ocm/components/hosts/HostsStorageTable.js.map +1 -1
  887. package/build/cjs/ocm/components/hosts/ModalDialogsContext.js.map +1 -1
  888. package/build/cjs/ocm/components/hosts/StorageAlerts.js.map +1 -1
  889. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js +2 -1
  890. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js.map +1 -1
  891. package/build/cjs/ocm/components/hosts/use-hosts-table.js +2 -3
  892. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  893. package/build/cjs/ocm/components/hosts/utils.js.map +1 -1
  894. package/build/cjs/ocm/components/ui/AssistedUILibVersion.js.map +1 -1
  895. package/build/cjs/ocm/config/constants.js.map +1 -1
  896. package/build/cjs/ocm/hooks/useClusterCustomManifests.js.map +1 -1
  897. package/build/cjs/ocm/hooks/useClusterPreflightRequirements.js.map +1 -1
  898. package/build/cjs/ocm/hooks/useInfraEnv.js.map +1 -1
  899. package/build/cjs/ocm/hooks/useInfraEnvHosts.js.map +1 -1
  900. package/build/cjs/ocm/hooks/useInfraEnvId.js.map +1 -1
  901. package/build/cjs/ocm/hooks/useInfraEnvImageUrl.js.map +1 -1
  902. package/build/cjs/ocm/hooks/useInfraEnvIpxeImageUrl.js.map +1 -1
  903. package/build/cjs/ocm/hooks/useLateBinding.js.map +1 -1
  904. package/build/cjs/ocm/hooks/useManagedDomains.js.map +1 -1
  905. package/build/cjs/ocm/hooks/usePullSecret.js.map +1 -1
  906. package/build/cjs/ocm/hooks/useSetClusterPermissions.js.map +1 -1
  907. package/build/cjs/ocm/hooks/useSupportLevelsAPI.js.map +1 -1
  908. package/build/cjs/ocm/hooks/useUISettings.js.map +1 -1
  909. package/build/cjs/ocm/hooks/useUsedClusterNames.js.map +1 -1
  910. package/build/cjs/ocm/sentry.js.map +1 -1
  911. package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
  912. package/build/cjs/ocm/services/ClustersService.js +3 -3
  913. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  914. package/build/cjs/ocm/services/CpuArchitectureService.js.map +1 -1
  915. package/build/cjs/ocm/services/Day2ClusterService.js +2 -2
  916. package/build/cjs/ocm/services/Day2ClusterService.js.map +1 -1
  917. package/build/cjs/ocm/services/HostDiscoveryService.js.map +1 -1
  918. package/build/cjs/ocm/services/HostsService.js.map +1 -1
  919. package/build/cjs/ocm/services/InfraEnvIdsCacheService.js.map +1 -1
  920. package/build/cjs/ocm/services/InfraEnvsService.js.map +1 -1
  921. package/build/cjs/ocm/services/types.js +1 -1
  922. package/build/cjs/ocm/services/types.js.map +1 -1
  923. package/build/cjs/ocm/store/slices/clusters/selectors.js +1 -1
  924. package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -1
  925. package/build/cjs/ocm/store/slices/clusters/slice.js +1 -1
  926. package/build/cjs/ocm/store/slices/clusters/slice.js.map +1 -1
  927. package/build/cjs/ocm/store/slices/current-cluster/selectors.js.map +1 -1
  928. package/build/cjs/ocm/store/slices/current-cluster/slice.js +1 -1
  929. package/build/cjs/ocm/store/slices/current-cluster/slice.js.map +1 -1
  930. package/build/cjs/ocm/store/slices/current-user/slice.js.map +1 -1
  931. package/build/cjs/ocm/store/slices/feature-flags/slice.js +1 -1
  932. package/build/cjs/ocm/store/slices/feature-flags/slice.js.map +1 -1
  933. package/build/cjs/ocm/store/slices/infra-envs/thunks.js.map +1 -1
  934. package/lib/cim/components/Agent/AgentStatus.tsx +3 -0
  935. package/lib/cim/components/Agent/AgentTable.tsx +3 -2
  936. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +3 -12
  937. package/lib/cim/components/Agent/BMCForm.tsx +11 -10
  938. package/lib/cim/components/Agent/BMHEventsModal.tsx +87 -0
  939. package/lib/cim/components/Agent/BMHStatus.tsx +17 -17
  940. package/lib/cim/components/Agent/BMHStatusInfo.tsx +94 -0
  941. package/lib/cim/components/Agent/MinimalHWRequirements.tsx +17 -12
  942. package/lib/cim/components/Agent/index.ts +2 -0
  943. package/lib/cim/components/Agent/tableColumns.tsx +257 -0
  944. package/lib/cim/components/Agent/tableUtils.tsx +4 -243
  945. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.tsx +2 -2
  946. package/lib/cim/components/ClusterDeployment/LocationsSelector.tsx +2 -2
  947. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +61 -44
  948. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +8 -18
  949. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +11 -24
  950. package/lib/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.tsx +17 -15
  951. package/lib/cim/components/ClusterDeployment/customManifests/ConfigMapForm.tsx +1 -1
  952. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +3 -5
  953. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.tsx +23 -21
  954. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +28 -31
  955. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.tsx +17 -15
  956. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +30 -36
  957. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.tsx +2 -7
  958. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.tsx +3 -3
  959. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.tsx +26 -26
  960. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +20 -6
  961. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +41 -17
  962. package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +2 -2
  963. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +4 -14
  964. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +2 -2
  965. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.tsx +57 -23
  966. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.tsx +2 -13
  967. package/lib/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.tsx +4 -4
  968. package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.tsx +1 -1
  969. package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.tsx +8 -8
  970. package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +15 -16
  971. package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +15 -16
  972. package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +1 -1
  973. package/lib/cim/components/Hypershift/modals/RemoveNodePoolModal.tsx +14 -11
  974. package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +6 -3
  975. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +1 -6
  976. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +6 -6
  977. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +10 -8
  978. package/lib/cim/components/YamlPreview/YamlPreview.tsx +31 -26
  979. package/lib/cim/components/common/ResourceAlerts.tsx +4 -4
  980. package/lib/cim/components/helpers/agentStatus.tsx +5 -0
  981. package/lib/cim/components/helpers/toAssisted.ts +15 -15
  982. package/lib/cim/components/helpers/versions.ts +51 -34
  983. package/lib/cim/components/modals/AddBmcHostModal.tsx +14 -13
  984. package/lib/cim/components/modals/AddBmcHostYamlForm.tsx +6 -5
  985. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +8 -7
  986. package/lib/cim/components/modals/AddHostModal.tsx +22 -11
  987. package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +7 -5
  988. package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +83 -72
  989. package/lib/cim/components/modals/CimConfiguration/persist.ts +11 -0
  990. package/lib/cim/components/modals/CimConfiguration/types.ts +1 -1
  991. package/lib/cim/components/modals/EditBMHModal.tsx +2 -3
  992. package/lib/cim/components/modals/EditNtpSourcesModal.tsx +15 -10
  993. package/lib/cim/components/modals/EditProxyModal.tsx +22 -13
  994. package/lib/cim/components/modals/EditPullSecretModal.tsx +15 -11
  995. package/lib/cim/components/modals/EditSSHKeyModal.tsx +24 -19
  996. package/lib/cim/components/modals/MassApproveAgentModal.tsx +22 -13
  997. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +7 -7
  998. package/lib/cim/components/modals/ScaleUpModal.tsx +9 -7
  999. package/lib/cim/hooks/index.tsx +1 -0
  1000. package/lib/cim/hooks/types.tsx +4 -1
  1001. package/lib/cim/hooks/useEvents.tsx +14 -0
  1002. package/lib/cim/types/fromOCP/k8sTypes.ts +13 -0
  1003. package/lib/cim/types/k8s/agent-cluster-install.ts +4 -0
  1004. package/lib/cim/types/k8s/bare-metal-host.ts +20 -0
  1005. package/lib/common/components/AddHosts/AddHostsContext.tsx +1 -1
  1006. package/lib/common/components/AlertsContextProvider.tsx +1 -1
  1007. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +9 -8
  1008. package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +1 -1
  1009. package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +7 -10
  1010. package/lib/common/components/clusterConfiguration/ProxyFields.tsx +3 -3
  1011. package/lib/common/components/clusterConfiguration/utils.ts +22 -12
  1012. package/lib/common/components/clusterWizard/ClusterWizardStepHeader.tsx +4 -2
  1013. package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +21 -11
  1014. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/AdvancedNetworkFields.tsx +54 -38
  1015. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +221 -53
  1016. package/lib/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx} +64 -28
  1017. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.tsx +4 -7
  1018. package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +197 -80
  1019. package/lib/common/components/clusterWizard/networkingSteps/index.ts +10 -2
  1020. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.ts +2 -1
  1021. package/lib/common/components/hosts/AITable.tsx +1 -1
  1022. package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +3 -6
  1023. package/lib/common/components/hosts/EditHostForm.tsx +2 -8
  1024. package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +8 -2
  1025. package/lib/common/components/hosts/HostStatus.tsx +18 -5
  1026. package/lib/common/components/hosts/HostValidationGroups.tsx +5 -4
  1027. package/lib/common/components/hosts/HostsTableDetailContext.tsx +3 -6
  1028. package/lib/common/components/hosts/MassChangeHostnameModal.tsx +51 -44
  1029. package/lib/common/components/hosts/TableToolbar.tsx +1 -1
  1030. package/lib/common/components/hosts/index.ts +2 -0
  1031. package/lib/common/components/hosts/tableColumns.tsx +411 -0
  1032. package/lib/common/components/hosts/tableUtils.tsx +4 -409
  1033. package/lib/common/components/hosts/types.ts +1 -0
  1034. package/lib/common/components/storage/DisksTable.tsx +3 -1
  1035. package/lib/common/components/ui/CustomToolbarFilter.tsx +6 -4
  1036. package/lib/common/components/ui/EventsList.tsx +4 -2
  1037. package/lib/common/components/ui/GridGap.tsx +3 -1
  1038. package/lib/common/components/ui/OpenShiftSelectWithSearch.tsx +22 -43
  1039. package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +41 -57
  1040. package/lib/common/components/ui/OpenShiftVersionModal.tsx +9 -11
  1041. package/lib/common/components/ui/PrismCode.tsx +35 -22
  1042. package/lib/common/components/ui/StaticTextField.tsx +9 -3
  1043. package/lib/common/components/ui/Toolbar/ToolbarSecondaryGroup.tsx +1 -1
  1044. package/lib/common/components/ui/formik/CertificatesUploadField.tsx +1 -1
  1045. package/lib/common/components/ui/formik/InputField.tsx +3 -1
  1046. package/lib/common/components/ui/formik/LabelField.tsx +134 -77
  1047. package/lib/common/components/ui/formik/NumberInputField.tsx +1 -1
  1048. package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +1 -1
  1049. package/lib/common/components/ui/formik/TextAreaField.tsx +1 -1
  1050. package/lib/common/components/ui/formik/UploadField.tsx +7 -6
  1051. package/lib/common/components/ui/formik/index.tsx +0 -2
  1052. package/lib/common/components/ui/index.ts +1 -1
  1053. package/lib/common/components/ui/utils.ts +7 -0
  1054. package/lib/common/config/constants.ts +36 -2
  1055. package/lib/common/config/docs_links.ts +1 -1
  1056. package/lib/common/features/featureGate.tsx +5 -3
  1057. package/lib/common/index.ts +2 -0
  1058. package/lib/common/types/clusters.ts +0 -1
  1059. package/lib/common/utils.ts +5 -7
  1060. package/lib/common/{components/ui/formik → validationSchemas}/_validationSchemas.test.ts +51 -39
  1061. package/lib/common/validationSchemas/addressValidation.tsx +354 -0
  1062. package/lib/common/validationSchemas/clusterDetailsValidation.tsx +168 -0
  1063. package/lib/common/{components/ui/formik → validationSchemas}/constants.tsx +3 -6
  1064. package/lib/common/validationSchemas/hostnameValidation.tsx +46 -0
  1065. package/lib/common/validationSchemas/index.tsx +11 -0
  1066. package/lib/common/validationSchemas/networkingValidation.tsx +113 -0
  1067. package/lib/common/validationSchemas/ntpValidation.tsx +30 -0
  1068. package/lib/common/validationSchemas/proxyValidation.tsx +67 -0
  1069. package/lib/common/validationSchemas/pullSecretValidation.tsx +24 -0
  1070. package/lib/common/validationSchemas/regexes.tsx +22 -0
  1071. package/lib/common/validationSchemas/sshValidation.tsx +46 -0
  1072. package/lib/common/validationSchemas/utils.tsx +36 -0
  1073. package/lib/ocm/components/AddHosts/day2Wizard/Day2StaticIP.tsx +7 -2
  1074. package/lib/ocm/components/Routes.tsx +0 -3
  1075. package/lib/ocm/components/SentryErrorMonitorContextProvider.tsx +3 -1
  1076. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +2 -2
  1077. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +17 -18
  1078. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +17 -15
  1079. package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +21 -28
  1080. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +2 -1
  1081. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx +4 -2
  1082. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +31 -31
  1083. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +12 -23
  1084. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +15 -5
  1085. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.tsx +3 -2
  1086. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +16 -26
  1087. package/lib/ocm/components/clusterConfiguration/operators/bundleSpecs.tsx +3 -0
  1088. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.tsx +3 -1
  1089. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.tsx +11 -6
  1090. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.tsx +2 -1
  1091. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.tsx +5 -1
  1092. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.tsx +33 -28
  1093. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +2 -1
  1094. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -1
  1095. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +1 -10
  1096. package/lib/ocm/components/clusterWizard/OpenShiftVersionsContext.tsx +22 -18
  1097. package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +2 -2
  1098. package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +1 -1
  1099. package/lib/ocm/components/clusters/ClusterToolbar.tsx +4 -1
  1100. package/lib/ocm/components/hosts/ClusterHostsTable.tsx +4 -3
  1101. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +2 -4
  1102. package/lib/ocm/components/hosts/HostsStorageTable.tsx +5 -7
  1103. package/lib/ocm/components/hosts/ModalDialogsContext.tsx +1 -1
  1104. package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +3 -7
  1105. package/lib/ocm/components/hosts/use-hosts-table.tsx +2 -1
  1106. package/lib/ocm/components/ui/AssistedUILibVersion.tsx +1 -1
  1107. package/lib/ocm/store/slices/clusters/selectors.tsx +4 -3
  1108. package/package.json +18 -22
  1109. package/build/@types/common/components/clusterConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  1110. package/build/@types/common/components/ui/formik/constants.d.ts.map +0 -1
  1111. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -52
  1112. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +0 -1
  1113. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts +0 -4
  1114. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  1115. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts +0 -12
  1116. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +0 -1
  1117. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts +0 -11
  1118. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts.map +0 -1
  1119. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +0 -1
  1120. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts +0 -9
  1121. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts.map +0 -1
  1122. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.d.ts.map +0 -1
  1123. package/build/cjs/common/components/clusterConfiguration/AdvancedNetworkFields.js.map +0 -1
  1124. package/build/cjs/common/components/ui/formik/LabelField.css +0 -43
  1125. package/build/cjs/common/components/ui/formik/constants.js.map +0 -1
  1126. package/build/cjs/common/components/ui/formik/validationSchemas.js +0 -571
  1127. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +0 -1
  1128. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +0 -53
  1129. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +0 -1
  1130. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +0 -124
  1131. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +0 -1
  1132. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +0 -1
  1133. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +0 -1
  1134. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +0 -98
  1135. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +0 -1
  1136. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.js.map +0 -1
  1137. package/lib/@types/global.d.ts +0 -1
  1138. package/lib/common/components/ui/formik/LabelField.css +0 -43
  1139. package/lib/common/components/ui/formik/validationSchemas.ts +0 -846
  1140. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +0 -208
  1141. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +0 -283
  1142. /package/build/@types/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.d.ts +0 -0
@@ -1,846 +0,0 @@
1
- import { overlap } from 'cidr-tools';
2
- import { Address4, Address6 } from 'ip-address';
3
- import isCIDR from 'is-cidr';
4
- import { isInSubnet } from 'is-in-subnet';
5
- import * as Yup from 'yup';
6
- import { head } from 'lodash-es';
7
- import parseUrl from 'parse-url';
8
-
9
- import { TFunction } from 'i18next';
10
- import {
11
- ApiVip,
12
- ClusterNetwork,
13
- IngressVip,
14
- MachineNetwork,
15
- ServiceNetwork,
16
- } from '@openshift-assisted/types/assisted-installer-service';
17
- import { NO_SUBNET_SET } from '../../../config/constants';
18
- import { ProxyFieldsType } from '../../../types';
19
- import { HostSubnets, NetworkConfigurationValues } from '../../../types/clusters';
20
- import { getSubnet } from '../../clusterConfiguration/utils';
21
- import {
22
- bmcAddressValidationMessages,
23
- clusterNameValidationMessages,
24
- CLUSTER_NAME_MAX_LENGTH,
25
- FORBIDDEN_HOSTNAMES,
26
- hostnameValidationMessages,
27
- locationValidationMessages,
28
- nameValidationMessages,
29
- } from './constants';
30
- import { allSubnetsIPv4, getAddress, trimCommaSeparatedList, trimSshPublicKey } from './utils';
31
- import { isMajorMinorVersionEqualOrGreater } from '../../../utils';
32
- import { selectApiVip, selectIngressVip } from '../../../selectors';
33
- import { ClusterDetailsValues } from '../../clusterWizard/types';
34
-
35
- const ALPHANUMERIC_REGEX = /^[a-zA-Z0-9]+$/;
36
- const NAME_START_END_REGEX = /^[a-z0-9](.*[a-z0-9])?$/;
37
- const NAME_CHARS_REGEX = /^[a-z0-9-.]*$/;
38
- const CLUSTER_NAME_START_END_REGEX = /^[a-z0-9](.*[a-z0-9])?$/;
39
- const CLUSTER_NAME_VALID_CHARS_REGEX = /^[a-z0-9-]*$/;
40
- const SSH_PUBLIC_KEY_REGEX =
41
- /^(ssh-rsa AAAAB3NzaC1yc2|ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT|ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzOD|ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1Mj|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5|ssh-dss AAAAB3NzaC1kc3)[0-9A-Za-z+/]+[=]{0,3}( .*)?$/;
42
- const DNS_NAME_REGEX = /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/;
43
-
44
- const PROXY_DNS_REGEX =
45
- /(^\.?([a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62}){1}(\.[a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62})*$)/;
46
- const IP_V4_ZERO = '0.0.0.0';
47
- const IP_V6_ZERO = '0000:0000:0000:0000:0000:0000:0000:0000';
48
- const MAC_REGEX = /^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$/;
49
- const HOST_NAME_REGEX = /^[^.]{1,63}(?:[.][^.]{1,63})*$/;
50
- const LOCATION_CHARS_REGEX = /^[a-zA-Z0-9-._]*$/;
51
-
52
- export const nameValidationSchema = (
53
- t: TFunction,
54
- usedClusterNames: string[],
55
- baseDnsDomain = '',
56
- validateUniqueName?: boolean,
57
- isOcm = false,
58
- ) => {
59
- const clusterNameValidationMessagesList = clusterNameValidationMessages(t);
60
- return Yup.string()
61
- .required(t('ai:Required field'))
62
- .matches(CLUSTER_NAME_VALID_CHARS_REGEX, {
63
- message: clusterNameValidationMessagesList.INVALID_VALUE,
64
- excludeEmptyString: true,
65
- })
66
- .matches(CLUSTER_NAME_START_END_REGEX, {
67
- message: clusterNameValidationMessagesList.INVALID_START_END,
68
- excludeEmptyString: true,
69
- })
70
- .min(
71
- isOcm ? 1 : 2,
72
- isOcm
73
- ? clusterNameValidationMessagesList.INVALID_LENGTH_OCM
74
- : clusterNameValidationMessagesList.INVALID_LENGTH_ACM,
75
- )
76
- .max(
77
- CLUSTER_NAME_MAX_LENGTH,
78
- isOcm
79
- ? clusterNameValidationMessagesList.INVALID_LENGTH_OCM
80
- : clusterNameValidationMessagesList.INVALID_LENGTH_ACM,
81
- )
82
- .when('useRedHatDnsService', {
83
- is: (useRedHatDnsService: ClusterDetailsValues['useRedHatDnsService']) =>
84
- useRedHatDnsService === true,
85
- then: (schema) =>
86
- schema.test(
87
- 'is-name-unique',
88
- clusterNameValidationMessagesList.NOT_UNIQUE,
89
- (value?: string) => {
90
- const clusterFullName = `${value || ''}.${baseDnsDomain}`;
91
- return !value || !usedClusterNames.includes(clusterFullName);
92
- },
93
- ),
94
- otherwise: (schema) =>
95
- schema.test(
96
- 'is-name-unique',
97
- clusterNameValidationMessagesList.NOT_UNIQUE,
98
- (value?: string) => {
99
- // in CIM cluster name is ClusterDeployment CR name which must be unique
100
- return validateUniqueName ? !value || !usedClusterNames.includes(value) : true;
101
- },
102
- ),
103
- });
104
- };
105
-
106
- export const sshPublicKeyValidationSchema = Yup.string().test(
107
- 'ssh-public-key',
108
- 'SSH public key must consist of "[TYPE] key [[EMAIL]]", supported types are: ssh-rsa, ssh-ed25519, ecdsa-[VARIANT]. A single key can be provided only.',
109
- (value?: string) => {
110
- if (!value) {
111
- return true;
112
- }
113
-
114
- return !!trimSshPublicKey(value).match(SSH_PUBLIC_KEY_REGEX);
115
- },
116
- );
117
-
118
- export const sshPublicKeyListValidationSchema = Yup.string()
119
- .test(
120
- 'ssh-public-keys',
121
- 'SSH public key must consist of "[TYPE] key [[EMAIL]]", supported types are: ssh-rsa, ssh-ed25519, ecdsa-[VARIANT].',
122
- (value?: string) => {
123
- if (!value) {
124
- return true;
125
- }
126
-
127
- return (
128
- trimSshPublicKey(value)
129
- .split('\n')
130
- .find((line: string) => !line.match(SSH_PUBLIC_KEY_REGEX)) === undefined
131
- );
132
- },
133
- )
134
- .test('ssh-public-keys-unique', 'SSH public keys must be unique.', (value?: string) => {
135
- if (!value) {
136
- return true;
137
- }
138
- const keyList = trimSshPublicKey(value).split('\n');
139
- return new Set(keyList).size === keyList.length;
140
- });
141
-
142
- export const pullSecretValidationSchema = Yup.string().test(
143
- 'is-well-formed-json',
144
- "Invalid pull secret format. You must use your Red Hat account's pull secret.",
145
- (value?: string) => {
146
- const isValid = true;
147
- if (!value) return isValid;
148
- try {
149
- const pullSecret = JSON.parse(value) as {
150
- auths: string;
151
- };
152
- return (
153
- pullSecret.constructor.name === 'Object' &&
154
- !!pullSecret?.auths &&
155
- pullSecret.auths.constructor.name === 'Object'
156
- );
157
- } catch {
158
- return !isValid;
159
- }
160
- },
161
- );
162
-
163
- const isValidIpWithoutSuffix = (addr: string) => {
164
- const address = getAddress(addr);
165
- return !!address && address.address === address.addressMinusSuffix;
166
- };
167
-
168
- export const ipValidationSchema = Yup.string().test(
169
- 'ip-validation',
170
- 'Not a valid IP address',
171
- (value?: string) => Address4.isValid(value || '') || Address6.isValid(value || ''),
172
- );
173
-
174
- // Helpers to classify literal IPs more robustly
175
- const isIPv4Address = (ip?: string) => {
176
- if (!ip) return false;
177
- return ip.includes('.') && Address4.isValid(ip);
178
- };
179
-
180
- const isIPv6Address = (ip?: string) => {
181
- if (!ip) return false;
182
- return ip.includes(':') && Address6.isValid(ip);
183
- };
184
-
185
- export const ipNoSuffixValidationSchema = Yup.string().test(
186
- 'ip-validation-no-suffix',
187
- 'Not a valid IP address',
188
- (value?: string) => {
189
- return isValidIpWithoutSuffix(value || '');
190
- },
191
- );
192
-
193
- export const macAddressValidationSchema = Yup.string().matches(MAC_REGEX, {
194
- message: 'Value "${value}" is not valid MAC address.', // eslint-disable-line no-template-curly-in-string
195
- excludeEmptyString: true,
196
- });
197
-
198
- export const vipRangeValidationSchema = (
199
- hostSubnets: HostSubnets,
200
- { machineNetworks, hostSubnet }: NetworkConfigurationValues,
201
- allowSuffix: boolean,
202
- ) =>
203
- Yup.string().test('vip-validation', 'IP Address is outside of selected subnet', (value) => {
204
- if (!value) {
205
- return true;
206
- }
207
-
208
- try {
209
- const validator = allowSuffix ? ipValidationSchema : ipNoSuffixValidationSchema;
210
- validator.validateSync(value);
211
- } catch (err) {
212
- return true;
213
- }
214
- const foundHostSubnets = [];
215
- if (machineNetworks) {
216
- const cidrs = machineNetworks?.map((network) => network.cidr);
217
- foundHostSubnets.push(...hostSubnets.filter((hn) => cidrs?.includes(hn.subnet)));
218
- } else {
219
- const subnet = hostSubnets.find((hn) => hn.subnet === hostSubnet);
220
- if (subnet) {
221
- foundHostSubnets.push(subnet);
222
- }
223
- }
224
- for (const hostSubnet of foundHostSubnets) {
225
- if (hostSubnet?.subnet) {
226
- // Workaround for bug in CIM backend. hostIDs are empty
227
- if (!hostSubnet.hostIDs.length) {
228
- return true;
229
- } else if (isInSubnet(value, hostSubnet.subnet)) {
230
- return true;
231
- }
232
- }
233
- }
234
- return false;
235
- });
236
-
237
- const vipUniqueValidationSchema = (
238
- { ingressVips, apiVips, apiVip, ingressVip }: NetworkConfigurationValues,
239
- useIPArray: boolean,
240
- ) =>
241
- Yup.string().test(
242
- 'vip-uniqueness-validation',
243
- 'The Ingress and API IP addresses cannot be the same.',
244
- (value) => {
245
- if (useIPArray) {
246
- if (!value || ingressVips?.length === 0 || apiVips?.length === 0) {
247
- return true;
248
- }
249
- return selectApiVip({ apiVips }) !== selectIngressVip({ ingressVips });
250
- } else {
251
- if (!value) {
252
- return true;
253
- }
254
- return apiVip !== ingressVip;
255
- }
256
- },
257
- );
258
-
259
- const vipBroadcastValidationSchema = ({ machineNetworks }: NetworkConfigurationValues) =>
260
- Yup.string().test(
261
- 'vip-no-broadcast',
262
- 'The IP address cannot be a network or broadcast address',
263
- (value?: string) => {
264
- const vipAddress = getAddress(value || '')?.address;
265
- const machineNetwork = getAddress((machineNetworks?.length && machineNetworks[0].cidr) || '');
266
-
267
- const machineNetworkBroadcast = machineNetwork?.endAddress().address;
268
- const machineNetworkAddress = machineNetwork?.startAddress().address;
269
-
270
- return vipAddress !== machineNetworkBroadcast && vipAddress !== machineNetworkAddress;
271
- },
272
- );
273
-
274
- // like .required() but passes for initially empty field
275
- const requiredOnceSet = (initialValue?: string, message?: string) =>
276
- Yup.string().test(
277
- 'required-once-set',
278
- message || 'The value is required.',
279
- (value?: string): boolean => !!value || !initialValue,
280
- );
281
-
282
- export const hostSubnetValidationSchema = Yup.string().when(['managedNetworkingType'], {
283
- is: (managedNetworkingType: NetworkConfigurationValues['managedNetworkingType']) =>
284
- managedNetworkingType === 'clusterManaged',
285
- then: () => Yup.string().notOneOf([NO_SUBNET_SET], 'Host subnet must be selected.'),
286
- });
287
-
288
- export const vipValidationSchema = (
289
- hostSubnets: HostSubnets,
290
- values: NetworkConfigurationValues,
291
- initialValue?: string,
292
- ) =>
293
- Yup.mixed().when(['vipDhcpAllocation', 'managedNetworkingType'], {
294
- is: (
295
- vipDhcpAllocation: NetworkConfigurationValues['vipDhcpAllocation'],
296
- managedNetworkingType: NetworkConfigurationValues['managedNetworkingType'],
297
- ) => !vipDhcpAllocation && managedNetworkingType !== 'userManaged',
298
- then: () =>
299
- requiredOnceSet(initialValue, 'Required. Please provide an IP address')
300
- .concat(vipRangeValidationSchema(hostSubnets, values, true))
301
- .concat(vipUniqueValidationSchema(values, false)),
302
- });
303
-
304
- export const vipNoSuffixValidationSchema = (
305
- hostSubnets: HostSubnets,
306
- values: NetworkConfigurationValues,
307
- initialValues?: ApiVip[] | IngressVip[],
308
- ) =>
309
- Yup.mixed().when(['vipDhcpAllocation', 'managedNetworkingType'], {
310
- is: (
311
- vipDhcpAllocation: NetworkConfigurationValues['vipDhcpAllocation'],
312
- managedNetworkingType: NetworkConfigurationValues['managedNetworkingType'],
313
- ) => !vipDhcpAllocation && managedNetworkingType !== 'userManaged',
314
- then: () => {
315
- // Per-item schema for VIPs (apiVips[*].ip / ingressVips[*].ip)
316
- // 1) Require value once set
317
- // 2) Validate IP without suffix
318
- // 3) Ensure VIP family matches machineNetworks[idx] family
319
- // 4) Validate range vs selected subnets
320
- // 5) No broadcast/network address
321
- // 6) Uniqueness across API/Ingress
322
- const vipFamilyMatchSchema = Yup.string().test(
323
- 'vip-family-match-machine-network',
324
- 'IP family must match the corresponding machine network family.',
325
- function (value?: string) {
326
- if (!value) {
327
- return true;
328
- }
329
- // this.path looks like: "apiVips[0].ip" or "ingressVips[1].ip"
330
- const path = this.path || '';
331
- const match = path.match(/\[(\d+)\]/);
332
- const index = match ? parseInt(match[1], 10) : NaN;
333
- if (Number.isNaN(index)) {
334
- return true;
335
- }
336
- const cidr = values.machineNetworks?.[index]?.cidr || '';
337
- const mnIsV4 = isCIDR.v4(cidr);
338
- const mnIsV6 = isCIDR.v6(cidr);
339
- // If machine network at index is not selected/valid, don't block validation here
340
- if (!mnIsV4 && !mnIsV6) {
341
- return true;
342
- }
343
- const ipIsV4 = isIPv4Address(value);
344
- const ipIsV6 = isIPv6Address(value);
345
- if (!ipIsV4 && !ipIsV6) {
346
- return true;
347
- }
348
- return mnIsV4 ? ipIsV4 : ipIsV6;
349
- },
350
- );
351
-
352
- return requiredOnceSet(head(initialValues)?.ip, 'Required. Please provide an IP address')
353
- .concat(ipNoSuffixValidationSchema)
354
- .concat(vipFamilyMatchSchema)
355
- .concat(vipRangeValidationSchema(hostSubnets, values, false))
356
- .concat(vipBroadcastValidationSchema(values))
357
- .concat(vipUniqueValidationSchema(values, true));
358
- },
359
- });
360
-
361
- export const vipArrayValidationSchema = <T extends Yup.Maybe<Yup.AnyObject>>(
362
- hostSubnets: HostSubnets,
363
- values: NetworkConfigurationValues,
364
- initialValues?: ApiVip[] | IngressVip[],
365
- ) =>
366
- (values.managedNetworkingType === 'clusterManaged'
367
- ? Yup.array<T>().of(
368
- Yup.object({
369
- clusterId: Yup.string(),
370
- ip: vipNoSuffixValidationSchema(hostSubnets, values, initialValues),
371
- }),
372
- )
373
- : Yup.array<T>()
374
- )
375
- .test(
376
- 'vips-length',
377
- 'Both API and ingress APIs must be provided.',
378
- (_value) => values.apiVips?.length === values.ingressVips?.length,
379
- )
380
- .test(
381
- 'vips-match-machine-networks',
382
- 'Primary API and Ingress IPs must match the primary machine network family; secondary must match the secondary machine network family.',
383
- (_vips?: { ip?: string }[]) => {
384
- const machineNetworks = values.machineNetworks || [];
385
- const validateIndex = (idx: number) => {
386
- const cidr = machineNetworks[idx]?.cidr || '';
387
- const mIsIpv4 = isCIDR.v4(cidr);
388
- const mIsIpv6 = isCIDR.v6(cidr);
389
- if (!mIsIpv4 && !mIsIpv6) {
390
- return true;
391
- }
392
- const api = values.apiVips?.[idx]?.ip || '';
393
- const ing = values.ingressVips?.[idx]?.ip || '';
394
- if (!api || !ing) {
395
- return true;
396
- }
397
- const apiOk = mIsIpv4 ? isIPv4Address(api) : isIPv6Address(api);
398
- const ingOk = mIsIpv4 ? isIPv4Address(ing) : isIPv6Address(ing);
399
- return apiOk && ingOk;
400
- };
401
-
402
- const primaryOk = validateIndex(0);
403
- const secondaryOk = validateIndex(1);
404
- return primaryOk && secondaryOk;
405
- },
406
- );
407
-
408
- export const ipBlockValidationSchema = (reservedCidrs: string | string[] | undefined) =>
409
- Yup.string()
410
- .required('A value is required.')
411
- .test(
412
- 'valid-ip-address',
413
- 'Invalid IP address block. Expected value is a network expressed in CIDR notation (IP/netmask). For example: 123.123.123.0/24, 2055:d7a::/116',
414
- (value?: string): boolean => !!value && (isCIDR.v4(value) || isCIDR.v6(value)),
415
- )
416
- .test(
417
- 'valid-netmask',
418
- 'IPv4 netmask must be between 1-25 and include at least 128 addresses.\nIPv6 netmask must be between 8-128 and include at least 256 addresses.',
419
- (value?: string) => {
420
- const suffix = parseInt((value || '').split('/')[1]);
421
-
422
- return (
423
- (isCIDR.v4(value || '') && 0 < suffix && suffix < 26) ||
424
- (isCIDR.v6(value || '') && 7 < suffix && suffix < 129)
425
- );
426
- },
427
- )
428
- .test(
429
- 'cidr-is-not-unspecified',
430
- 'The specified CIDR is invalid because its resulting routing prefix matches the unspecified address.',
431
- (cidr: string) => {
432
- const ip = getSubnet(cidr);
433
- if (ip === null) {
434
- return false;
435
- }
436
-
437
- // The first address is used to represent the network
438
- const startAddress = ip.startAddress().address;
439
-
440
- return startAddress !== IP_V4_ZERO && startAddress !== IP_V6_ZERO;
441
- },
442
- )
443
- .test(
444
- 'valid-cidr-base-address',
445
- ({ value }) => `${value as string} is not a valid CIDR`,
446
- (cidr: string) => {
447
- const ip = getSubnet(cidr);
448
- if (ip === null) {
449
- return false;
450
- }
451
-
452
- const networkAddress = ip.startAddress().parsedAddress;
453
- const ipAddress = ip.parsedAddress;
454
- const result = ipAddress.every((part, idx) => part === networkAddress[idx]);
455
-
456
- return result;
457
- },
458
- )
459
- .test('cidrs-can-not-overlap', 'Provided CIDRs can not overlap.', (cidr: string) => {
460
- try {
461
- if (cidr && reservedCidrs && reservedCidrs.length > 0) {
462
- return !overlap(cidr, reservedCidrs);
463
- }
464
- } catch {
465
- return false;
466
- }
467
- // passing by default
468
- return true;
469
- });
470
-
471
- export const dnsNameValidationSchema = Yup.string()
472
- .test(
473
- 'dns-name-label-length',
474
- 'Single label of the DNS name can not be longer than 63 characters.',
475
- (value?: string) => (value || '').split('.').every((label: string) => label.length <= 63),
476
- )
477
- .matches(DNS_NAME_REGEX, {
478
- message: 'Value "${value}" is not valid DNS name. Example: basedomain.example.com', // eslint-disable-line no-template-curly-in-string
479
- excludeEmptyString: true,
480
- });
481
-
482
- export const baseDomainValidationSchema = Yup.string().test(
483
- 'dns-name-label-length',
484
- 'Every single host component in the base domain name cannot contain more than 63 characters and must not contain spaces.',
485
- (value?: string) => {
486
- // Check if the value contains any spaces
487
- if (/\s/.test(value as string)) {
488
- return false; // Value contains spaces, validation fails
489
- }
490
-
491
- // Check the label lengths
492
- const labels = (value || '').split('.');
493
- return labels.every((label: string) => label.length <= 63);
494
- },
495
- );
496
-
497
- export const hostPrefixValidationSchema = (
498
- clusterNetworkCidr: NetworkConfigurationValues['clusterNetworkCidr'],
499
- ) => {
500
- const requiredText = 'The host prefix is required.';
501
- const minMaxText =
502
- 'The host prefix is a number between 1 and 32 for IPv4 and between 8 and 128 for IPv6.';
503
- const netBlock = (clusterNetworkCidr || '').split('/')[1];
504
- if (!netBlock) {
505
- return Yup.number().required(requiredText).min(1, minMaxText).max(32, minMaxText);
506
- }
507
-
508
- let netBlockNumber = parseInt(netBlock);
509
- if (isNaN(netBlockNumber)) {
510
- netBlockNumber = 1;
511
- }
512
-
513
- const errorMsgPrefix =
514
- 'The host prefix is a number between size of the cluster network CIDR range';
515
- const errorMsgIPv4 = `${errorMsgPrefix} (${netBlockNumber}) and 25.`;
516
- const errorMsgIPv6 = `${errorMsgPrefix} (8) and 128.`;
517
-
518
- if (isCIDR.v6(clusterNetworkCidr || '')) {
519
- return Yup.number().required(requiredText).min(8, errorMsgIPv6).max(128, errorMsgIPv6);
520
- }
521
-
522
- if (isCIDR.v4(clusterNetworkCidr || '')) {
523
- return Yup.number()
524
- .required(requiredText)
525
- .min(netBlockNumber, errorMsgIPv4)
526
- .max(25, errorMsgIPv4);
527
- }
528
-
529
- return Yup.number().required(requiredText);
530
- };
531
-
532
- export const richNameValidationSchema = (t: TFunction, usedNames: string[], origName?: string) => {
533
- const nameValidationMessagesList = nameValidationMessages(t);
534
- return Yup.string()
535
- .min(1, nameValidationMessagesList.INVALID_LENGTH)
536
- .max(253, nameValidationMessagesList.INVALID_LENGTH)
537
- .test(
538
- nameValidationMessagesList.INVALID_START_END,
539
- nameValidationMessagesList.INVALID_START_END,
540
- (value?: string) => {
541
- const trimmed = value?.trim();
542
- if (!trimmed) {
543
- return true;
544
- }
545
- return (
546
- !!trimmed[0].match(NAME_START_END_REGEX) &&
547
- (trimmed[trimmed.length - 1]
548
- ? !!trimmed[trimmed.length - 1].match(NAME_START_END_REGEX)
549
- : true)
550
- );
551
- },
552
- )
553
- .matches(HOST_NAME_REGEX, nameValidationMessagesList.INVALID_FORMAT)
554
- .matches(NAME_CHARS_REGEX, {
555
- message: nameValidationMessagesList.INVALID_VALUE,
556
- excludeEmptyString: true,
557
- })
558
- .test(nameValidationMessagesList.NOT_UNIQUE, nameValidationMessagesList.NOT_UNIQUE, (value) => {
559
- if (!value || value === origName) {
560
- return true;
561
- }
562
- return !usedNames.find((n) => n === value);
563
- })
564
- .notOneOf(FORBIDDEN_HOSTNAMES, hostnameValidationMessages(t).LOCALHOST_ERR);
565
- };
566
-
567
- export const richHostnameValidationSchema = (
568
- t: TFunction,
569
- usedNames: string[],
570
- origName?: string,
571
- ) => {
572
- const hostnameValidationMessagesList = hostnameValidationMessages(t);
573
- return Yup.string()
574
- .min(1, hostnameValidationMessagesList.INVALID_LENGTH)
575
- .max(63, hostnameValidationMessagesList.INVALID_LENGTH)
576
- .test(
577
- hostnameValidationMessagesList.INVALID_START_END,
578
- hostnameValidationMessagesList.INVALID_START_END,
579
- (value?: string) => {
580
- const trimmed = value?.trim();
581
- if (!trimmed) {
582
- return true;
583
- }
584
- return (
585
- !!trimmed[0].match(NAME_START_END_REGEX) &&
586
- (trimmed[trimmed.length - 1]
587
- ? !!trimmed[trimmed.length - 1].match(NAME_START_END_REGEX)
588
- : true)
589
- );
590
- },
591
- )
592
- .matches(NAME_CHARS_REGEX, {
593
- message: hostnameValidationMessagesList.INVALID_VALUE,
594
- excludeEmptyString: true,
595
- })
596
- .test(
597
- hostnameValidationMessagesList.NOT_UNIQUE,
598
- hostnameValidationMessagesList.NOT_UNIQUE,
599
- (value) => {
600
- if (!value || value === origName) {
601
- return true;
602
- }
603
- return !usedNames.find((n) => n === value);
604
- },
605
- )
606
- .notOneOf(FORBIDDEN_HOSTNAMES, hostnameValidationMessagesList.LOCALHOST_ERR);
607
- };
608
-
609
- const httpProxyValidationMessage = 'Provide a valid HTTP URL.';
610
- export const httpProxyValidationSchema = ({
611
- values,
612
- pairValueName,
613
- allowEmpty,
614
- }: {
615
- values: ProxyFieldsType;
616
- pairValueName: 'httpProxy' | 'httpsProxy';
617
- allowEmpty?: boolean;
618
- }) => {
619
- const validation = Yup.string().test(
620
- 'http-proxy-validation',
621
- httpProxyValidationMessage,
622
- (value?: string) => {
623
- if (!value) {
624
- return true;
625
- }
626
-
627
- if (!value.startsWith('http://')) {
628
- return false;
629
- }
630
-
631
- try {
632
- new URL(value);
633
- } catch {
634
- return false;
635
- }
636
- return true;
637
- },
638
- );
639
-
640
- if (allowEmpty) {
641
- return validation;
642
- }
643
-
644
- return validation.test(
645
- 'http-proxy-no-empty-validation',
646
- 'At least one of the HTTP or HTTPS proxy URLs is required.',
647
- (value) => !values.enableProxy || !!value || !!values[pairValueName],
648
- );
649
- };
650
-
651
- const isIPorDN = (value?: string, dnsRegex = DNS_NAME_REGEX) => {
652
- if ((value as string).match(dnsRegex)) {
653
- return true;
654
- }
655
- try {
656
- ipValidationSchema.validateSync(value);
657
- return true;
658
- } catch (err) {
659
- return false;
660
- }
661
- };
662
-
663
- export const noProxyValidationSchema = Yup.string().test(
664
- 'no-proxy-validation',
665
- 'Provide a comma separated list of valid DNS names or IP addresses.',
666
- (value?: string) => {
667
- if (!value || value === '*') {
668
- return true;
669
- }
670
-
671
- // https://docs.openshift.com/container-platform/4.5/installing/installing_bare_metal/installing-restricted-networks-bare-metal.html#installation-configure-proxy_installing-restricted-networks-bare-metal
672
- // A comma-separated list of destination domain names, domains, IP addresses, or other network CIDRs to exclude proxying.
673
- // Preface a domain with . to match subdomains only. For example, .y.com matches x.y.com, but not y.com.
674
- // Use * to bypass proxy for all destinations.
675
- const noProxyList = trimCommaSeparatedList(value).split(',');
676
- return noProxyList.every((p) => isIPorDN(p, PROXY_DNS_REGEX));
677
- },
678
- );
679
-
680
- export const ntpSourceValidationSchema = Yup.string()
681
- .test(
682
- 'ntp-source-validation',
683
- 'Provide a comma separated list of valid DNS names or IP addresses.',
684
- (value?: string) => {
685
- if (!value || value === '') {
686
- return true;
687
- }
688
- return trimCommaSeparatedList(value)
689
- .split(',')
690
- .every((v) => isIPorDN(v));
691
- },
692
- )
693
- .test(
694
- 'ntp-source-validation-unique',
695
- 'DNS names and IP addresses must be unique.',
696
- (value?: string) => {
697
- if (!value || value === '') {
698
- return true;
699
- }
700
- const arr = trimCommaSeparatedList(value).split(',');
701
- return arr.length === new Set(arr).size;
702
- },
703
- );
704
-
705
- export const day2ApiVipValidationSchema = Yup.string().test(
706
- 'day2-api-vip',
707
- 'Provide a valid DNS name or IP Address',
708
- (value?: string) => {
709
- if (!value) {
710
- return true;
711
- }
712
- return isIPorDN(value);
713
- },
714
- );
715
-
716
- export const bmcAddressValidationSchema = (t: TFunction) => {
717
- const bmcAddressValidationMessagesList = bmcAddressValidationMessages(t);
718
-
719
- return Yup.string()
720
- .required()
721
- .test('valid-bmc-address', bmcAddressValidationMessagesList.INVALID_VALUE, (val) => {
722
- try {
723
- const url = parseUrl(val);
724
- return ['redfish-virtualmedia', 'idrac-virtualmedia'].includes(url.protocol as string);
725
- } catch (error) {
726
- return false;
727
- }
728
- });
729
- };
730
- export const locationValidationSchema = (t: TFunction) => {
731
- const locationValidationMessagesList = locationValidationMessages(t);
732
- return Yup.string()
733
- .min(1, locationValidationMessagesList.INVALID_LENGTH)
734
- .max(63, locationValidationMessagesList.INVALID_LENGTH)
735
- .test(
736
- locationValidationMessagesList.INVALID_START_END,
737
- locationValidationMessagesList.INVALID_START_END,
738
- (value?: string) => {
739
- const trimmed = value?.trim();
740
- if (!trimmed) {
741
- return true;
742
- }
743
- return (
744
- !!trimmed[0].match(ALPHANUMERIC_REGEX) &&
745
- (trimmed[trimmed.length - 1]
746
- ? !!trimmed[trimmed.length - 1].match(ALPHANUMERIC_REGEX)
747
- : true)
748
- );
749
- },
750
- )
751
- .matches(LOCATION_CHARS_REGEX, {
752
- message: locationValidationMessagesList.INVALID_VALUE,
753
- excludeEmptyString: true,
754
- });
755
- };
756
-
757
- export const machineNetworksValidationSchema = Yup.array().of(
758
- Yup.object({ cidr: hostSubnetValidationSchema, clusterId: Yup.string() }),
759
- );
760
-
761
- export const clusterNetworksValidationSchema = Yup.array().of(
762
- Yup.lazy((values: ClusterNetwork) =>
763
- Yup.object({
764
- cidr: ipBlockValidationSchema(
765
- undefined /* So far used in OCM only and so validated by backend */,
766
- ),
767
- hostPrefix: hostPrefixValidationSchema(values.cidr),
768
- clusterId: Yup.string(),
769
- }),
770
- ),
771
- );
772
-
773
- export const serviceNetworkValidationSchema = Yup.array().of(
774
- Yup.object({
775
- cidr: ipBlockValidationSchema(
776
- undefined /* So far used in OCM only and so validated by backend */,
777
- ),
778
- clusterId: Yup.string(),
779
- }),
780
- );
781
-
782
- export const dualStackValidationSchema = (field: string, openshiftVersion?: string) =>
783
- Yup.array()
784
- .max(2, `Maximum number of ${field} subnets in dual stack is 2.`)
785
- .test(
786
- 'dual-stack-ipv4',
787
- openshiftVersion && isMajorMinorVersionEqualOrGreater(openshiftVersion, '4.12')
788
- ? 'First network has to be a valid IPv4 or IPv6 subnet.'
789
- : 'First network has to be IPv4 subnet.',
790
- (values?: { cidr: MachineNetwork['cidr'] }[]): boolean => {
791
- // For OCP versions > 4.11, allow IPv6 as primary network
792
- if (openshiftVersion && isMajorMinorVersionEqualOrGreater(openshiftVersion, '4.12')) {
793
- return !!values?.[0].cidr && (isCIDR.v4(values[0].cidr) || isCIDR.v6(values[0].cidr));
794
- }
795
- // For older versions, require IPv4 as primary network
796
- return !!values?.[0].cidr && isCIDR.v4(values[0].cidr);
797
- },
798
- )
799
- .test(
800
- 'dual-stack-unique-cidrs',
801
- `Provided ${field} subnets must be unique.`,
802
- (values?: { cidr?: MachineNetwork['cidr'] }[]) => {
803
- if (!values || values.length < 2) {
804
- return true;
805
- }
806
- const first = values[0]?.cidr || '';
807
- const second = values[1]?.cidr || '';
808
- if (!first || !second) {
809
- return true;
810
- }
811
- const firstIsCidr = isCIDR.v4(first) || isCIDR.v6(first);
812
- const secondIsCidr = isCIDR.v4(second) || isCIDR.v6(second);
813
- if (!firstIsCidr || !secondIsCidr) {
814
- return true;
815
- }
816
- return first !== second;
817
- },
818
- )
819
- .test(
820
- 'dual-stack-opposite-families',
821
- `When two ${field} are provided, one must be IPv4 and the other IPv6.`,
822
- (values?: { cidr?: MachineNetwork['cidr'] }[]) => {
823
- if (!values || values.length < 2) {
824
- return true;
825
- }
826
- const a = values[0]?.cidr || '';
827
- const b = values[1]?.cidr || '';
828
- if (!a || !b) {
829
- return true;
830
- }
831
- const a4 = isCIDR.v4(a);
832
- const a6 = isCIDR.v6(a);
833
- const b4 = isCIDR.v4(b);
834
- const b6 = isCIDR.v6(b);
835
- if (!((a4 || a6) && (b4 || b6))) {
836
- return true;
837
- }
838
- return (a4 && b6) || (a6 && b4);
839
- },
840
- );
841
-
842
- export const IPv4ValidationSchema = Yup.array().test(
843
- 'single-stack',
844
- `All network subnets must be IPv4.`,
845
- (values?: (MachineNetwork | ClusterNetwork | ServiceNetwork)[]) => allSubnetsIPv4(values),
846
- );