@openshift-assisted/ui-lib 5.0.0-cim → 5.0.2-cim

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (607) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.d.ts +0 -17
  5. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.d.ts.map +1 -1
  6. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.d.ts +19 -0
  8. package/build/@types/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.d.ts.map +1 -0
  9. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +2 -2
  10. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -1
  11. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  12. package/build/@types/cim/components/ClusterDeployment/types.d.ts +1 -3
  13. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  14. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +4 -3
  15. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  16. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
  17. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.d.ts.map +1 -1
  18. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts +6 -0
  19. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts.map +1 -0
  20. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts +4 -2
  21. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
  22. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts +2 -1
  23. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts.map +1 -1
  24. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  25. package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
  26. package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts.map +1 -1
  27. package/build/@types/cim/components/helpers/clusterDeployment.d.ts.map +1 -1
  28. package/build/@types/cim/components/helpers/status.d.ts +5 -7
  29. package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
  30. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  31. package/build/@types/cim/components/helpers/versions.d.ts +3 -2
  32. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  33. package/build/@types/cim/components/index.d.ts +0 -1
  34. package/build/@types/cim/components/index.d.ts.map +1 -1
  35. package/build/@types/cim/components/modals/CimConfiguration/CimStorageMissingAlert.d.ts.map +1 -1
  36. package/build/@types/cim/components/modals/CimConfiguration/constants.d.ts +1 -1
  37. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts +2 -3
  38. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
  39. package/build/@types/cim/hooks/index.d.ts +2 -0
  40. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  41. package/build/@types/cim/hooks/useAgents.d.ts +4 -0
  42. package/build/@types/cim/hooks/useAgents.d.ts.map +1 -0
  43. package/build/@types/cim/hooks/useStorageClasses.d.ts +4 -0
  44. package/build/@types/cim/hooks/useStorageClasses.d.ts.map +1 -0
  45. package/build/@types/cim/index.d.ts +0 -1
  46. package/build/@types/cim/index.d.ts.map +1 -1
  47. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +2 -1
  48. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  49. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +7 -1
  50. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
  51. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  52. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  53. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.d.ts +2 -1
  54. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.d.ts.map +1 -1
  55. package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts.map +1 -1
  56. package/build/@types/common/components/clusterConfiguration/utils.d.ts +9 -1
  57. package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
  58. package/build/@types/common/components/clusterDetail/ClusterCredentials.d.ts.map +1 -1
  59. package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts +0 -5
  60. package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts.map +1 -1
  61. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  62. package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
  63. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  64. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -1
  65. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts +0 -1
  66. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  67. package/build/@types/common/components/hosts/utils.d.ts.map +1 -1
  68. package/build/@types/common/components/index.d.ts +1 -1
  69. package/build/@types/common/components/index.d.ts.map +1 -1
  70. package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
  71. package/build/@types/common/components/ui/formik/PullSecretField.d.ts +1 -0
  72. package/build/@types/common/components/ui/formik/PullSecretField.d.ts.map +1 -1
  73. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +2 -1
  74. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -1
  75. package/build/@types/common/config/constants.d.ts.map +1 -1
  76. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  77. package/build/@types/common/selectors/clusterSelectors.d.ts +1 -1
  78. package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
  79. package/build/@types/common/types/clusters.d.ts +3 -3
  80. package/build/@types/common/types/clusters.d.ts.map +1 -1
  81. package/build/@types/common/utils.d.ts.map +1 -1
  82. package/build/@types/ocm/components/AddHosts/types.d.ts +4 -3
  83. package/build/@types/ocm/components/AddHosts/types.d.ts.map +1 -1
  84. package/build/@types/ocm/components/Routes.d.ts +1 -1
  85. package/build/@types/ocm/components/Routes.d.ts.map +1 -1
  86. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageForm.d.ts.map +1 -1
  87. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts +0 -1
  88. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts.map +1 -1
  89. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  90. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
  91. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
  92. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +10 -2
  93. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
  94. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts +4 -0
  95. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts.map +1 -1
  96. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  97. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  98. package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts +3 -1
  99. package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts.map +1 -1
  100. package/build/@types/ocm/components/clusterConfiguration/operators/bundleSpecs.d.ts.map +1 -1
  101. package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts +3 -6
  102. package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts.map +1 -1
  103. package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
  104. package/build/@types/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.d.ts.map +1 -1
  105. package/build/@types/ocm/components/clusterConfiguration/review/ReviewSummary.d.ts.map +1 -1
  106. package/build/@types/ocm/components/clusterConfiguration/review/TableSummaryExpandable.d.ts +1 -0
  107. package/build/@types/ocm/components/clusterConfiguration/review/TableSummaryExpandable.d.ts.map +1 -1
  108. package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts +1 -1
  109. package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts.map +1 -1
  110. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.d.ts.map +1 -1
  111. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.d.ts.map +1 -1
  112. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.d.ts.map +1 -1
  113. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts +1 -0
  114. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts.map +1 -1
  115. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts +1 -1
  116. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts.map +1 -1
  117. package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts +1 -1
  118. package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
  119. package/build/@types/ocm/components/clusterDetail/ClusterDetailsButtonGroup.d.ts.map +1 -1
  120. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  121. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -0
  122. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
  123. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  124. package/build/@types/ocm/components/clusterWizard/NewClusterWizard.d.ts.map +1 -1
  125. package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
  126. package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts +3 -3
  127. package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts.map +1 -1
  128. package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts.map +1 -1
  129. package/build/@types/ocm/components/clusterWizard/OptionalOperatorsDropdown.d.ts +13 -0
  130. package/build/@types/ocm/components/clusterWizard/OptionalOperatorsDropdown.d.ts.map +1 -0
  131. package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
  132. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts +1 -0
  133. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
  134. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts +4 -0
  135. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -0
  136. package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
  137. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +4 -5
  138. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  139. package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts +1 -2
  140. package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts.map +1 -1
  141. package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
  142. package/build/@types/ocm/components/featureSupportLevels/index.d.ts +0 -1
  143. package/build/@types/ocm/components/featureSupportLevels/index.d.ts.map +1 -1
  144. package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts +1 -1
  145. package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts.map +1 -1
  146. package/build/@types/ocm/hooks/useLateBinding.d.ts.map +1 -1
  147. package/build/@types/ocm/services/ClustersService.d.ts +2 -1
  148. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  149. package/build/@types/ocm/services/InfraEnvsService.d.ts +1 -1
  150. package/build/@types/ocm/services/InfraEnvsService.d.ts.map +1 -1
  151. package/build/@types/ocm/services/NewFeatureSupportLevelsService.d.ts +1 -1
  152. package/build/@types/ocm/store/hooks.d.ts +1 -1
  153. package/build/@types/ocm/store/slices/clusters/selectors.d.ts +5 -61
  154. package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -1
  155. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +2 -0
  156. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
  157. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +2 -20
  158. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -1
  159. package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts +4 -21
  160. package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts.map +1 -1
  161. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +1 -1
  162. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  163. package/build/cjs/cim/components/Agent/NoAgentsAlert.js +2 -2
  164. package/build/cjs/cim/components/Agent/NoAgentsAlert.js.map +1 -1
  165. package/build/cjs/cim/components/Agent/tableColumns.js +3 -3
  166. package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -1
  167. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +22 -16
  168. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  169. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js +1 -1
  170. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js.map +1 -1
  171. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js +6 -3
  172. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js.map +1 -1
  173. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +4 -5
  174. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
  175. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js +6 -32
  176. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -1
  177. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +3 -16
  178. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  179. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.js +41 -0
  180. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.js.map +1 -0
  181. package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -1
  182. package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -2
  183. package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
  184. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +1 -1
  185. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  186. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js +2 -2
  187. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
  188. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +2 -2
  189. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  190. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +8 -8
  191. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  192. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +26 -8
  193. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  194. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
  195. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js.map +1 -1
  196. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +3 -1
  197. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
  198. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +13 -3
  199. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
  200. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js +52 -0
  201. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js.map +1 -0
  202. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +3 -3
  203. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  204. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js +2 -2
  205. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js.map +1 -1
  206. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  207. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  208. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -2
  209. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  210. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +1 -1
  211. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  212. package/build/cjs/cim/components/common/CpuArchitectureDropdown.js +1 -1
  213. package/build/cjs/cim/components/common/CpuArchitectureDropdown.js.map +1 -1
  214. package/build/cjs/cim/components/helpers/clusterDeployment.js +14 -10
  215. package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
  216. package/build/cjs/cim/components/helpers/status.js +4 -4
  217. package/build/cjs/cim/components/helpers/status.js.map +1 -1
  218. package/build/cjs/cim/components/helpers/toAssisted.js +2 -12
  219. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  220. package/build/cjs/cim/components/helpers/versions.js +6 -6
  221. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  222. package/build/cjs/cim/components/helpers/versions.test.js +19 -18
  223. package/build/cjs/cim/components/helpers/versions.test.js.map +1 -1
  224. package/build/cjs/cim/components/index.js +0 -1
  225. package/build/cjs/cim/components/index.js.map +1 -1
  226. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js +3 -3
  227. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js.map +1 -1
  228. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +1 -1
  229. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -1
  230. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +2 -2
  231. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
  232. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js +4 -4
  233. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
  234. package/build/cjs/cim/components/modals/CimConfiguration/constants.js +1 -1
  235. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +4 -4
  236. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  237. package/build/cjs/cim/hooks/index.js +2 -0
  238. package/build/cjs/cim/hooks/index.js.map +1 -1
  239. package/build/cjs/cim/hooks/useAgents.js +13 -0
  240. package/build/cjs/cim/hooks/useAgents.js.map +1 -0
  241. package/build/cjs/cim/hooks/useStorageClasses.js +13 -0
  242. package/build/cjs/cim/hooks/useStorageClasses.js.map +1 -0
  243. package/build/cjs/cim/index.js +0 -1
  244. package/build/cjs/cim/index.js.map +1 -1
  245. package/build/cjs/common/api/assisted-service/ClustersAPI.js +3 -0
  246. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  247. package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
  248. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +2 -4
  249. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  250. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +1 -1
  251. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  252. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js +9 -3
  253. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js.map +1 -1
  254. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +1 -1
  255. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  256. package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js +1 -1
  257. package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js.map +1 -1
  258. package/build/cjs/common/components/clusterConfiguration/utils.js +13 -1
  259. package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
  260. package/build/cjs/common/components/clusterConfiguration/utils.test.js +36 -0
  261. package/build/cjs/common/components/clusterConfiguration/utils.test.js.map +1 -1
  262. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js +10 -9
  263. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
  264. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +2 -11
  265. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  266. package/build/cjs/common/components/clusterWizard/ReviewValidations.js +16 -0
  267. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  268. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +34 -19
  269. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
  270. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +29 -31
  271. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  272. package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js +3 -3
  273. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +19 -30
  274. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
  275. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js +12 -21
  276. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  277. package/build/cjs/common/components/hosts/utils.js +6 -1
  278. package/build/cjs/common/components/hosts/utils.js.map +1 -1
  279. package/build/cjs/common/components/index.js +1 -1
  280. package/build/cjs/common/components/index.js.map +1 -1
  281. package/build/cjs/common/components/operators/operatorSpecs.js +0 -3
  282. package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
  283. package/build/cjs/common/components/ui/formik/PullSecretField.js +2 -2
  284. package/build/cjs/common/components/ui/formik/PullSecretField.js.map +1 -1
  285. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js +2 -1
  286. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -1
  287. package/build/cjs/common/config/constants.js +4 -0
  288. package/build/cjs/common/config/constants.js.map +1 -1
  289. package/build/cjs/common/config/docs_links.js +5 -4
  290. package/build/cjs/common/config/docs_links.js.map +1 -1
  291. package/build/cjs/common/selectors/clusterSelectors.js +7 -8
  292. package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
  293. package/build/cjs/common/types/clusters.js.map +1 -1
  294. package/build/cjs/common/utils.js +3 -0
  295. package/build/cjs/common/utils.js.map +1 -1
  296. package/build/cjs/common/validationSchemas/addressValidation.js +1 -1
  297. package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -1
  298. package/build/cjs/ocm/components/Routes.js +8 -8
  299. package/build/cjs/ocm/components/Routes.js.map +1 -1
  300. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js +5 -2
  301. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
  302. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +2 -2
  303. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
  304. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +6 -2
  305. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  306. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js +1 -1
  307. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js.map +1 -1
  308. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +1 -1
  309. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  310. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +3 -1
  311. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
  312. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +3 -1
  313. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  314. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
  315. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js +11 -8
  316. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js.map +1 -1
  317. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +68 -17
  318. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  319. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -1
  320. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  321. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +50 -13
  322. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  323. package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js +39 -21
  324. package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js.map +1 -1
  325. package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js +1 -2
  326. package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js.map +1 -1
  327. package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js +7 -25
  328. package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js.map +1 -1
  329. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +1 -1
  330. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  331. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +4 -2
  332. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
  333. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js +75 -20
  334. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js.map +1 -1
  335. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js +2 -2
  336. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js.map +1 -1
  337. package/build/cjs/ocm/components/clusterConfiguration/review/TableSummaryExpandable.css +3 -0
  338. package/build/cjs/ocm/components/clusterConfiguration/review/TableSummaryExpandable.js +2 -3
  339. package/build/cjs/ocm/components/clusterConfiguration/review/TableSummaryExpandable.js.map +1 -1
  340. package/build/cjs/ocm/components/clusterConfiguration/review/utils.js +8 -2
  341. package/build/cjs/ocm/components/clusterConfiguration/review/utils.js.map +1 -1
  342. package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js +35 -0
  343. package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js.map +1 -1
  344. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +10 -1
  345. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
  346. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js +5 -5
  347. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js.map +1 -1
  348. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js +2 -2
  349. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js.map +1 -1
  350. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.js.map +1 -1
  351. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js +3 -7
  352. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js.map +1 -1
  353. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +4 -4
  354. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  355. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +4 -4
  356. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  357. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js +8 -2
  358. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js.map +1 -1
  359. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +1 -1
  360. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
  361. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +1 -1
  362. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
  363. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +6 -13
  364. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  365. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +2 -2
  366. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  367. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
  368. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +15 -6
  369. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  370. package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js +2 -2
  371. package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
  372. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +9 -3
  373. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
  374. package/build/cjs/ocm/components/clusterWizard/Operators.js +40 -12
  375. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  376. package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js +34 -15
  377. package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js.map +1 -1
  378. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +18 -4
  379. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
  380. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.test.js +11 -5
  381. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.test.js.map +1 -1
  382. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +1 -1
  383. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  384. package/build/cjs/ocm/components/clusterWizard/OptionalOperatorsDropdown.js +34 -0
  385. package/build/cjs/ocm/components/clusterWizard/OptionalOperatorsDropdown.js.map +1 -0
  386. package/build/cjs/ocm/components/clusterWizard/constants.js +1 -0
  387. package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
  388. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +16 -22
  389. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
  390. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +102 -0
  391. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -0
  392. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +10 -8
  393. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
  394. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +72 -29
  395. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  396. package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js +2 -2
  397. package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js.map +1 -1
  398. package/build/cjs/ocm/components/clusters/ClusterPage.js +4 -4
  399. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  400. package/build/cjs/ocm/components/clusters/Clusters.js +3 -3
  401. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  402. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +5 -5
  403. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
  404. package/build/cjs/ocm/components/clusters/ClustersTable.js +4 -3
  405. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  406. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
  407. package/build/cjs/ocm/components/featureSupportLevels/index.js +0 -1
  408. package/build/cjs/ocm/components/featureSupportLevels/index.js.map +1 -1
  409. package/build/cjs/ocm/components/ui/Buttons/BackButton.js +2 -2
  410. package/build/cjs/ocm/components/ui/Buttons/BackButton.js.map +1 -1
  411. package/build/cjs/ocm/hooks/useInfraEnvId.js +2 -2
  412. package/build/cjs/ocm/hooks/useInfraEnvId.js.map +1 -1
  413. package/build/cjs/ocm/hooks/useLateBinding.js +41 -26
  414. package/build/cjs/ocm/hooks/useLateBinding.js.map +1 -1
  415. package/build/cjs/ocm/hooks/usePullSecret.js +2 -2
  416. package/build/cjs/ocm/services/ClustersService.js +3 -0
  417. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  418. package/build/cjs/ocm/services/InfraEnvsService.js +4 -1
  419. package/build/cjs/ocm/services/InfraEnvsService.js.map +1 -1
  420. package/build/cjs/ocm/store/slices/clusters/selectors.js +2 -2
  421. package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -1
  422. package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -1
  423. package/build/cjs/ocm/store/slices/infra-envs/selectors.js.map +1 -1
  424. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +1 -1
  425. package/lib/cim/components/Agent/NoAgentsAlert.tsx +1 -1
  426. package/lib/cim/components/Agent/tableColumns.tsx +1 -1
  427. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +101 -101
  428. package/lib/cim/components/ClusterDeployment/ClusterInstallationError.tsx +1 -1
  429. package/lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx +6 -3
  430. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +6 -6
  431. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx +6 -87
  432. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +3 -15
  433. package/lib/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.tsx +97 -0
  434. package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +3 -2
  435. package/lib/cim/components/ClusterDeployment/constants.ts +2 -2
  436. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +1 -1
  437. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx +2 -2
  438. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +2 -2
  439. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +29 -25
  440. package/lib/cim/components/ClusterDeployment/types.ts +2 -4
  441. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +35 -20
  442. package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +1 -1
  443. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +4 -0
  444. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +15 -2
  445. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.tsx +70 -0
  446. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +10 -2
  447. package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +4 -2
  448. package/lib/cim/components/InfraEnv/AddHostDropdown.tsx +1 -1
  449. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +9 -8
  450. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +0 -2
  451. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +1 -1
  452. package/lib/cim/components/common/CpuArchitectureDropdown.tsx +2 -1
  453. package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
  454. package/lib/cim/components/helpers/status.ts +12 -13
  455. package/lib/cim/components/helpers/toAssisted.ts +3 -13
  456. package/lib/cim/components/helpers/versions.test.ts +21 -18
  457. package/lib/cim/components/helpers/versions.ts +7 -3
  458. package/lib/cim/components/index.ts +0 -1
  459. package/lib/cim/components/modals/CimConfiguration/CimConfigProgressAlert.tsx +2 -2
  460. package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +1 -1
  461. package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +2 -2
  462. package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +9 -3
  463. package/lib/cim/components/modals/CimConfiguration/constants.ts +1 -1
  464. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +4 -15
  465. package/lib/cim/hooks/index.tsx +2 -0
  466. package/lib/cim/hooks/useAgents.tsx +15 -0
  467. package/lib/cim/hooks/useStorageClasses.tsx +15 -0
  468. package/lib/cim/index.ts +0 -1
  469. package/lib/common/api/assisted-service/ClustersAPI.ts +8 -0
  470. package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +9 -4
  471. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +5 -7
  472. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +3 -1
  473. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.tsx +18 -8
  474. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +1 -1
  475. package/lib/common/components/clusterConfiguration/ExternalPlatformsDropdown.tsx +3 -1
  476. package/lib/common/components/clusterConfiguration/utils.test.ts +43 -1
  477. package/lib/common/components/clusterConfiguration/utils.ts +13 -0
  478. package/lib/common/components/clusterDetail/ClusterCredentials.tsx +49 -53
  479. package/lib/common/components/clusterDetail/ConsoleModal.tsx +1 -36
  480. package/lib/common/components/clusterWizard/ReviewValidations.tsx +24 -0
  481. package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +38 -12
  482. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +31 -57
  483. package/lib/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.tsx +3 -3
  484. package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +33 -38
  485. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +16 -23
  486. package/lib/common/components/hosts/utils.ts +8 -1
  487. package/lib/common/components/index.ts +1 -1
  488. package/lib/common/components/operators/operatorSpecs.tsx +0 -16
  489. package/lib/common/components/ui/formik/PullSecretField.tsx +5 -2
  490. package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +3 -0
  491. package/lib/common/config/constants.ts +4 -0
  492. package/lib/common/config/docs_links.ts +5 -4
  493. package/lib/common/selectors/clusterSelectors.ts +9 -9
  494. package/lib/common/types/clusters.ts +4 -2
  495. package/lib/common/utils.ts +3 -0
  496. package/lib/common/validationSchemas/addressValidation.tsx +2 -2
  497. package/lib/ocm/components/AddHosts/types.ts +6 -3
  498. package/lib/ocm/components/Routes.tsx +2 -2
  499. package/lib/ocm/components/clusterConfiguration/DiscoveryImageForm.tsx +11 -2
  500. package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +13 -3
  501. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +9 -1
  502. package/lib/ocm/components/clusterConfiguration/OcmClusterProgressItems.tsx +2 -2
  503. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +3 -3
  504. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +8 -1
  505. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +3 -1
  506. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +2 -2
  507. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.tsx +12 -6
  508. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +86 -22
  509. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +2 -2
  510. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +57 -20
  511. package/lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx +48 -34
  512. package/lib/ocm/components/clusterConfiguration/operators/bundleSpecs.tsx +2 -3
  513. package/lib/ocm/components/clusterConfiguration/operators/utils.tsx +6 -37
  514. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +1 -1
  515. package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +4 -2
  516. package/lib/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.tsx +114 -24
  517. package/lib/ocm/components/clusterConfiguration/review/ReviewSummary.tsx +1 -4
  518. package/lib/ocm/components/clusterConfiguration/review/TableSummaryExpandable.css +3 -0
  519. package/lib/ocm/components/clusterConfiguration/review/TableSummaryExpandable.tsx +1 -1
  520. package/lib/ocm/components/clusterConfiguration/review/utils.test.ts +41 -0
  521. package/lib/ocm/components/clusterConfiguration/review/utils.tsx +6 -3
  522. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +10 -1
  523. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.tsx +9 -6
  524. package/lib/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.ts +2 -0
  525. package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.ts +1 -0
  526. package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.ts +2 -0
  527. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +1 -1
  528. package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +3 -3
  529. package/lib/ocm/components/clusterDetail/ClusterDetailsButtonGroup.tsx +27 -2
  530. package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +1 -1
  531. package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +1 -1
  532. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -16
  533. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +1 -1
  534. package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -0
  535. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +15 -14
  536. package/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx +1 -1
  537. package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +10 -3
  538. package/lib/ocm/components/clusterWizard/Operators.tsx +47 -12
  539. package/lib/ocm/components/clusterWizard/OperatorsBundle.tsx +72 -26
  540. package/lib/ocm/components/clusterWizard/OperatorsSelect.test.ts +11 -5
  541. package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +21 -4
  542. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +1 -1
  543. package/lib/ocm/components/clusterWizard/OptionalOperatorsDropdown.tsx +106 -0
  544. package/lib/ocm/components/clusterWizard/constants.ts +1 -0
  545. package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +31 -52
  546. package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +173 -0
  547. package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +11 -9
  548. package/lib/ocm/components/clusterWizard/wizardTransition.ts +96 -37
  549. package/lib/ocm/components/clusters/ClusterBreadcrumbs.tsx +1 -1
  550. package/lib/ocm/components/clusters/ClusterPage.tsx +1 -1
  551. package/lib/ocm/components/clusters/Clusters.tsx +2 -2
  552. package/lib/ocm/components/clusters/ClustersListToolbar.tsx +5 -7
  553. package/lib/ocm/components/clusters/ClustersTable.tsx +60 -50
  554. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
  555. package/lib/ocm/components/featureSupportLevels/index.ts +0 -1
  556. package/lib/ocm/components/ui/Buttons/BackButton.tsx +1 -1
  557. package/lib/ocm/hooks/useInfraEnvId.ts +2 -2
  558. package/lib/ocm/hooks/useLateBinding.ts +45 -24
  559. package/lib/ocm/hooks/usePullSecret.ts +2 -2
  560. package/lib/ocm/services/ClustersService.ts +5 -0
  561. package/lib/ocm/services/InfraEnvsService.ts +4 -1
  562. package/lib/ocm/store/slices/clusters/selectors.tsx +7 -5
  563. package/lib/ocm/store/slices/feature-flags/selectors.ts +5 -2
  564. package/lib/ocm/store/slices/infra-envs/selectors.ts +4 -2
  565. package/package.json +17 -17
  566. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts +0 -9
  567. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +0 -1
  568. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts +0 -6
  569. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts.map +0 -1
  570. package/build/@types/cim/components/featureSupportLevels/index.d.ts +0 -2
  571. package/build/@types/cim/components/featureSupportLevels/index.d.ts.map +0 -1
  572. package/build/@types/cim/config/constants.d.ts +0 -16
  573. package/build/@types/cim/config/constants.d.ts.map +0 -1
  574. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts +0 -9
  575. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts.map +0 -1
  576. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts +0 -22
  577. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts.map +0 -1
  578. package/build/@types/common/components/featureSupportLevels/index.d.ts +0 -3
  579. package/build/@types/common/components/featureSupportLevels/index.d.ts.map +0 -1
  580. package/build/@types/common/components/featureSupportLevels/types.d.ts +0 -8
  581. package/build/@types/common/components/featureSupportLevels/types.d.ts.map +0 -1
  582. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +0 -82
  583. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +0 -1
  584. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js +0 -45
  585. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js.map +0 -1
  586. package/build/cjs/cim/components/featureSupportLevels/index.js +0 -7
  587. package/build/cjs/cim/components/featureSupportLevels/index.js.map +0 -1
  588. package/build/cjs/cim/config/constants.js +0 -272
  589. package/build/cjs/cim/config/constants.js.map +0 -1
  590. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js +0 -26
  591. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js.map +0 -1
  592. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js +0 -21
  593. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js.map +0 -1
  594. package/build/cjs/common/components/featureSupportLevels/index.js +0 -8
  595. package/build/cjs/common/components/featureSupportLevels/index.js.map +0 -1
  596. package/build/cjs/common/components/featureSupportLevels/types.js +0 -3
  597. package/build/cjs/common/components/featureSupportLevels/types.js.map +0 -1
  598. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.css +0 -3
  599. package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +0 -136
  600. package/lib/cim/components/featureSupportLevels/featureStateUtils.tsx +0 -61
  601. package/lib/cim/components/featureSupportLevels/index.ts +0 -1
  602. package/lib/cim/config/constants.ts +0 -285
  603. package/lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx +0 -37
  604. package/lib/common/components/featureSupportLevels/FeatureSupportLevelContext.tsx +0 -49
  605. package/lib/common/components/featureSupportLevels/index.ts +0 -2
  606. package/lib/common/components/featureSupportLevels/types.ts +0 -12
  607. package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.css +0 -3
