@openshift-assisted/ui-lib 2.52.2 → 2.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) 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/NetworkConfiguration.d.ts +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts.map +1 -1
  6. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
  8. package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts +5 -0
  9. package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts.map +1 -0
  10. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  11. package/build/@types/cim/components/ClusterDeployment/types.d.ts +0 -1
  12. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  13. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +4 -4
  14. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
  15. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  16. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +1 -1
  17. package/build/@types/cim/components/helpers/clusterDeployment.d.ts.map +1 -1
  18. package/build/@types/cim/components/helpers/versions.d.ts +2 -2
  19. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  20. package/build/@types/cim/components/helpers/versions.test.d.ts +2 -0
  21. package/build/@types/cim/components/helpers/versions.test.d.ts.map +1 -0
  22. package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
  23. package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts +14 -17
  24. package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
  25. package/build/@types/cim/hooks/index.d.ts +1 -0
  26. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  27. package/build/@types/cim/hooks/useAgents.d.ts +4 -0
  28. package/build/@types/cim/hooks/useAgents.d.ts.map +1 -0
  29. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +1 -1
  30. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  31. package/build/@types/common/components/clusterDetail/ClusterCredentials.d.ts.map +1 -1
  32. package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts +0 -5
  33. package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts.map +1 -1
  34. package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts +6 -0
  35. package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts.map +1 -0
  36. package/build/@types/common/components/clusterWizard/customManifests/index.d.ts +2 -0
  37. package/build/@types/common/components/clusterWizard/customManifests/index.d.ts.map +1 -0
  38. package/build/@types/common/components/clusterWizard/index.d.ts +2 -0
  39. package/build/@types/common/components/clusterWizard/index.d.ts.map +1 -1
  40. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +2 -1
  41. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  42. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +2 -1
  43. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -1
  44. package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts +3 -0
  45. package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts.map +1 -0
  46. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +1 -0
  47. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
  48. package/build/@types/common/components/hosts/HostsTable.d.ts.map +1 -1
  49. package/build/@types/common/components/ui/WizardFooter.d.ts +1 -0
  50. package/build/@types/common/components/ui/WizardFooter.d.ts.map +1 -1
  51. package/build/@types/common/components/ui/formik/utils.d.ts +1 -0
  52. package/build/@types/common/components/ui/formik/utils.d.ts.map +1 -1
  53. package/build/@types/common/config/constants.d.ts +2 -2
  54. package/build/@types/common/config/constants.d.ts.map +1 -1
  55. package/build/@types/common/types/networkType.d.ts +2 -1
  56. package/build/@types/common/types/networkType.d.ts.map +1 -1
  57. package/build/@types/common/validationSchemas/networkingValidation.d.ts +10 -0
  58. package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  60. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
  65. package/build/@types/ocm/components/clusterConfiguration/review/ReviewSummary.d.ts.map +1 -1
  66. package/build/@types/ocm/components/{clusterDetail/ClusterProperties.d.ts → clusterConfiguration/review/utils.d.ts} +1 -8
  67. package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts.map +1 -0
  68. package/build/@types/ocm/components/clusterConfiguration/review/utils.test.d.ts +2 -0
  69. package/build/@types/ocm/components/clusterConfiguration/review/utils.test.d.ts.map +1 -0
  70. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.d.ts.map +1 -1
  71. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts +1 -0
  72. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts +1 -1
  74. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts.map +1 -1
  75. package/build/@types/ocm/components/clusterDetail/ClusterDetailsButtonGroup.d.ts.map +1 -1
  76. package/build/@types/ocm/components/clusterDetail/index.d.ts +0 -1
  77. package/build/@types/ocm/components/clusterDetail/index.d.ts.map +1 -1
  78. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  79. package/build/@types/ocm/components/clusterWizard/HostDiscovery.d.ts.map +1 -1
  80. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts +5 -1
  81. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -1
  82. package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
  83. package/build/@types/ocm/components/hosts/HostsTableEmptyState.d.ts.map +1 -1
  84. package/build/@types/ocm/hooks/useClusterCustomManifests.d.ts.map +1 -1
  85. package/build/@types/ocm/hooks/useLateBinding.d.ts.map +1 -1
  86. package/build/@types/ocm/hooks/useUISettings.d.ts.map +1 -1
  87. package/build/@types/ocm/services/ClusterDetailsService.d.ts +2 -1
  88. package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
  89. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +9 -1
  90. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  91. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +46 -7
  92. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  93. package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js +22 -21
  94. package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -1
  95. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +25 -9
  96. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  97. package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js +35 -0
  98. package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js.map +1 -0
  99. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +4 -4
  100. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  101. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +13 -18
  102. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  103. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +5 -1
  104. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  105. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
  106. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
  107. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +1 -4
  108. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +1 -1
  109. package/build/cjs/cim/components/helpers/clusterDeployment.js +14 -10
  110. package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
  111. package/build/cjs/cim/components/helpers/versions.js +39 -28
  112. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  113. package/build/cjs/cim/components/helpers/versions.test.js +423 -0
  114. package/build/cjs/cim/components/helpers/versions.test.js.map +1 -0
  115. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +39 -16
  116. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
  117. package/build/cjs/cim/components/modals/CimConfiguration/persist.js +96 -136
  118. package/build/cjs/cim/components/modals/CimConfiguration/persist.js.map +1 -1
  119. package/build/cjs/cim/hooks/index.js +1 -0
  120. package/build/cjs/cim/hooks/index.js.map +1 -1
  121. package/build/cjs/cim/hooks/useAgents.js +13 -0
  122. package/build/cjs/cim/hooks/useAgents.js.map +1 -0
  123. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js +10 -9
  124. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
  125. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +1 -10
  126. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  127. package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js +32 -0
  128. package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js.map +1 -0
  129. package/build/cjs/common/components/clusterWizard/customManifests/index.js +5 -0
  130. package/build/cjs/common/components/clusterWizard/customManifests/index.js.map +1 -0
  131. package/build/cjs/common/components/clusterWizard/index.js +2 -0
  132. package/build/cjs/common/components/clusterWizard/index.js.map +1 -1
  133. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +8 -2
  134. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  135. package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js +2 -2
  136. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +29 -19
  137. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
  138. package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js +20 -0
  139. package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js.map +1 -0
  140. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +1 -0
  141. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
  142. package/build/cjs/common/components/hosts/HostsTable.js +2 -1
  143. package/build/cjs/common/components/hosts/HostsTable.js.map +1 -1
  144. package/build/cjs/common/components/ui/WizardFooter.js +6 -1
  145. package/build/cjs/common/components/ui/WizardFooter.js.map +1 -1
  146. package/build/cjs/common/components/ui/formik/utils.js +5 -1
  147. package/build/cjs/common/components/ui/formik/utils.js.map +1 -1
  148. package/build/cjs/common/config/constants.js +13 -2
  149. package/build/cjs/common/config/constants.js.map +1 -1
  150. package/build/cjs/common/types/networkType.js +9 -8
  151. package/build/cjs/common/types/networkType.js.map +1 -1
  152. package/build/cjs/common/validationSchemas/networkingValidation.js +19 -1
  153. package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -1
  154. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +4 -1
  155. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  156. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +1 -20
  157. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
  158. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +7 -6
  159. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  160. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js +6 -9
  161. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js.map +1 -1
  162. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +4 -4
  163. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  164. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.js +2 -2
  165. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.js.map +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +6 -5
  167. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
  168. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js +5 -2
  169. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js.map +1 -1
  170. package/build/cjs/ocm/components/clusterConfiguration/review/utils.js +57 -0
  171. package/build/cjs/ocm/components/clusterConfiguration/review/utils.js.map +1 -0
  172. package/build/cjs/ocm/components/{clusterDetail/ClusterProperties.test.js → clusterConfiguration/review/utils.test.js} +13 -13
  173. package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js.map +1 -0
  174. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js +2 -2
  175. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.js.map +1 -1
  177. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js +3 -7
  178. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js.map +1 -1
  179. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js +8 -2
  180. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js.map +1 -1
  181. package/build/cjs/ocm/components/clusterDetail/index.js +1 -3
  182. package/build/cjs/ocm/components/clusterDetail/index.js.map +1 -1
  183. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +10 -1
  184. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  185. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js +4 -1
  186. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
  187. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +2 -2
  188. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
  189. package/build/cjs/ocm/components/clusters/ClusterPage.js +1 -1
  190. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  191. package/build/cjs/ocm/components/clusters/ClustersTable.js +3 -2
  192. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  193. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
  194. package/build/cjs/ocm/components/hosts/HostsTableEmptyState.js +2 -1
  195. package/build/cjs/ocm/components/hosts/HostsTableEmptyState.js.map +1 -1
  196. package/build/cjs/ocm/hooks/useClusterCustomManifests.js +3 -15
  197. package/build/cjs/ocm/hooks/useClusterCustomManifests.js.map +1 -1
  198. package/build/cjs/ocm/hooks/useLateBinding.js +41 -26
  199. package/build/cjs/ocm/hooks/useLateBinding.js.map +1 -1
  200. package/build/cjs/ocm/hooks/usePullSecret.js +2 -2
  201. package/build/cjs/ocm/hooks/useUISettings.js +1 -1
  202. package/build/cjs/ocm/hooks/useUISettings.js.map +1 -1
  203. package/build/cjs/ocm/services/ClusterDetailsService.js +4 -2
  204. package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
  205. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +10 -2
  206. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +55 -6
  207. package/lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx +18 -2
  208. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +22 -8
  209. package/lib/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.tsx +81 -0
  210. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +18 -14
  211. package/lib/cim/components/ClusterDeployment/types.ts +0 -1
  212. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +14 -22
  213. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +5 -1
  214. package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +2 -2
  215. package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +2 -5
  216. package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
  217. package/lib/cim/components/helpers/versions.test.ts +465 -0
  218. package/lib/cim/components/helpers/versions.ts +37 -31
  219. package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +45 -18
  220. package/lib/cim/components/modals/CimConfiguration/persist.ts +97 -199
  221. package/lib/cim/hooks/index.tsx +1 -0
  222. package/lib/cim/hooks/useAgents.tsx +15 -0
  223. package/lib/cim/types/k8s/agent-cluster-install.ts +1 -1
  224. package/lib/common/components/clusterDetail/ClusterCredentials.tsx +49 -53
  225. package/lib/common/components/clusterDetail/ConsoleModal.tsx +0 -35
  226. package/lib/common/components/clusterWizard/customManifests/CustomManifestsAlert.tsx +39 -0
  227. package/lib/common/components/clusterWizard/customManifests/index.tsx +1 -0
  228. package/lib/common/components/clusterWizard/index.ts +2 -0
  229. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +8 -1
  230. package/lib/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.tsx +2 -2
  231. package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +36 -26
  232. package/lib/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.tsx +28 -0
  233. package/lib/common/components/clusterWizard/networkingSteps/index.ts +1 -0
  234. package/lib/common/components/hosts/HostsTable.tsx +2 -0
  235. package/lib/common/components/ui/WizardFooter.tsx +10 -0
  236. package/lib/common/components/ui/formik/utils.ts +6 -0
  237. package/lib/common/config/constants.ts +14 -1
  238. package/lib/common/types/networkType.ts +9 -8
  239. package/lib/common/validationSchemas/networkingValidation.tsx +39 -1
  240. package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +6 -3
  241. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +10 -45
  242. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +11 -9
  243. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.tsx +7 -24
  244. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -5
  245. package/lib/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.tsx +1 -1
  246. package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +10 -4
  247. package/lib/ocm/components/clusterConfiguration/review/ReviewSummary.tsx +9 -2
  248. package/lib/ocm/components/{clusterDetail/ClusterProperties.test.ts → clusterConfiguration/review/utils.test.ts} +1 -1
  249. package/lib/ocm/components/clusterConfiguration/review/utils.tsx +61 -0
  250. package/lib/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.ts +2 -0
  251. package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.ts +1 -0
  252. package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.ts +2 -0
  253. package/lib/ocm/components/clusterDetail/ClusterDetailsButtonGroup.tsx +27 -2
  254. package/lib/ocm/components/clusterDetail/index.ts +0 -1
  255. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +10 -1
  256. package/lib/ocm/components/clusterWizard/HostDiscovery.tsx +4 -0
  257. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +6 -2
  258. package/lib/ocm/components/clusters/ClusterPage.tsx +1 -1
  259. package/lib/ocm/components/clusters/ClustersTable.tsx +59 -49
  260. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
  261. package/lib/ocm/components/hosts/HostsTableEmptyState.tsx +2 -0
  262. package/lib/ocm/hooks/useClusterCustomManifests.ts +3 -0
  263. package/lib/ocm/hooks/useLateBinding.ts +45 -24
  264. package/lib/ocm/hooks/usePullSecret.ts +2 -2
  265. package/lib/ocm/hooks/useUISettings.ts +3 -1
  266. package/lib/ocm/services/ClusterDetailsService.ts +6 -0
  267. package/package.json +9 -9
  268. package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts +0 -7
  269. package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts.map +0 -1
  270. package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts +0 -8
  271. package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts.map +0 -1
  272. package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +0 -1
  273. package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts +0 -2
  274. package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts.map +0 -1
  275. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +0 -33
  276. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +0 -1
  277. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +0 -40
  278. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +0 -1
  279. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +0 -77
  280. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +0 -1
  281. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.test.js.map +0 -1
  282. package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +0 -74
  283. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +0 -69
  284. package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +0 -169
