@openshift-assisted/ui-lib 2.52.1 → 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 (293) 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/clusters/PullSecret.d.ts +0 -1
  49. package/build/@types/common/components/clusters/PullSecret.d.ts.map +1 -1
  50. package/build/@types/common/components/hosts/HostsTable.d.ts.map +1 -1
  51. package/build/@types/common/components/ui/WizardFooter.d.ts +1 -0
  52. package/build/@types/common/components/ui/WizardFooter.d.ts.map +1 -1
  53. package/build/@types/common/components/ui/formik/utils.d.ts +1 -0
  54. package/build/@types/common/components/ui/formik/utils.d.ts.map +1 -1
  55. package/build/@types/common/config/constants.d.ts +2 -2
  56. package/build/@types/common/config/constants.d.ts.map +1 -1
  57. package/build/@types/common/types/networkType.d.ts +2 -1
  58. package/build/@types/common/types/networkType.d.ts.map +1 -1
  59. package/build/@types/common/validationSchemas/networkingValidation.d.ts +10 -0
  60. package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  65. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  67. package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
  68. package/build/@types/ocm/components/clusterConfiguration/review/ReviewSummary.d.ts.map +1 -1
  69. package/build/@types/ocm/components/{clusterDetail/ClusterProperties.d.ts → clusterConfiguration/review/utils.d.ts} +1 -8
  70. package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts.map +1 -0
  71. package/build/@types/ocm/components/clusterConfiguration/review/utils.test.d.ts +2 -0
  72. package/build/@types/ocm/components/clusterConfiguration/review/utils.test.d.ts.map +1 -0
  73. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.d.ts.map +1 -1
  74. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts +1 -0
  75. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts.map +1 -1
  76. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts +1 -1
  77. package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts.map +1 -1
  78. package/build/@types/ocm/components/clusterDetail/ClusterDetailsButtonGroup.d.ts.map +1 -1
  79. package/build/@types/ocm/components/clusterDetail/index.d.ts +0 -1
  80. package/build/@types/ocm/components/clusterDetail/index.d.ts.map +1 -1
  81. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  82. package/build/@types/ocm/components/clusterWizard/HostDiscovery.d.ts.map +1 -1
  83. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts +5 -1
  84. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -1
  85. package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
  86. package/build/@types/ocm/components/hosts/HostsTableEmptyState.d.ts.map +1 -1
  87. package/build/@types/ocm/hooks/useClusterCustomManifests.d.ts.map +1 -1
  88. package/build/@types/ocm/hooks/useLateBinding.d.ts.map +1 -1
  89. package/build/@types/ocm/hooks/useUISettings.d.ts.map +1 -1
  90. package/build/@types/ocm/services/ClusterDetailsService.d.ts +2 -1
  91. package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
  92. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +9 -1
  93. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  94. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +46 -7
  95. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  96. package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js +22 -21
  97. package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -1
  98. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +25 -9
  99. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  100. package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js +35 -0
  101. package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js.map +1 -0
  102. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +4 -4
  103. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  104. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +13 -18
  105. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  106. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +5 -1
  107. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  108. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
  109. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
  110. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +1 -4
  111. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +1 -1
  112. package/build/cjs/cim/components/helpers/clusterDeployment.js +14 -10
  113. package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
  114. package/build/cjs/cim/components/helpers/versions.js +39 -28
  115. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  116. package/build/cjs/cim/components/helpers/versions.test.js +423 -0
  117. package/build/cjs/cim/components/helpers/versions.test.js.map +1 -0
  118. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +39 -16
  119. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
  120. package/build/cjs/cim/components/modals/CimConfiguration/persist.js +96 -136
  121. package/build/cjs/cim/components/modals/CimConfiguration/persist.js.map +1 -1
  122. package/build/cjs/cim/hooks/index.js +1 -0
  123. package/build/cjs/cim/hooks/index.js.map +1 -1
  124. package/build/cjs/cim/hooks/useAgents.js +13 -0
  125. package/build/cjs/cim/hooks/useAgents.js.map +1 -0
  126. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js +10 -9
  127. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
  128. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +1 -10
  129. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  130. package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js +32 -0
  131. package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js.map +1 -0
  132. package/build/cjs/common/components/clusterWizard/customManifests/index.js +5 -0
  133. package/build/cjs/common/components/clusterWizard/customManifests/index.js.map +1 -0
  134. package/build/cjs/common/components/clusterWizard/index.js +2 -0
  135. package/build/cjs/common/components/clusterWizard/index.js.map +1 -1
  136. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +8 -2
  137. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  138. package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js +2 -2
  139. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +29 -19
  140. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
  141. package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js +20 -0
  142. package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js.map +1 -0
  143. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +1 -0
  144. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
  145. package/build/cjs/common/components/clusters/PullSecret.js +17 -19
  146. package/build/cjs/common/components/clusters/PullSecret.js.map +1 -1
  147. package/build/cjs/common/components/hosts/HostsTable.js +2 -1
  148. package/build/cjs/common/components/hosts/HostsTable.js.map +1 -1
  149. package/build/cjs/common/components/ui/WizardFooter.js +6 -1
  150. package/build/cjs/common/components/ui/WizardFooter.js.map +1 -1
  151. package/build/cjs/common/components/ui/formik/utils.js +5 -1
  152. package/build/cjs/common/components/ui/formik/utils.js.map +1 -1
  153. package/build/cjs/common/config/constants.js +13 -2
  154. package/build/cjs/common/config/constants.js.map +1 -1
  155. package/build/cjs/common/types/networkType.js +9 -8
  156. package/build/cjs/common/types/networkType.js.map +1 -1
  157. package/build/cjs/common/validationSchemas/networkingValidation.js +19 -1
  158. package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -1
  159. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +4 -1
  160. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  161. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +1 -1
  162. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  163. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +1 -20
  164. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
  165. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +7 -6
  166. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  167. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js +6 -9
  168. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js.map +1 -1
  169. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +4 -4
  170. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  171. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.js +2 -2
  172. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.js.map +1 -1
  173. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +6 -5
  174. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
  175. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js +5 -2
  176. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js.map +1 -1
  177. package/build/cjs/ocm/components/clusterConfiguration/review/utils.js +57 -0
  178. package/build/cjs/ocm/components/clusterConfiguration/review/utils.js.map +1 -0
  179. package/build/cjs/ocm/components/{clusterDetail/ClusterProperties.test.js → clusterConfiguration/review/utils.test.js} +13 -13
  180. package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js.map +1 -0
  181. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js +2 -2
  182. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js.map +1 -1
  183. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js +3 -7
  185. package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js.map +1 -1
  186. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js +8 -2
  187. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js.map +1 -1
  188. package/build/cjs/ocm/components/clusterDetail/index.js +1 -3
  189. package/build/cjs/ocm/components/clusterDetail/index.js.map +1 -1
  190. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +10 -1
  191. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  192. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js +4 -1
  193. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
  194. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +2 -2
  195. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
  196. package/build/cjs/ocm/components/clusters/ClusterPage.js +1 -1
  197. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  198. package/build/cjs/ocm/components/clusters/ClustersTable.js +3 -2
  199. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  200. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
  201. package/build/cjs/ocm/components/hosts/HostsTableEmptyState.js +2 -1
  202. package/build/cjs/ocm/components/hosts/HostsTableEmptyState.js.map +1 -1
  203. package/build/cjs/ocm/hooks/useClusterCustomManifests.js +3 -15
  204. package/build/cjs/ocm/hooks/useClusterCustomManifests.js.map +1 -1
  205. package/build/cjs/ocm/hooks/useLateBinding.js +41 -26
  206. package/build/cjs/ocm/hooks/useLateBinding.js.map +1 -1
  207. package/build/cjs/ocm/hooks/usePullSecret.js +2 -2
  208. package/build/cjs/ocm/hooks/useUISettings.js +1 -1
  209. package/build/cjs/ocm/hooks/useUISettings.js.map +1 -1
  210. package/build/cjs/ocm/services/ClusterDetailsService.js +4 -2
  211. package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
  212. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +10 -2
  213. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +55 -6
  214. package/lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx +18 -2
  215. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +22 -8
  216. package/lib/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.tsx +81 -0
  217. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +18 -14
  218. package/lib/cim/components/ClusterDeployment/types.ts +0 -1
  219. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +14 -22
  220. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +5 -1
  221. package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +2 -2
  222. package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +2 -5
  223. package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
  224. package/lib/cim/components/helpers/versions.test.ts +465 -0
  225. package/lib/cim/components/helpers/versions.ts +37 -31
  226. package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +45 -18
  227. package/lib/cim/components/modals/CimConfiguration/persist.ts +97 -199
  228. package/lib/cim/hooks/index.tsx +1 -0
  229. package/lib/cim/hooks/useAgents.tsx +15 -0
  230. package/lib/cim/types/k8s/agent-cluster-install.ts +1 -1
  231. package/lib/common/components/clusterDetail/ClusterCredentials.tsx +49 -53
  232. package/lib/common/components/clusterDetail/ConsoleModal.tsx +0 -35
  233. package/lib/common/components/clusterWizard/customManifests/CustomManifestsAlert.tsx +39 -0
  234. package/lib/common/components/clusterWizard/customManifests/index.tsx +1 -0
  235. package/lib/common/components/clusterWizard/index.ts +2 -0
  236. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +8 -1
  237. package/lib/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.tsx +2 -2
  238. package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +36 -26
  239. package/lib/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.tsx +28 -0
  240. package/lib/common/components/clusterWizard/networkingSteps/index.ts +1 -0
  241. package/lib/common/components/clusters/PullSecret.tsx +28 -38
  242. package/lib/common/components/hosts/HostsTable.tsx +2 -0
  243. package/lib/common/components/ui/WizardFooter.tsx +10 -0
  244. package/lib/common/components/ui/formik/utils.ts +6 -0
  245. package/lib/common/config/constants.ts +14 -1
  246. package/lib/common/types/networkType.ts +9 -8
  247. package/lib/common/validationSchemas/networkingValidation.tsx +39 -1
  248. package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +6 -3
  249. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +7 -6
  250. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +10 -45
  251. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +11 -9
  252. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.tsx +7 -24
  253. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -5
  254. package/lib/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.tsx +1 -1
  255. package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +10 -4
  256. package/lib/ocm/components/clusterConfiguration/review/ReviewSummary.tsx +9 -2
  257. package/lib/ocm/components/{clusterDetail/ClusterProperties.test.ts → clusterConfiguration/review/utils.test.ts} +1 -1
  258. package/lib/ocm/components/clusterConfiguration/review/utils.tsx +61 -0
  259. package/lib/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.ts +2 -0
  260. package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.ts +1 -0
  261. package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.ts +2 -0
  262. package/lib/ocm/components/clusterDetail/ClusterDetailsButtonGroup.tsx +27 -2
  263. package/lib/ocm/components/clusterDetail/index.ts +0 -1
  264. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +10 -1
  265. package/lib/ocm/components/clusterWizard/HostDiscovery.tsx +4 -0
  266. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +6 -2
  267. package/lib/ocm/components/clusters/ClusterPage.tsx +1 -1
  268. package/lib/ocm/components/clusters/ClustersTable.tsx +59 -49
  269. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
  270. package/lib/ocm/components/hosts/HostsTableEmptyState.tsx +2 -0
  271. package/lib/ocm/hooks/useClusterCustomManifests.ts +3 -0
  272. package/lib/ocm/hooks/useLateBinding.ts +45 -24
  273. package/lib/ocm/hooks/usePullSecret.ts +2 -2
  274. package/lib/ocm/hooks/useUISettings.ts +3 -1
  275. package/lib/ocm/services/ClusterDetailsService.ts +6 -0
  276. package/package.json +9 -9
  277. package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts +0 -7
  278. package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts.map +0 -1
  279. package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts +0 -8
  280. package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts.map +0 -1
  281. package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +0 -1
  282. package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts +0 -2
  283. package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts.map +0 -1
  284. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +0 -33
  285. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +0 -1
  286. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +0 -40
  287. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +0 -1
  288. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +0 -77
  289. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +0 -1
  290. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.test.js.map +0 -1
  291. package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +0 -74
  292. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +0 -69
  293. package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +0 -169