@@ -1,5 +1,5 @@
1
1
  import { test, describe, expect } from 'vitest';
2
- import { isDualStack } from './utils';
2
+ import { isDualStack, getIPv6FromDualstack } from './utils';
3
3
  import {
4
4
  MachineNetwork,
5
5
  ClusterNetwork,
@@ -273,3 +273,45 @@ describe('isDualStack', () => {
273
273
  });
274
274
  });
275
275
  });
276
+
277
+ describe('getIPv6FromDualstack', () => {
278
+ test('returns the IPv6 entry from a dualstack array', () => {
279
+ const networks = [
280
+ { cidr: '10.128.0.0/14', hostPrefix: 23, clusterId: 'test' },
281
+ { cidr: 'fd01::/48', hostPrefix: 64, clusterId: 'test' },
282
+ ];
283
+ const result = getIPv6FromDualstack(networks);
284
+ expect(result).toEqual({ cidr: 'fd01::/48', hostPrefix: 64, clusterId: 'test' });
285
+ });
286
+
287
+ test('returns the IPv6 entry when IPv6 is first', () => {
288
+ const networks = [
289
+ { cidr: 'fd01::/48', hostPrefix: 64, clusterId: 'test' },
290
+ { cidr: '10.128.0.0/14', hostPrefix: 23, clusterId: 'test' },
291
+ ];
292
+ const result = getIPv6FromDualstack(networks);
293
+ expect(result).toEqual({ cidr: 'fd01::/48', hostPrefix: 64, clusterId: 'test' });
294
+ });
295
+
296
+ test('returns undefined when no IPv6 entry is present', () => {
297
+ const networks = [{ cidr: '10.128.0.0/14', hostPrefix: 23, clusterId: 'test' }];
298
+ expect(getIPv6FromDualstack(networks)).toBeUndefined();
299
+ });
300
+
301
+ test('returns undefined for an empty array', () => {
302
+ expect(getIPv6FromDualstack([])).toBeUndefined();
303
+ });
304
+
305
+ test('returns undefined for undefined input', () => {
306
+ expect(getIPv6FromDualstack(undefined)).toBeUndefined();
307
+ });
308
+
309
+ test('works with service networks (no hostPrefix)', () => {
310
+ const networks = [
311
+ { cidr: '172.30.0.0/16', clusterId: 'test' },
312
+ { cidr: 'fd02::/112', clusterId: 'test' },
313
+ ];
314
+ const result = getIPv6FromDualstack(networks);
315
+ expect(result).toEqual({ cidr: 'fd02::/112', clusterId: 'test' });
316
+ });
317
+ });
@@ -188,6 +188,19 @@ export const canBeDualStack = (subnets: HostSubnets) =>
188
188
  subnets.some((subnet) => Address4.isValid(subnet.subnet)) &&