@@ -1,4 +1,4 @@
1
- import { useCallback, useEffect, useState } from 'react';
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
2
  import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
3
3
  import { CpuArchitecture, useAlerts } from '../../common';
4
4
  import useInfraEnvHosts from './useInfraEnvHosts';
@@ -6,10 +6,15 @@ import HostsService from '../services/HostsService';
6
6
  import { getErrorMessage } from '../../common/utils';
7
7
  import { useFeature } from './use-feature';
8
8
 
9
+ const MAX_BIND_RETRY_ATTEMPTS = 3;
10
+
9
11
  const useLateBinding = (cluster: Cluster): boolean => {
10
12
  const [isBinding, setIsBinding] = useState(false);
11
13
  const { addAlert, removeAlert, alerts } = useAlerts();
12
14
  const isSingleClusterFeatureEnabled = useFeature('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
15
+ const bindFailureCounts = useRef<Map<string, number>>(new Map());
16
+ const alertsRef = useRef(alerts);
17
+ alertsRef.current = alerts;
13
18
 
14
19
  const {
15
20
  hosts: infraEnvHosts,
@@ -25,38 +30,54 @@ const useLateBinding = (cluster: Cluster): boolean => {
25
30
  cluster.openshiftVersion,
26
31
  );
27
32
 
28
- const bindHosts = useCallback(async () => {
29
- if (infraEnvHosts && !infraEnvError && !infraEnvLoading && isSingleClusterFeatureEnabled) {
30
- for (const host of infraEnvHosts) {
31
- if (host.clusterId !== cluster.id) {
32
- setIsBinding(true);
33
- try {
34
- const alertKey = alerts.find((alert) => alert.key === host.id)?.key;
35
- if (alertKey) {
36
- removeAlert(alertKey);
37
- }
38
- await HostsService.bind(host, cluster.id);
39
- } catch (error) {
40
- addAlert({
41
- title: `Failed to bind host ${host.requestedHostname || ''}`,
42
- message: getErrorMessage(error),
43
- key: host.id,
44
- });
45
- } finally {
46
- setIsBinding(false);
47
- }
33
+ const bindSingleHost = useCallback(
34
+ async (host: NonNullable<typeof infraEnvHosts>[number]) => {
35
+ setIsBinding(true);
36
+ try {
37
+ await HostsService.bind(host, cluster.id);
38
+ // Binding succeeded: reset the failure counter and clear any alert that
39
+ // was shown after previous exhausted retries.
40
+ bindFailureCounts.current.delete(host.id);
41
+ const alertKey = alertsRef.current.find((alert) => alert.key === host.id)?.key;
42
+ if (alertKey) {
43
+ removeAlert(alertKey);
48
44
  }
45
+ } catch (error) {
46
+ const failureCount = (bindFailureCounts.current.get(host.id) ?? 0) + 1;
47
+ bindFailureCounts.current.set(host.id, failureCount);
48
+
49
+ // Suppress transient errors (e.g. 5xx during self-healing) and only
50
+ // surface the alert once silent retries have been exhausted.
51
+ if (failureCount >= MAX_BIND_RETRY_ATTEMPTS) {
52
+ addAlert({
53
+ title: `Failed to bind host ${host.requestedHostname || ''}`,
54
+ message: getErrorMessage(error),
55
+ key: host.id,
56
+ });
57
+ }
58
+ } finally {
59
+ setIsBinding(false);
60
+ }
61
+ },
62
+ [cluster.id, addAlert, removeAlert],
63
+ );
64
+
65
+ const bindHosts = useCallback(async () => {
66
+ if (!infraEnvHosts || infraEnvError || infraEnvLoading || !isSingleClusterFeatureEnabled) {
67
+ return;
68
+ }
69
+ for (const host of infraEnvHosts) {
70
+ if (host.clusterId !== cluster.id) {
71
+ await bindSingleHost(host);
49
72
  }
50
73
  }
51
- // eslint-disable-next-line react-hooks/exhaustive-deps
52
74
  }, [
53
75
  infraEnvHosts,
54
76
  infraEnvError,
55
77
  infraEnvLoading,
56
78
  isSingleClusterFeatureEnabled,
57
79
  cluster.id,
58
- addAlert,
59
- removeAlert,
80
+ bindSingleHost,
60
81
  ]);
61
82
 
62
83
  useEffect(() => {
@@ -4,8 +4,8 @@ import { useAlerts } from '../../common';
4
4
  import { AccessTokenAPI } from '../../common/api/accounts-management-service/access-token-api';
5
5
 
6
6
  /**
7
- * Standalone / disconnected UI: bridge serves GET /pull-secret from a mounted manifest
8
- * (see assisted-disconnected-ui proxy).
7
+ * Standalone / disconnected UI: proxy serves GET /api/pull-secret with pull-secret JSON
8
+ * `{ "auths": … }` extracted from the mounted Secret manifest (see assisted-disconnected-ui proxy).
9
9
  */
10
10
  async function fetchPullSecretFromBridge(): Promise<string | undefined> {
11
11
  const res = await fetch('/api/pull-secret', { credentials: 'same-origin' });
@@ -31,7 +31,9 @@ const useUISettings = (clusterId?: Cluster['id']) => {
31
31
  const { data: customManifests } = await ClustersAPI.getManifests(clusterId);
32
32
 
33
33
  const mockUISettings: UISettingsValues = {
34
- customManifestsAdded: !!customManifests.length,
34
+ customManifestsAdded: customManifests.some(
35
+ (manifest) => manifest.manifestSource === 'user',
36
+ ),
35
37
  };
36
38
 
37
39
  setUISettings(mockUISettings);
@@ -127,6 +127,7 @@ const ClusterDetailsService = {
127
127
  cluster,
128
128
  infraEnv,
129
129
  urlSearchParams,
130
+ isSingleClusterFeatureEnabled,
130
131
  ...args
131
132
  }: {
132
133
  cluster?: Cluster;
@@ -135,6 +136,7 @@ const ClusterDetailsService = {
135
136
  managedDomains: ManagedDomain[];
136
137
  ocpVersions: OpenshiftVersionOptionType[];
137
138
  urlSearchParams: string;
139
+ isSingleClusterFeatureEnabled?: boolean;
138
140
  }): OcmClusterDetailsValues {
139
141
  const values = getClusterDetailsInitialValues({
140
142
  cluster,
@@ -149,8 +151,12 @@ const ClusterDetailsService = {
149
151
  ? HostsNetworkConfigurationType.STATIC
150
152
  : HostsNetworkConfigurationType.DHCP;
151
153
 
154
+ const platform =
155
+ isSingleClusterFeatureEnabled && !cluster ? ('none' as PlatformType) : values.platform;
156
+
152
157
  return {
153
158
  ...values,
159
+ platform,
154
160
  cpuArchitecture,
155
161
  hostsNetworkConfigurationType,
156
162
  isCMNSupported: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@openshift-assisted/locales": "2.52.2",
4
- "@openshift-assisted/types": "2.52.2",
3
+ "@openshift-assisted/locales": "2.53.0",
4
+ "@openshift-assisted/types": "2.53.0",
5
5
  "@openshift-console/dynamic-plugin-sdk": "^4.19.1",
6
6
  "@patternfly/patternfly": "6.4.0",
7
7
  "@patternfly/react-code-editor": "6.4.1",
@@ -21,7 +21,7 @@
21
21
  "fuse.js": "^6.4.6",
22
22
  "human-date": "^1.4.0",
23
23
  "humanize-plus": "^1.8.2",
24
- "ip-address": "^7.1.0",
24
+ "ip-address": "^10.1.1",
25
25
  "is-cidr": "^4.0.2",
26
26
  "is-in-subnet": "^4",
27
27
  "js-yaml": "^4.1.1",
@@ -46,10 +46,10 @@
46
46
  "@types/react-autosuggest": "^10.1.5",
47
47
  "@types/react-dom": "18.2.15",
48
48
  "@types/react-redux": "^7.1.7",
49
- "@types/uuid": "^8.0.0"
49
+ "@types/uuid": "^11.0.0"
50
50
  },
51
51
  "engines": {
52
- "node": ">=14"
52
+ "node": ">=20.19.0"
53
53
  },
54
54
  "exports": {
55
55
  ".": {
@@ -89,9 +89,9 @@
89
89
  "license": "Apache-2.0",
90
90
  "name": "@openshift-assisted/ui-lib",
91
91
  "peerDependencies": {
92
- "@reduxjs/toolkit": "^1.9.1",
92
+ "@reduxjs/toolkit": "^1.9.7",
93
93
  "@sentry/browser": "^5.9 || ^6",
94
- "axios": "^1.13.5",
94
+ "axios": "^1.15.2",
95
95
  "i18next": "^20.4 || ^21",
96
96
  "monaco-editor": "^0.44.0 || ^0.55.0",
97
97
  "react": "^18",
@@ -100,7 +100,7 @@
100
100
  "react-monaco-editor": "^0.55.0 || ^0.59.0",
101
101
  "react-redux": "^8.0.5",
102
102
  "react-router-dom-v5-compat": "^6.30.3",
103
- "redux": "^4",
103
+ "redux": "^4.2.1",
104
104
  "uuid": "^8.1",
105
105
  "yup": "^1.4.0"
106
106
  },
@@ -136,5 +136,5 @@
136
136
  ]
137
137
  }
138
138
  },
139
- "version": "2.52.2"
139
+ "version": "2.53.0"
140
140
  }
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface NetworkTypeControlGroupProps {
3
- isDisabled?: boolean;
4
- isSDNSelectable: boolean;
5
- }
6
- export declare const NetworkTypeControlGroup: ({ isDisabled, isSDNSelectable, }: NetworkTypeControlGroupProps) => React.JSX.Element;
7
- //# sourceMappingURL=NetworkTypeControlGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkTypeControlGroup.d.ts","sourceRoot":"","sources":["../../../../../../lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,uBAAuB,GAAI,kCAGrC,4BAA4B,sBAwD9B,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { FeatureListType } from '../../../common';
3
- type AssistedInstallerExtraDetailCardProps = {
4
- allEnabledFeatures: FeatureListType;
5
- };
6
- declare const Wrapper: React.FC<AssistedInstallerExtraDetailCardProps>;
7
- export default Wrapper;
8
- //# sourceMappingURL=AssistedInstallerExtraDetailCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssistedInstallerExtraDetailCard.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAA0C,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAU1F,KAAK,qCAAqC,GAAG;IAC3C,kBAAkB,EAAE,eAAe,CAAC;CACrC,CAAC;AAuCF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,qCAAqC,CAU5D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClusterProperties.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ClusterProperties.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAE/F,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,oBAAoB,OAAO,CAAC,aAAa,CAAC,KAAG,MAE3E,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,2BAA2B,OAAO,KAAG,MAMtE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,MACP,CAAC;AAE/C,eAAO,MAAM,gCAAgC,GAAI,gBAAgB,cAAc,CAAC,UAAU,CAAC,6BAoB1F,CAAC;AAEF,QAAA,MAAM,iBAAiB,GAAI,2BAAmC,sBAAsB,sBAwGnF,CAAC;AACF,eAAe,iBAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ClusterProperties.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClusterProperties.test.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ClusterProperties.test.ts"],"names":[],"mappings":""}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NetworkTypeControlGroup = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const react_core_1 = require("@patternfly/react-core");
7
- const formik_1 = require("../../ui/formik");
8
- const ui_1 = require("../../../components/ui");
9
- const networkType_1 = require("../../../types/networkType");
10
- const use_translation_wrapper_1 = require("../../../hooks/use-translation-wrapper");
11
- const GROUP_NAME = 'networkType';
12
- const NetworkTypeControlGroup = ({ isDisabled = false, isSDNSelectable, }) => {
13
- const { t } = (0, use_translation_wrapper_1.useTranslation)();
14
- return (react_1.default.createElement(react_core_1.FormGroup, { isInline: true, fieldId: GROUP_NAME, label: t('ai:Network type') },
15
- react_1.default.createElement(react_core_1.Split, null,
16
- react_1.default.createElement(react_core_1.SplitItem, null,
17
- react_1.default.createElement(react_core_1.Tooltip, { hidden: isSDNSelectable, content: t('ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.') },
18
- react_1.default.createElement(formik_1.RadioField, { id: GROUP_NAME, name: GROUP_NAME, isDisabled: isDisabled || !isSDNSelectable, value: networkType_1.NETWORK_TYPE_OVN, label: react_1.default.createElement(react_1.default.Fragment, null,
19
- t('ai:Open Virtual Networking (OVN)'),
20
- "\u00A0") }))),
21
- react_1.default.createElement(react_core_1.SplitItem, null,
22
- react_1.default.createElement(ui_1.PopoverIcon, { bodyContent: t("ai:OVN separates the physical network topology from the logical one and is recommended if you're using new or telco features."), buttonStyle: { top: '-4px' } }))),
23
- react_1.default.createElement(react_core_1.Split, null,
24
- react_1.default.createElement(react_core_1.SplitItem, null,
25
- react_1.default.createElement(react_core_1.Tooltip, { hidden: isSDNSelectable, content: t('ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.') },
26
- react_1.default.createElement(formik_1.RadioField, { id: GROUP_NAME, name: GROUP_NAME, isDisabled: isDisabled || !isSDNSelectable, value: networkType_1.NETWORK_TYPE_SDN, label: react_1.default.createElement(react_1.default.Fragment, null,
27
- t('ai:Software-Defined Networking (SDN)'),
28
- "\u00A0") }))),
29
- react_1.default.createElement(react_core_1.SplitItem, null,
30
- react_1.default.createElement(ui_1.PopoverIcon, { bodyContent: t('ai:The classic bullet-proof networking type'), buttonStyle: { top: '-4px' } })))));
31
- };
32
- exports.NetworkTypeControlGroup = NetworkTypeControlGroup;
33
- //# sourceMappingURL=NetworkTypeControlGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkTypeControlGroup.js","sourceRoot":"","sources":["../../../../../../lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA8E;AAC9E,4CAA6C;AAC7C,+CAAqD;AACrD,4DAAgF;AAChF,oFAAwE;AAExE,MAAM,UAAU,GAAG,aAAa,CAAC;AAO1B,MAAM,uBAAuB,GAAG,CAAC,EACtC,UAAU,GAAG,KAAK,EAClB,eAAe,GACc,EAAE,EAAE;IACjC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,OAAO,CACL,8BAAC,sBAAS,IAAC,QAAQ,QAAC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,iBAAiB,CAAC;QAClE,8BAAC,kBAAK;YACJ,8BAAC,sBAAS;gBACR,8BAAC,oBAAO,IACN,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,CAAC,CACR,uFAAuF,CACxF;oBAED,8BAAC,mBAAU,IACT,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,IAAI,CAAC,eAAe,EAC1C,KAAK,EAAE,8BAAgB,EACvB,KAAK,EAAE;4BAAG,CAAC,CAAC,kCAAkC,CAAC;qCAAU,GACzD,CACM,CACA;YACZ,8BAAC,sBAAS;gBACR,8BAAC,gBAAW,IACV,WAAW,EAAE,CAAC,CACZ,+HAA+H,CAChI,EACD,WAAW,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAC5B,CACQ,CACN;QACR,8BAAC,kBAAK;YACJ,8BAAC,sBAAS;gBACR,8BAAC,oBAAO,IACN,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,CAAC,CACR,uFAAuF,CACxF;oBAED,8BAAC,mBAAU,IACT,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,IAAI,CAAC,eAAe,EAC1C,KAAK,EAAE,8BAAgB,EACvB,KAAK,EAAE;4BAAG,CAAC,CAAC,sCAAsC,CAAC;qCAAU,GAC7D,CACM,CACA;YACZ,8BAAC,sBAAS;gBACR,8BAAC,gBAAW,IACV,WAAW,EAAE,CAAC,CAAC,6CAA6C,CAAC,EAC7D,WAAW,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAC5B,CACQ,CACN,CACE,CACb,CAAC;AACJ,CAAC,CAAC;AA3DW,QAAA,uBAAuB,2BA2DlC"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
5
- const react_redux_1 = require("react-redux");
6
- const store_1 = require("../../store");
7
- const react_redux_2 = require("react-redux");
8
- const common_1 = require("../../../common");
9
- const ClusterProperties_1 = tslib_1.__importDefault(require("./ClusterProperties"));
10
- const react_core_1 = require("@patternfly/react-core");
11
- const featureSupportLevels_1 = require("../featureSupportLevels");
12
- const useInfraEnv_1 = tslib_1.__importDefault(require("../../hooks/useInfraEnv"));
13
- const hooks_1 = require("../../hooks");
14
- const selectors_1 = require("../../store/slices/current-cluster/selectors");
15
- const use_feature_detection_1 = require("../../hooks/use-feature-detection");
16
- const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
17
- const AssistedInstallerExtraDetailCard = ({ allEnabledFeatures, }) => {
18
- var _a;
19
- (0, use_feature_detection_1.useFeatureDetection)(allEnabledFeatures);
20
- const { data: cluster } = (0, react_redux_2.useSelector)(selectors_1.selectCurrentClusterState);
21
- const pullSecret = (0, hooks_1.usePullSecret)();
22
- const { infraEnv } = (0, useInfraEnv_1.default)((cluster === null || cluster === void 0 ? void 0 : cluster.id) ? cluster === null || cluster === void 0 ? void 0 : cluster.id : '', (cluster === null || cluster === void 0 ? void 0 : cluster.cpuArchitecture)
23
- ? cluster.cpuArchitecture
24
- : common_1.CpuArchitecture.USE_DAY1_ARCHITECTURE, cluster === null || cluster === void 0 ? void 0 : cluster.name, pullSecret, cluster === null || cluster === void 0 ? void 0 : cluster.openshiftVersion);
25
- if (!cluster || cluster.status === 'adding-hosts') {
26
- return null;
27
- }
28
- return (react_1.default.createElement(common_1.AlertsContextProvider, null,
29
- react_1.default.createElement(featureSupportLevels_1.NewFeatureSupportLevelProvider, { loadingUi: react_1.default.createElement("div", null), cluster: cluster, cpuArchitecture: infraEnv === null || infraEnv === void 0 ? void 0 : infraEnv.cpuArchitecture, openshiftVersion: cluster.openshiftVersion, platformType: (_a = cluster.platform) === null || _a === void 0 ? void 0 : _a.type },
30
- react_1.default.createElement(react_core_1.Grid, { className: "pf-v6-u-mt-md" },
31
- react_1.default.createElement(ClusterProperties_1.default, { cluster: cluster, externalMode: true })))));
32
- };
33
- const Wrapper = (props) => {
34
- return (react_1.default.createElement(react_redux_1.Provider, { store: store_1.storeDay1 },
35
- react_1.default.createElement(common_1.AlertsContextProvider, null,
36
- react_1.default.createElement(OpenShiftVersionsContext_1.OpenShiftVersionsContextProvider, null,
37
- react_1.default.createElement(AssistedInstallerExtraDetailCard, Object.assign({}, props))))));
38
- };
39
- exports.default = Wrapper;
40
- //# sourceMappingURL=AssistedInstallerExtraDetailCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssistedInstallerExtraDetailCard.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAAuC;AACvC,uCAAwC;AACxC,6CAA0C;AAE1C,4CAA0F;AAC1F,oFAAoD;AACpD,uDAA8C;AAC9C,kEAAyE;AACzE,kFAAkD;AAClD,uCAA4C;AAC5C,4EAAyF;AACzF,6EAAwE;AACxE,wFAA6F;AAM7F,MAAM,gCAAgC,GAAoD,CAAC,EACzF,kBAAkB,GACnB,EAAE,EAAE;;IACH,IAAA,2CAAmB,EAAC,kBAAkB,CAAC,CAAC;IACxC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAA,yBAAW,EAAC,qCAAyB,CAAC,CAAC;IACjE,MAAM,UAAU,GAAG,IAAA,qBAAa,GAAE,CAAC;IACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,qBAAW,EAC9B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,EAAC,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAC9B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe;QACtB,CAAC,CAAE,OAAO,CAAC,eAAmC;QAC9C,CAAC,CAAC,wBAAe,CAAC,qBAAqB,EACzC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EACb,UAAU,EACV,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,CAC1B,CAAC;IAEF,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,cAAc,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,8BAAC,8BAAqB;QACpB,8BAAC,qDAA8B,IAC7B,SAAS,EAAE,0CAAO,EAClB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,eAAkC,EAC7D,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAC1C,YAAY,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAI;YAEpC,8BAAC,iBAAI,IAAC,SAAS,EAAC,eAAe;gBAC7B,8BAAC,2BAAiB,IAAC,OAAO,EAAE,OAAO,EAAE,YAAY,SAAG,CAC/C,CACwB,CACX,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,OAAO,GAAoD,CAAC,KAAK,EAAE,EAAE;IACzE,OAAO,CACL,8BAAC,sBAAQ,IAAC,KAAK,EAAE,iBAAS;QACxB,8BAAC,8BAAqB;YACpB,8BAAC,2DAAgC;gBAC/B,8BAAC,gCAAgC,oBAAK,KAAK,EAAI,CACd,CACb,CACf,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDiskEncryptionEnabledOnStatus = exports.getStackTypeLabel = exports.getManagementType = exports.getNetworkType = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const react_core_1 = require("@patternfly/react-core");
7
- const common_1 = require("../../../common");
8
- const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
9
- const featureSupportLevels_1 = require("../featureSupportLevels");
10
- const OpenShiftVersionDetail_1 = tslib_1.__importDefault(require("./OpenShiftVersionDetail"));
11
- const newFeatureSupportLevels_1 = require("../../../common/components/newFeatureSupportLevels");
12
- const getNetworkType = (clusterNetworkType) => {
13
- return common_1.NETWORK_TYPE_LABELS[clusterNetworkType || ''];
14
- };
15
- exports.getNetworkType = getNetworkType;
16
- const getManagementType = ({ userManagedNetworking }) => {
17
- let managementType;
18
- userManagedNetworking
19
- ? (managementType = 'User-Managed Networking')
20
- : (managementType = 'Cluster-managed networking');
21
- return managementType;
22
- };
23
- exports.getManagementType = getManagementType;
24
- const getStackTypeLabel = (cluster) => (0, common_1.isDualStack)(cluster) ? 'Dual-stack' : 'IPv4';
25
- exports.getStackTypeLabel = getStackTypeLabel;
26
- const getDiskEncryptionEnabledOnStatus = (diskEncryption) => {
27
- let diskEncryptionType = null;
28
- switch (diskEncryption) {
29
- case 'all':
30
- diskEncryptionType = (react_1.default.createElement(react_1.default.Fragment, null,
31
- "Enabled on control plane nodes",
32
- react_1.default.createElement("br", null),
33
- "Enabled on workers"));
34
- break;
35
- case 'masters':
36
- diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on control plane nodes");
37
- break;
38
- case 'workers':
39
- diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on workers");
40
- break;
41
- }
42
- return diskEncryptionType;
43
- };
44
- exports.getDiskEncryptionEnabledOnStatus = getDiskEncryptionEnabledOnStatus;
45
- const ClusterProperties = ({ cluster, externalMode = false }) => {
46
- var _a, _b;
47
- const { t } = (0, use_translation_wrapper_1.useTranslation)();
48
- const isDualStackType = (0, common_1.isDualStack)(cluster);
49
- const featureSupportLevelContext = (0, newFeatureSupportLevels_1.useNewFeatureSupportLevel)();
50
- const activeFeatureConfiguration = featureSupportLevelContext.activeFeatureConfiguration;
51
- const underlyingCpuArchitecture = (activeFeatureConfiguration === null || activeFeatureConfiguration === void 0 ? void 0 : activeFeatureConfiguration.underlyingCpuArchitecture) || (0, common_1.getDefaultCpuArchitecture)();
52
- return (react_1.default.createElement(react_1.default.Fragment, null,
53
- !externalMode && (react_1.default.createElement(react_core_1.GridItem, null,
54
- react_1.default.createElement(react_core_1.Content, { component: "h2" }, t('ai:Cluster Details')))),
55
- react_1.default.createElement(react_core_1.GridItem, { md: 6, "data-testid": "cluster-details" },
56
- react_1.default.createElement(common_1.DetailList, null,
57
- externalMode ? undefined : (react_1.default.createElement(common_1.DetailItem, { title: t('ai:OpenShift version'), value: react_1.default.createElement(OpenShiftVersionDetail_1.default, { cluster: cluster }), testId: "openshift-version" })),
58
- react_1.default.createElement(common_1.DetailItem, { title: "Base domain", value: cluster.baseDnsDomain, testId: "base-dns-domain" }),
59
- react_1.default.createElement(common_1.DetailItem, { title: 'CPU architecture ', value: underlyingCpuArchitecture, testId: "cpu-architecture" }),
60
- react_1.default.createElement(common_1.DetailItem, { title: "API IP", value: (0, common_1.selectApiVip)(cluster), isHidden: (0, common_1.selectApiVip)(cluster) === '', testId: "api-vip" }),
61
- react_1.default.createElement(common_1.DetailItem, { title: "Ingress IP", value: (0, common_1.selectIngressVip)(cluster), isHidden: (0, common_1.selectIngressVip)(cluster) === '', testId: "ingress-vip" }),
62
- react_1.default.createElement(common_1.DetailItem, { title: "Network management type", value: (0, exports.getManagementType)(cluster), testId: "network-management-type" }),
63
- react_1.default.createElement(common_1.DetailItem, { title: "Networking Type", value: (0, exports.getNetworkType)(cluster.networkType), testId: "networking-type" }))),
64
- react_1.default.createElement(react_core_1.GridItem, { md: 6 },
65
- react_1.default.createElement(common_1.DetailList, null,
66
- react_1.default.createElement(common_1.DetailItem, { title: "Cluster network CIDR (IPv4)", value: (0, common_1.selectIpv4Cidr)(cluster, 'clusterNetworks'), testId: "cluster-network-cidr-ipv4" }),
67
- react_1.default.createElement(common_1.DetailItem, { title: "Cluster network host prefix (IPv4)", value: (0, common_1.selectIpv4HostPrefix)(cluster), testId: "host-prefix-ipv4" }),
68
- isDualStackType ? (react_1.default.createElement(react_1.default.Fragment, null,
69
- react_1.default.createElement(common_1.DetailItem, { title: "Cluster network CIDR (IPv6)", value: (0, common_1.selectIpv6Cidr)(cluster, 'clusterNetworks'), testId: "cluster-network-cidr-ipv6" }),
70
- react_1.default.createElement(common_1.DetailItem, { title: "Cluster network host prefix (IPv6)", value: (0, common_1.selectIpv6HostPrefix)(cluster), testId: "host-prefix-ipv6" }))) : undefined,
71
- react_1.default.createElement(common_1.DetailItem, { title: "Service network CIDR (IPv4)", value: (0, common_1.selectIpv4Cidr)(cluster, 'serviceNetworks'), testId: "service-network-cidr-ipv4" }),
72
- isDualStackType ? (react_1.default.createElement(common_1.DetailItem, { title: "Service network CIDR (IPv6)", value: (0, common_1.selectIpv6Cidr)(cluster, 'serviceNetworks'), testId: "service-network-cidr-ipv6" })) : undefined,
73
- react_1.default.createElement(common_1.DetailItem, { title: "Disk encryption", value: (0, exports.getDiskEncryptionEnabledOnStatus)((_a = cluster.diskEncryption) === null || _a === void 0 ? void 0 : _a.enableOn), isHidden: ((_b = cluster.diskEncryption) === null || _b === void 0 ? void 0 : _b.enableOn) === 'none', testId: "disk-encryption" }),
74
- react_1.default.createElement(featureSupportLevels_1.ClusterFeatureSupportLevelsDetailItem, { cluster: cluster })))));
75
- };
76
- exports.default = ClusterProperties;
77
- //# sourceMappingURL=ClusterProperties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClusterProperties.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ClusterProperties.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA2D;AAC3D,4CAYyB;AACzB,2FAA+E;AAC/E,kEAAgF;AAChF,8FAA8D;AAC9D,gGAA+F;AAQxF,MAAM,cAAc,GAAG,CAAC,kBAA0C,EAAU,EAAE;IACnF,OAAO,4BAAmB,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;AACvD,CAAC,CAAC;AAFW,QAAA,cAAc,kBAEzB;AAEK,MAAM,iBAAiB,GAAG,CAAC,EAAE,qBAAqB,EAAW,EAAU,EAAE;IAC9E,IAAI,cAAsB,CAAC;IAC3B,qBAAqB;QACnB,CAAC,CAAC,CAAC,cAAc,GAAG,yBAAyB,CAAC;QAC9C,CAAC,CAAC,CAAC,cAAc,GAAG,4BAA4B,CAAC,CAAC;IACpD,OAAO,cAAc,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,8BAAC,4DAAqC,IAAC,OAAO,EAAE,OAAO,GAAI,CAChD,CACJ,CACV,CACJ,CAAC;AACJ,CAAC,CAAC;AACF,kBAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClusterProperties.test.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ClusterProperties.test.ts"],"names":[],"mappings":";;AAAA,mCAAgD;AAChD,2DAAwD;AAGxD,MAAM,aAAa,GAAG,CAAC,YAA8B,EAAE,EAAW,EAAE,CAClE,CAAC,gBACC,EAAE,EAAE,cAAc,EAClB,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,gDAAgD,EACtD,gBAAgB,EAAE,MAAM,EACxB,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,kBAAkB,EAC9B,eAAe,EAAE,EAAE,EACnB,eAAe,EAAE,EAAE,EACnB,eAAe,EAAE,EAAE,IAChB,SAAS,CACD,CAAA,CAAC;AAEhB,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;AAC7E,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,UAAkB,EAAE,EAAE,CAAC,CAAC;IAClE,IAAI;IACJ,UAAU;IACV,SAAS,EAAE,MAAM;CAClB,CAAC,CAAC;AACH,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;AAE7E,IAAA,iBAAQ,EAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,IAAA,iBAAQ,EAAC,8BAA8B,EAAE,GAAG,EAAE;QAC5C,IAAA,aAAI,EAAC,6DAA6D,EAAE,GAAG,EAAE;YACvE,MAAM,OAAO,GAAG,aAAa,CAAC;gBAC5B,gBAAgB,EAAE,MAAM;gBACxB,eAAe,EAAE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AM;gBACxB,eAAe,EAAE,EAAE;gBACnB,eAAe,EAAE,EAAE;gBACnB,eAAe,EAAE,EAAE;aACpB,CAAC,CAAC;YAEH,IAAA,eAAM,EAAC,IAAA,qCAAiB,EAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,IAAA,aAAI,EAAC,4BAA4B,EAAE,GAAG,EAAE;YACtC,MAAM,OAAO,GAAG,aAAa,CAAC;gBAC5B,gBAAgB,EAAE,MAAM;gBACxB,eAAe,EAAE,SAAS;gBAC1B,eAAe,EAAE,SAAS;gBAC1B,eAAe,EAAE,SAAS;aAC3B,CAAC,CAAC;YAEH,IAAA,eAAM,EAAC,IAAA,qCAAiB,EAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,74 +0,0 @@
1
- import React from 'react';
2
- import { Split, SplitItem, Tooltip, FormGroup } from '@patternfly/react-core';
3
- import { RadioField } from '../../ui/formik';
4
- import { PopoverIcon } from '../../../components/ui';
5
- import { NETWORK_TYPE_OVN, NETWORK_TYPE_SDN } from '../../../types/networkType';
6
- import { useTranslation } from '../../../hooks/use-translation-wrapper';
7
-
8
- const GROUP_NAME = 'networkType';
9
-
10
- export interface NetworkTypeControlGroupProps {
11
- isDisabled?: boolean;
12
- isSDNSelectable: boolean;
13
- }
14
-
15
- export const NetworkTypeControlGroup = ({
16
- isDisabled = false,
17
- isSDNSelectable,
18
- }: NetworkTypeControlGroupProps) => {
19
- const { t } = useTranslation();
20
- return (
21
- <FormGroup isInline fieldId={GROUP_NAME} label={t('ai:Network type')}>
22
- <Split>
23
- <SplitItem>
24
- <Tooltip
25
- hidden={isSDNSelectable}
26
- content={t(
27
- 'ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.',
28
- )}
29
- >
30
- <RadioField
31
- id={GROUP_NAME}
32
- name={GROUP_NAME}
33
- isDisabled={isDisabled || !isSDNSelectable}
34
- value={NETWORK_TYPE_OVN}
35
- label={<>{t('ai:Open Virtual Networking (OVN)')}&nbsp;</>}
36
- />
37
- </Tooltip>
38
- </SplitItem>
39
- <SplitItem>
40
- <PopoverIcon
41
- bodyContent={t(
42
- "ai:OVN separates the physical network topology from the logical one and is recommended if you're using new or telco features.",
43
- )}
44
- buttonStyle={{ top: '-4px' }}
45
- />
46
- </SplitItem>
47
- </Split>
48
- <Split>
49
- <SplitItem>
50
- <Tooltip
51
- hidden={isSDNSelectable}
52
- content={t(
53
- 'ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.',
54
- )}
55
- >
56
- <RadioField
57
- id={GROUP_NAME}
58
- name={GROUP_NAME}
59
- isDisabled={isDisabled || !isSDNSelectable}
60
- value={NETWORK_TYPE_SDN}
61
- label={<>{t('ai:Software-Defined Networking (SDN)')}&nbsp;</>}
62
- />
63
- </Tooltip>
64
- </SplitItem>
65
- <SplitItem>
66
- <PopoverIcon
67
- bodyContent={t('ai:The classic bullet-proof networking type')}
68
- buttonStyle={{ top: '-4px' }}
69
- />
70
- </SplitItem>
71
- </Split>
72
- </FormGroup>
73
- );
74
- };
@@ -1,69 +0,0 @@
1
- import React from 'react';
2
- import { Provider } from 'react-redux';
3
- import { storeDay1 } from '../../store';
4
- import { useSelector } from 'react-redux';
5
-
6
- import { AlertsContextProvider, CpuArchitecture, FeatureListType } from '../../../common';
7
- import ClusterProperties from './ClusterProperties';
8
- import { Grid } from '@patternfly/react-core';
9
- import { NewFeatureSupportLevelProvider } from '../featureSupportLevels';
10
- import useInfraEnv from '../../hooks/useInfraEnv';
11
- import { usePullSecret } from '../../hooks';
12
- import { selectCurrentClusterState } from '../../store/slices/current-cluster/selectors';
13
- import { useFeatureDetection } from '../../hooks/use-feature-detection';
14
- import { OpenShiftVersionsContextProvider } from '../clusterWizard/OpenShiftVersionsContext';
15
-
16
- type AssistedInstallerExtraDetailCardProps = {
17
- allEnabledFeatures: FeatureListType;
18
- };
19
-
20
- const AssistedInstallerExtraDetailCard: React.FC<AssistedInstallerExtraDetailCardProps> = ({
21
- allEnabledFeatures,
22
- }) => {
23
- useFeatureDetection(allEnabledFeatures);
24
- const { data: cluster } = useSelector(selectCurrentClusterState);
25
- const pullSecret = usePullSecret();
26
- const { infraEnv } = useInfraEnv(
27
- cluster?.id ? cluster?.id : '',
28
- cluster?.cpuArchitecture
29
- ? (cluster.cpuArchitecture as CpuArchitecture)
30
- : CpuArchitecture.USE_DAY1_ARCHITECTURE,
31
- cluster?.name,
32
- pullSecret,
33
- cluster?.openshiftVersion,
34
- );
35
-
36
- if (!cluster || cluster.status === 'adding-hosts') {
37
- return null;
38
- }
39
-
40
- return (
41
- <AlertsContextProvider>
42
- <NewFeatureSupportLevelProvider
43
- loadingUi={<div />}
44
- cluster={cluster}
45
- cpuArchitecture={infraEnv?.cpuArchitecture as CpuArchitecture}
46
- openshiftVersion={cluster.openshiftVersion}
47
- platformType={cluster.platform?.type}
48
- >
49
- <Grid className="pf-v6-u-mt-md">
50
- <ClusterProperties cluster={cluster} externalMode />
51
- </Grid>
52
- </NewFeatureSupportLevelProvider>
53
- </AlertsContextProvider>
54
- );
55
- };
56
-
57
- const Wrapper: React.FC<AssistedInstallerExtraDetailCardProps> = (props) => {
58
- return (
59
- <Provider store={storeDay1}>
60
- <AlertsContextProvider>
61
- <OpenShiftVersionsContextProvider>
62
- <AssistedInstallerExtraDetailCard {...props} />
63
- </OpenShiftVersionsContextProvider>
64
- </AlertsContextProvider>
65
- </Provider>
66
- );
67
- };
68
-
69
- export default Wrapper;