@@ -8,12 +8,16 @@ import {
8
8
  } from '../../../common';
9
9
  import { useFeature } from '../../hooks/use-feature';
10
10
 
11
- export const AssistedInstallerHeader = () => {
11
+ type AssistedInstallerHeaderProps = {
12
+ clusterName?: string;
13
+ };
14
+
15
+ export const AssistedInstallerHeader = ({ clusterName }: AssistedInstallerHeaderProps) => {
12
16
  const isSingleClusterFeatureEnabled = useFeature('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
13
17
  return (
14
18
  <>
15
19
  <Content component="h1" className="pf-v6-u-display-inline">
16
- Install OpenShift with the Assisted Installer
20
+ {clusterName || 'Install OpenShift with the Assisted Installer'}
17
21
  </Content>
18
22
  {isSingleClusterFeatureEnabled && <TechnologyPreview />}
19
23
  <Split hasGutter>
@@ -104,7 +104,7 @@ const ClusterPageGeneric = ({
104
104
  {showBreadcrumbs && <ClusterBreadcrumbs clusterName={cluster.name} />}
105
105
  {showBreadcrumbs && (
106
106
  <PageSection hasBodyWrapper={false}>
107
- <AssistedInstallerHeader />
107
+ <AssistedInstallerHeader clusterName={cluster.name} />
108
108
  </PageSection>
109
109
  )}
110
110
 
@@ -25,6 +25,7 @@ import {
25
25
  ClusterTableRows,
26
26
  HumanizedSortable,
27
27
  rowSorter,
28
+ EmptyState,
28
29
  } from '../../../common';
29
30
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
30
31
  import DeleteClusterModal from './DeleteClusterModal';
@@ -151,6 +152,8 @@ const ClustersTable = ({ rows, deleteCluster }: ClustersTableProps) => {
151
152
  closeModal();
152
153
  };
153
154
 
155
+ const hasActiveFilters = searchString.length > 0 || filters.status.length > 0;
156
+
154
157
  return (
155
158
  <>
156
159
  <ClustersListToolbar
@@ -159,56 +162,63 @@ const ClustersTable = ({ rows, deleteCluster }: ClustersTableProps) => {
159
162
  filters={filters}
160
163
  setFilters={setFilters}
161
164
  />
162
- <Table aria-label="Clusters table" data-testid={'clusters-table'}>
163
- <Thead>
164
- <Tr>
165
- {columns.map((col, i) => (
166
- <Th
167
- key={`col-${i}`}
168
- width={col.cellWidth as BaseCellProps['width']}
169
- sort={getSortParams(i)}
170
- >
171
- <TableText>{col.title}</TableText>
172
- </Th>
173
- ))}
174
- <Th key="col-action" />
175
- </Tr>
176
- </Thead>
177
- <Tbody>
178
- {sortedRows.map((row, i) => (
179
- <Tr {...getRowProps(row.props as ClusterRowDataProps)} key={`row-${i}`}>
180
- {row.cells?.map((cell, j) => {
181
- const humanized = cell as HumanizedSortable;
182
- return (
183
- <Td dataLabel={columns[j].title} key={`cell-${i}-${j}`} {...humanized.props}>
184
- <TableText wrapModifier="breakWord">{humanized?.title}</TableText>
185
- </Td>
186
- );
187
- })}
188
- <Td isActionCell>
189
- <ActionsColumn
190
- items={[
191
- {
192
- title: 'Delete',
193
- id: `button-delete-${(row.props as ClusterRowDataProps).name}`,
194
- isDisabled:
195
- getClusterTableStatusCell(row).sortableValue ===
196
- clusterStatusLabels(t).installing,
197
- onClick: () => {
198
- setDeleteClusterID({
199
- id: (row.props as ClusterRowDataProps).id,
200
- name: (row.props as ClusterRowDataProps).name,
201
- });
202
- setDeleteModalOpen(true);
203
- },
204
- },
205
- ]}
206
- />
207
- </Td>
165
+ {sortedRows.length === 0 && hasActiveFilters ? (
166
+ <EmptyState
167
+ title="No matching clusters"
168
+ content="No clusters match the current filter criteria. Try adjusting your filters."
169
+ />
170
+ ) : (
171
+ <Table aria-label="Clusters table" data-testid={'clusters-table'}>
172
+ <Thead>
173
+ <Tr>
174
+ {columns.map((col, i) => (
175
+ <Th
176
+ key={`col-${i}`}
177
+ width={col.cellWidth as BaseCellProps['width']}
178
+ sort={getSortParams(i)}
179
+ >
180
+ <TableText>{col.title}</TableText>
181
+ </Th>
182
+ ))}
183
+ <Th key="col-action" />
208
184
  </Tr>
209
- ))}
210
- </Tbody>
211
- </Table>
185
+ </Thead>
186
+ <Tbody>
187
+ {sortedRows.map((row, i) => (
188
+ <Tr {...getRowProps(row.props as ClusterRowDataProps)} key={`row-${i}`}>
189
+ {row.cells?.map((cell, j) => {
190
+ const humanized = cell as HumanizedSortable;
191
+ return (
192
+ <Td dataLabel={columns[j].title} key={`cell-${i}-${j}`} {...humanized.props}>
193
+ <TableText wrapModifier="breakWord">{humanized?.title}</TableText>
194
+ </Td>
195
+ );
196
+ })}
197
+ <Td isActionCell>
198
+ <ActionsColumn
199
+ items={[
200
+ {
201
+ title: 'Delete',
202
+ id: `button-delete-${(row.props as ClusterRowDataProps).name}`,
203
+ isDisabled:
204
+ getClusterTableStatusCell(row).sortableValue ===
205
+ clusterStatusLabels(t).installing,
206
+ onClick: () => {
207
+ setDeleteClusterID({
208
+ id: (row.props as ClusterRowDataProps).id,
209
+ name: (row.props as ClusterRowDataProps).name,
210
+ });
211
+ setDeleteModalOpen(true);
212
+ },
213
+ },
214
+ ]}
215
+ />
216
+ </Td>
217
+ </Tr>
218
+ ))}
219
+ </Tbody>
220
+ </Table>
221
+ )}
212
222
  <DeleteClusterModal
213
223
  name={deleteClusterID?.name || ''}
214
224
  onClose={closeModal}
@@ -229,7 +229,7 @@ export const getNewFeatureDisabledReason = (
229
229
  }
230
230
  case 'USER_MANAGED_NETWORKING': {
231
231
  if (!isSupported) {
232
- return `User-Managed Networking is not supported when using ${
232
+ return `User-Managed networking is not supported when using ${
233
233
  platformType ? ExternalPlatformLabels[platformType] : ''
234
234
  }`;
235
235
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Spinner } from '@patternfly/react-core';
2
3
  import { ConnectedIcon } from '@patternfly/react-icons/dist/js/icons/connected-icon';
3
4
  import EmptyState from '../../../common/components/ui/uiState/EmptyState';
4
5
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
@@ -16,6 +17,7 @@ const HostsTableEmptyState = ({ isSingleNode = false }: HostsTableEmptyStateProp
16
17
  icon={ConnectedIcon}
17
18
  title={t('ai:Waiting for host...', { count: isSingleNode ? 1 : 2 })}
18
19
  content={t('ai:Hosts may take a few minutes to appear here after booting.')}
20
+ primaryAction={<Spinner size="xl" />}
19
21
  secondaryActions={[
20
22
  <HostsDiscoveryTroubleshootingInfoLinkWithModal key={'hosts-not-showing'} />,
21
23
  ]}
@@ -34,12 +34,14 @@ const getManifestsInfo = async (customManifests: ListManifests, clusterId: strin
34
34
  );
35
35
  const yamlString = await convertBlobToString(yamlContent);
36
36
  manifestsExtended.push({
37
+ ...manifest,
37
38
  folder: manifest.folder || 'manifests',
38
39
  fileName: manifest.fileName || '',
39
40
  yamlContent: yamlString,
40
41
  });
41
42
  } catch (e) {
42
43
  manifestsExtended.push({
44
+ ...manifest,
43
45
  folder: manifest.folder || 'manifests',
44
46
  fileName: manifest.fileName || '',
45
47
  yamlContent: '',
@@ -65,6 +67,7 @@ const useClusterCustomManifests = (clusterId: Cluster['id'], extendedVersion: bo
65
67
  });
66
68
  } else {
67
69
  const manifestsExtended = data.map((manifest: Manifest) => ({
70
+ ...manifest,
68
71
  folder: manifest.folder || 'manifests',
69
72
  fileName: manifest.fileName || '',
70
73
  yamlContent: '',
@@ -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.1",
4
- "@openshift-assisted/types": "2.52.1",
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.1"
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