189
189
  subnets.some((subnet) => Address6.isValid(subnet.subnet));
190
190
 
191
+ export const isPrimaryIPv6 = (machineNetworks: MachineNetwork[] | undefined): boolean => {
192
+ const cidr = machineNetworks?.[0]?.cidr;
193
+ return !!cidr && Address6.isValid(cidr);
194
+ };
195
+
196
+ /**
197
+ * Find the IPv6 entry in a dualstack network array.
198
+ * Dualstack arrays contain one IPv4 and one IPv6 entry; this helper returns the IPv6 one.
199
+ */
200
+ export const getIPv6FromDualstack = <T extends { cidr?: string }>(
201
+ networks: T[] | undefined,
202
+ ): T | undefined => networks?.find((n) => n.cidr && Address6.isValid(n.cidr));
203
+
191
204
  const areNetworksDualStack = (
192
205
  networks: (MachineNetwork | ClusterNetwork | ServiceNetwork)[] | undefined,
193
206
  openshiftVersion?: string,
@@ -1,17 +1,9 @@
1
1
  import React from 'react';
2
- import {
3
- GridItem,
4
- ClipboardCopy,
5
- clipboardCopyFunc,
6
- Button,
7
- Alert,
8
- TextInput,
9
- } from '@patternfly/react-core';
2
+ import { GridItem, ClipboardCopy, clipboardCopyFunc, Alert } from '@patternfly/react-core';
10
3
  import { Credentials, Cluster } from '@openshift-assisted/types/assisted-installer-service';
11
4
  import { LoadingState, ErrorState } from '../../components/ui/uiState';
12
5
  import { DetailList, DetailItem } from '../../components/ui/DetailList';
13
6
  import { TroubleshootingOpenshiftConsoleButton } from './ConsoleModal';
14
- import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
15
7
  import { useTranslation } from '../../hooks/use-translation-wrapper';
16
8
 
17
9
  type ClusterCredentialsProps = {
@@ -74,55 +66,59 @@ const ClusterCredentials: React.FC<ClusterCredentialsProps> = ({
74
66
  const consoleUrl = credentials.consoleUrl
75
67
  ? getConsoleUrl(credentials.consoleUrl, isMceEnabled)
76
68
  : '';
69
+ const hasVips = Boolean(cluster.apiVips?.length && cluster.ingressVips?.length);
77
70
  credentialsBody = (
78
- <DetailList>
79
- {credentials.consoleUrl && (
80
- <DetailItem
81
- title={t('ai:Web Console URL')}
82
- value={
83
- <>
84
- <Button
85
- variant="link"
86
- icon={<ExternalLinkAltIcon />}
87
- iconPosition="right"
88
- isInline
89
- onClick={() => window.open(consoleUrl, '_blank', 'noopener')}
90
- data-testid={`${idPrefix}-link-console-url`}
91
- >
92
- {consoleUrl}
93
- </Button>
94
- <br />
95
- {!!cluster.apiVips && !!cluster.ingressVips && (
96
- <TroubleshootingOpenshiftConsoleButton
97
- consoleUrl={consoleUrl}
98
- cluster={cluster}
99
- idPrefix={idPrefix}
100
- />
101
- )}
102
- </>
103
- }
104
- />
105
- )}
106
- {credentials.username && (
107
- <>
71
+ <>
72
+ <DetailList>
73
+ {credentials.consoleUrl && (
108
74
  <DetailItem
109
- title={t('ai:Username')}
110
- value={<TextInput value={credentials.username} readOnlyVariant="default" />}
111
- />
112
- <DetailItem
113
- title={t('ai:Password')}
75
+ title={t('ai:Web Console URL')}
114
76
  value={
115
- <ClipboardCopy
116
- isReadOnly
117
- onCopy={(event) => clipboardCopyFunc(event, credentials.password)}
118
- >
119
- &bull;&bull;&bull;&bull;&bull;
120
- </ClipboardCopy>
77
+ <>
78
+ <ClipboardCopy
79
+ isReadOnly
80
+ className="pf-v6-u-my-sm"
81
+ data-testid={`${idPrefix}-link-console-url`}
82
+ >
83
+ {consoleUrl}
84
+ </ClipboardCopy>
85
+ {hasVips && (
86
+ <TroubleshootingOpenshiftConsoleButton
87
+ consoleUrl={consoleUrl}
88
+ cluster={cluster}
89
+ idPrefix={idPrefix}
90
+ />
91
+ )}
92
+ </>
121
93
  }
122
94
  />
123
- </>
124
- )}
125
- </DetailList>
95
+ )}
96
+ {credentials.username && (
97
+ <>
98
+ <DetailItem
99
+ title={t('ai:Username')}
100
+ value={
101
+ <ClipboardCopy isReadOnly className="pf-v6-u-my-sm">
102
+ {credentials.username}
103
+ </ClipboardCopy>
104
+ }
105
+ />
106
+ <DetailItem
107
+ title={t('ai:Password')}
108
+ value={
109
+ <ClipboardCopy
110
+ isReadOnly
111
+ className="pf-v6-u-my-sm"
112
+ onCopy={(event) => clipboardCopyFunc(event, credentials.password)}
113
+ >
114
+ &bull;&bull;&bull;&bull;&bull;
115
+ </ClipboardCopy>
116
+ }
117
+ />
118
+ </>
119
+ )}
120
+ </DetailList>
121
+ </>
126
122
  );
127
123
  }
128
124
 
@@ -12,7 +12,6 @@ import {
12
12
  } from '@patternfly/react-core';
13
13
  import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
14
14
  import { removeProtocolFromURL } from '../../api';
15
- import { ToolbarButton } from '../ui/Toolbar';
16
15
  import PrismCode from '../ui/PrismCode';
17
16
  import { useTranslation } from '../../hooks/use-translation-wrapper';
18
17
  import { selectApiVip, selectIngressVip } from '../../selectors';
@@ -24,11 +23,6 @@ type WebConsoleHintProps = {
24
23
  idPrefix?: string;
25
24
  };
26
25
 
27
- type LaunchOpenshiftConsoleButtonProps = WebConsoleHintProps & {
28
- isDisabled: boolean;
29
- id?: string;
30
- };
31
-
32
26
  type ConsoleModalProps = WebConsoleHintProps & {
33
27
  closeModal: () => void;
34
28
  isOpen: boolean;
@@ -103,35 +97,6 @@ export const WebConsoleHint: React.FC<WebConsoleHintProps> = ({ cluster, console
103
97
  );
104
98
  };
105
99
 
106
- export const LaunchOpenshiftConsoleButton: React.FC<LaunchOpenshiftConsoleButtonProps> = ({
107
- cluster,
108
- consoleUrl,
109
- isDisabled,
110
- id,
111
- }) => {
112
- const [isOpen, setOpen] = React.useState(false);
113
- const { t } = useTranslation();
114
- return (
115
- <>
116
- <ToolbarButton
117
- type="button"
118
- variant={ButtonVariant.primary}
119
- isDisabled={isDisabled}
120
- onClick={() => setOpen(true)}
121
- data-testid={id}
122
- >
123
- {t('ai:Launch OpenShift Console')}
124
- </ToolbarButton>
125
- <ConsoleModal
126
- closeModal={() => setOpen(false)}
127
- consoleUrl={consoleUrl}
128
- cluster={cluster}
129
- isOpen={isOpen}
130
- />
131
- </>
132
- );
133
- };
134
-
135
100
  export const TroubleshootingOpenshiftConsoleButton: React.FC<WebConsoleHintProps> = ({
136
101
  cluster,
137
102
  consoleUrl,
@@ -173,7 +138,7 @@ export const ConsoleModal: React.FC<ConsoleModalProps> = ({
173
138
  type="submit"
174
139
  key="launch"
175
140
  variant={ButtonVariant.primary}
176
- onClick={() => window.open(consoleUrl, '_blank', 'noopener')}
141
+ onClick={() => window.open(consoleUrl, '_blank', 'noopener,noreferrer')}
177
142
  isDisabled={!consoleUrl}
178
143
  >
179
144
  {t('ai:Launch OpenShift Console')}
@@ -47,6 +47,20 @@ const PendingValidations = ({ id, count }: { id: string; count: number }) => {
47
47
  return <div id={id}>{t('ai:There is still {{count}} pending check', { count: count })}</div>;
48
48
  };
49
49
 
50
+ const InformationalValidation = ({ validation }: { validation: ClusterValidation }) => {
51
+ const { t } = useTranslation();
52
+ const label = clusterValidationLabels(t)[validation.id] || validation.id || '';
53
+
54
+ return (
55
+ <div id={`info-validation-${validation.id}`}>
56
+ <Icon status="success">
57
+ <CheckCircleIcon />
58
+ </Icon>{' '}
59
+ {label}. {validation.message}
60
+ </div>
61
+ );
62
+ };
63
+
50
64
  const ValidationActionLink = <S extends string>({
51
65
  step,
52
66
  setCurrentStepId,
@@ -173,6 +187,16 @@ export const ClusterValidations = <S extends string>({
173
187
  />,
174
188
  );
175
189
  }
190
+
191
+ if (
192
+ validation.status === 'success' &&
193
+ validation.id === 'openshift-ai-gpu-requirements-satisfied' &&
194
+ validation.message
195
+ ) {
196
+ failingValidations.push(
197
+ <InformationalValidation key={`info-${validation.id}`} validation={validation} />,
198
+ );
199
+ }
176
200
  };
177
201
 
178
202
  validationsInfo[group]?.forEach(addFailingValidation);
@@ -38,6 +38,38 @@ export const parseTangServers = (tangServersString?: string): TangServer[] => {
38
38
  return emptyTangServers();
39
39
  };
40
40
 
41
+ const parseDiskEncryption = (diskEncryption: Cluster['diskEncryption']) => {
42
+ const enableOn = {
43
+ enableDiskEncryptionOnMasters: false,
44
+ enableDiskEncryptionOnWorkers: false,
45
+ enableDiskEncryptionOnArbiters: false,
46
+ };
47
+
48
+ if (diskEncryption?.enableOn === 'all') {
49
+ enableOn.enableDiskEncryptionOnMasters = true;
50
+ enableOn.enableDiskEncryptionOnWorkers = true;
51
+ enableOn.enableDiskEncryptionOnArbiters = true;
52
+ } else {
53
+ const types = diskEncryption?.enableOn?.split(',');
54
+
55
+ types?.forEach((type) => {
56
+ switch (type) {
57
+ case 'masters':
58
+ enableOn.enableDiskEncryptionOnMasters = true;
59
+ break;
60
+ case 'workers':
61
+ enableOn.enableDiskEncryptionOnWorkers = true;
62
+ break;
63
+ case 'arbiters':
64
+ enableOn.enableDiskEncryptionOnArbiters = true;
65
+ break;
66
+ }
67
+ });
68
+ }
69
+
70
+ return enableOn;
71
+ };
72
+
41
73
  export const getClusterDetailsInitialValues = ({
42
74
  cluster,
43
75
  pullSecret,
@@ -57,6 +89,7 @@ export const getClusterDetailsInitialValues = ({
57
89
  openshiftVersion = getDefaultOpenShiftVersion(ocpVersions),
58
90
  controlPlaneCount = 3,
59
91
  } = cluster || {};
92
+
60
93
  return {
61
94
  name,
62
95
  openshiftVersion,
@@ -65,22 +98,15 @@ export const getClusterDetailsInitialValues = ({
65
98
  controlPlaneCount,
66
99
  useRedHatDnsService:
67
100
  !!baseDnsDomain && managedDomains.map((d) => d.domain).includes(baseDnsDomain),
68
- enableDiskEncryptionOnMasters: ['all', 'masters'].includes(
69
- cluster?.diskEncryption?.enableOn ?? 'none',
70
- ),
71
- enableDiskEncryptionOnWorkers: ['all', 'workers'].includes(
72
- cluster?.diskEncryption?.enableOn ?? 'none',
73
- ),
74
- diskEncryptionMode: cluster?.diskEncryption?.mode ?? 'tpmv2',
75
- diskEncryptionTangServers: parseTangServers(cluster?.diskEncryption?.tangServers),
76
- diskEncryption: cluster?.diskEncryption ?? {},
77
101
  cpuArchitecture: cluster?.cpuArchitecture || getDefaultCpuArchitecture(),
78
102
  platform: cluster?.platform?.type || 'baremetal',
79
103
  customOpenshiftSelect: null,
80
104
  userManagedNetworking: cluster?.userManagedNetworking || false,
81
- enableDiskEncryptionOnArbiters: ['all', 'arbiters'].includes(
82
- cluster?.diskEncryption?.enableOn ?? 'none',
83
- ),
105
+
106
+ diskEncryptionMode: cluster?.diskEncryption?.mode ?? 'tpmv2',
107
+ diskEncryptionTangServers: parseTangServers(cluster?.diskEncryption?.tangServers),
108
+ diskEncryption: cluster?.diskEncryption ?? {},
109
+ ...parseDiskEncryption(cluster?.diskEncryption),
84
110
  };
85
111
  };
86
112
 
@@ -1,4 +1,4 @@
1
- import React, { useEffect } from 'react';
1
+ import React from 'react';
2
2
  import {
3
3
  Alert,
4
4
  AlertActionLink,
@@ -8,7 +8,7 @@ import {
8
8
  Stack,
9
9
  StackItem,
10
10
  } from '@patternfly/react-core';
11
- import { FieldArray, useFormikContext, FormikHelpers } from 'formik';
11
+ import { FieldArray, useFormikContext } from 'formik';
12
12
  import { Address4, Address6 } from 'ip-address';
13
13
 
14
14
  import { HostSubnet, NetworkConfigurationValues } from '../../../types';
@@ -17,39 +17,11 @@ import { isMajorMinorVersionEqualOrGreater } from '../../../utils';
17
17
  import { useTranslation } from '../../../hooks/use-translation-wrapper';
18
18
  import { SubnetsDropdown } from './SubnetsDropdown';
19
19
  import { reorderNetworksForPrimary } from './reorderNetworks';
20
- import {
21
- Cluster,
22
- Host,
23
- MachineNetwork,
24
- } from '@openshift-assisted/types/assisted-installer-service';
20
+ import { Cluster, Host } from '@openshift-assisted/types/assisted-installer-service';
25
21
 
26
22
  const subnetSort = (subA: HostSubnet, subB: HostSubnet) =>
27
23
  subA.humanized.localeCompare(subB.humanized);
28
24
 
29
- const useAutoSelectDefaultMachineNetworks = (
30
- autoSelectNetwork: boolean,
31
- setFieldValue: FormikHelpers<NetworkConfigurationValues>['setFieldValue'],
32
- cidrV4: MachineNetwork['cidr'],
33
- cidrV6: MachineNetwork['cidr'],
34
- clusterId: string,
35
- isDualStack: boolean,
36
- ) => {
37
- useEffect(() => {
38
- if (autoSelectNetwork) {
39
- setFieldValue(
40
- 'machineNetworks',
41
- isDualStack
42
- ? [
43
- { cidr: cidrV4, clusterId },
44
- { cidr: cidrV6, clusterId },
45
- ]
46
- : [{ cidr: cidrV4, clusterId }],
47
- false,
48
- );
49
- }
50
- }, [autoSelectNetwork, cidrV4, cidrV6, clusterId, isDualStack, setFieldValue]);
51
- };
52
-
53
25
  export interface AvailableSubnetsControlProps {
54
26
  clusterId: Cluster['id'];
55
27
  hostSubnets: HostSubnet[];
@@ -81,31 +53,24 @@ export const AvailableSubnetsControl = ({
81
53
  const supportsIPv6Primary =
82
54
  openshiftVersion && isMajorMinorVersionEqualOrGreater(openshiftVersion, '4.12');
83
55
 
84
- const IPv4Subnets = hostSubnets
85
- .filter((subnet) => Address4.isValid(subnet.subnet))
86
- .sort(subnetSort);
87
- const IPv6Subnets = hostSubnets
88
- .filter((subnet) => Address6.isValid(subnet.subnet))
89
- .sort(subnetSort);
90
-
91
56
  // For OCP >= 4.12, both networks can use either IPv4 or IPv6
92
- const allSubnets = supportsIPv6Primary
93
- ? [...IPv4Subnets, ...IPv6Subnets].sort(subnetSort)
94
- : IPv4Subnets;
57
+ const { IPv4Subnets, IPv6Subnets, allSubnets } = React.useMemo(() => {
58
+ const IPv4Subnets = hostSubnets
59
+ .filter((subnet) => Address4.isValid(subnet.subnet))
60
+ .sort(subnetSort);
95
61
 
96
- // For auto-selection, prefer IPv4 as primary (even for dual-stack)
97
- const cidrV4 = IPv4Subnets.length >= 1 ? IPv4Subnets[0].subnet : NO_SUBNET_SET;
98
- const cidrV6 = IPv6Subnets.length >= 1 ? IPv6Subnets[0].subnet : NO_SUBNET_SET;
99
- const hasEmptySelection = (values.machineNetworks ?? []).length === 0;
100
- const autoSelectNetwork = !isViewerMode && hasEmptySelection;
101
- useAutoSelectDefaultMachineNetworks(
102
- autoSelectNetwork,
103
- setFieldValue,
104
- cidrV4,
105
- cidrV6,
106
- clusterId,
107
- isDualStack,
108
- );
62
+ const IPv6Subnets = hostSubnets
63
+ .filter((subnet) => Address6.isValid(subnet.subnet))
64
+ .sort(subnetSort);
65
+
66
+ const allSubnets = supportsIPv6Primary ? [...IPv4Subnets, ...IPv6Subnets] : IPv4Subnets;
67
+
68
+ return {
69
+ IPv4Subnets,
70
+ IPv6Subnets,
71
+ allSubnets,
72
+ };
73
+ }, [hostSubnets, supportsIPv6Primary]);
109
74
 
110
75
  // Ensure primary and secondary machine networks are not in the same stack (IPv4/IPv6).
111
76
  // If the user switches primary to the same address family as secondary, adjust secondary to the opposite family
@@ -236,6 +201,15 @@ export const AvailableSubnetsControl = ({
236
201
  }
237
202
  }, [supportsIPv6Primary, primaryNetworkCidr, IPv4Subnets, IPv6Subnets, allSubnets]);
238
203
 
204
+ // Autoselect values in case machineNetworks is empty
205
+ React.useEffect(() => {
206
+ if (!isViewerMode && values.machineNetworks?.length === 0 && primaryMachineSubnets.length) {
207
+ setFieldValue('machineNetworks', [{ cidr: primaryMachineSubnets[0].subnet, clusterId }]);
208
+ }
209
+ // Run only once
210
+ // eslint-disable-next-line react-hooks/exhaustive-deps
211
+ }, []);
212
+
239
213
  return (
240
214
  <>
241
215
  <FormGroup
@@ -252,9 +226,9 @@ export const AvailableSubnetsControl = ({
252
226
  name="machineNetworks.0.cidr"
253
227
  machineSubnets={primaryMachineSubnets}
254
228
  isDisabled={isDisabled}
255
- onAfterSelect={(newSelection) =>
256
- reorderNetworksForPrimary(newSelection, values, setFieldValue)
257
- }
229
+ onAfterSelect={(newSelection) => {
230
+ reorderNetworksForPrimary(newSelection, values, setFieldValue);
231
+ }}
258
232
  data-testid="subnets-dropdown-toggle-primary"
259
233
  />
260
234
  </StackItem>
@@ -42,7 +42,7 @@ export const ManagedNetworkingControlGroup = ({
42
42
  name={GROUP_NAME}
43
43
  isDisabled={disabled}
44
44
  value={'clusterManaged'}
45
- label={t('ai:Cluster-Managed Networking')}
45
+ label={t('ai:Cluster-managed networking')}
46
46
  />
47
47
  </SplitItem>
48
48
  </Split>
@@ -55,10 +55,10 @@ export const ManagedNetworkingControlGroup = ({
55
55
  value={'userManaged'}
56
56
  label={
57
57
  <>
58
- <span>{t('ai:User-Managed networking')}</span>{' '}
58
+ <span>{t('ai:User-managed networking')}</span>{' '}
59
59
  <PopoverIcon
60
60
  bodyContent={t(
61
- "ai:With User-Managed networking, you'll need to provide and configure a load balancer for the API and ingress endpoints.",
61
+ "ai:With user-managed networking, you'll need to provide and configure a load balancer for the API and ingress endpoints.",
62
62
  )}
63
63
  />
64
64
  </>