@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,169 +0,0 @@
1
- import React from 'react';
2
- import { GridItem, Content } from '@patternfly/react-core';
3
- import {
4
- DetailItem,
5
- DetailList,
6
- getDefaultCpuArchitecture,
7
- isDualStack,
8
- NETWORK_TYPE_LABELS,
9
- selectApiVip,
10
- selectIngressVip,
11
- selectIpv4Cidr,
12
- selectIpv4HostPrefix,
13
- selectIpv6Cidr,
14
- selectIpv6HostPrefix,
15
- } from '../../../common';
16
- import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
17
- import { ClusterFeatureSupportLevelsDetailItem } from '../featureSupportLevels';
18
- import OpenShiftVersionDetail from './OpenShiftVersionDetail';
19
- import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
20
- import { Cluster, DiskEncryption } from '@openshift-assisted/types/assisted-installer-service';
21
-
22
- type ClusterPropertiesProps = {
23
- cluster: Cluster;
24
- externalMode?: boolean;
25
- };
26
-
27
- export const getNetworkType = (clusterNetworkType: Cluster['networkType']): string => {
28
- return NETWORK_TYPE_LABELS[clusterNetworkType || ''];
29
- };
30
-
31
- export const getManagementType = ({ userManagedNetworking }: Cluster): string => {
32
- let managementType: string;
33
- userManagedNetworking
34
- ? (managementType = 'User-Managed Networking')
35
- : (managementType = 'Cluster-managed networking');
36
- return managementType;
37
- };
38
-
39
- export const getStackTypeLabel = (cluster: Cluster): string =>
40
- isDualStack(cluster) ? 'Dual-stack' : 'IPv4';
41
-
42
- export const getDiskEncryptionEnabledOnStatus = (diskEncryption: DiskEncryption['enableOn']) => {
43
- let diskEncryptionType = null;
44
- switch (diskEncryption) {
45
- case 'all':
46
- diskEncryptionType = (
47
- <>
48
- Enabled on control plane nodes
49
- <br />
50
- Enabled on workers
51
- </>
52
- );
53
- break;
54
- case 'masters':
55
- diskEncryptionType = <>Enabled on control plane nodes</>;
56
- break;
57
- case 'workers':
58
- diskEncryptionType = <>Enabled on workers</>;
59
- break;
60
- }
61
- return diskEncryptionType;
62
- };
63
-
64
- const ClusterProperties = ({ cluster, externalMode = false }: ClusterPropertiesProps) => {
65
- const { t } = useTranslation();
66
- const isDualStackType = isDualStack(cluster);
67
- const featureSupportLevelContext = useNewFeatureSupportLevel();
68
-
69
- const activeFeatureConfiguration = featureSupportLevelContext.activeFeatureConfiguration;
70
- const underlyingCpuArchitecture =
71
- activeFeatureConfiguration?.underlyingCpuArchitecture || getDefaultCpuArchitecture();
72
-
73
- return (
74
- <>
75
- {!externalMode && (
76
- <GridItem>
77
- <Content component="h2">{t('ai:Cluster Details')}</Content>
78
- </GridItem>
79
- )}
80
- <GridItem md={6} data-testid="cluster-details">
81
- <DetailList>
82
- {externalMode ? undefined : (
83
- <DetailItem
84
- title={t('ai:OpenShift version')}
85
- value={<OpenShiftVersionDetail cluster={cluster} />}
86
- testId="openshift-version"
87
- />
88
- )}
89
- <DetailItem title="Base domain" value={cluster.baseDnsDomain} testId="base-dns-domain" />
90
- <DetailItem
91
- title={'CPU architecture '}
92
- value={underlyingCpuArchitecture}
93
- testId="cpu-architecture"
94
- />
95
- <DetailItem
96
- title="API IP"
97
- value={selectApiVip(cluster)}
98
- isHidden={selectApiVip(cluster) === ''}
99
- testId="api-vip"
100
- />
101
- <DetailItem
102
- title="Ingress IP"
103
- value={selectIngressVip(cluster)}
104
- isHidden={selectIngressVip(cluster) === ''}
105
- testId="ingress-vip"
106
- />
107
- <DetailItem
108
- title="Network management type"
109
- value={getManagementType(cluster)}
110
- testId="network-management-type"
111
- />
112
- <DetailItem
113
- title="Networking Type"
114
- value={getNetworkType(cluster.networkType)}
115
- testId="networking-type"
116
- />
117
- </DetailList>
118
- </GridItem>
119
- <GridItem md={6}>
120
- <DetailList>
121
- <DetailItem
122
- title="Cluster network CIDR (IPv4)"
123
- value={selectIpv4Cidr(cluster, 'clusterNetworks')}
124
- testId="cluster-network-cidr-ipv4"
125
- />
126
- <DetailItem
127
- title="Cluster network host prefix (IPv4)"
128
- value={selectIpv4HostPrefix(cluster)}
129
- testId="host-prefix-ipv4"
130
- />
131
- {isDualStackType ? (
132
- <>
133
- <DetailItem
134
- title="Cluster network CIDR (IPv6)"
135
- value={selectIpv6Cidr(cluster, 'clusterNetworks')}
136
- testId="cluster-network-cidr-ipv6"
137
- />
138
- <DetailItem
139
- title="Cluster network host prefix (IPv6)"
140
- value={selectIpv6HostPrefix(cluster)}
141
- testId="host-prefix-ipv6"
142
- />
143
- </>
144
- ) : undefined}
145
- <DetailItem
146
- title="Service network CIDR (IPv4)"
147
- value={selectIpv4Cidr(cluster, 'serviceNetworks')}
148
- testId="service-network-cidr-ipv4"
149
- />
150
- {isDualStackType ? (
151
- <DetailItem
152
- title="Service network CIDR (IPv6)"
153
- value={selectIpv6Cidr(cluster, 'serviceNetworks')}
154
- testId="service-network-cidr-ipv6"
155
- />
156
- ) : undefined}
157
- <DetailItem
158
- title="Disk encryption"
159
- value={getDiskEncryptionEnabledOnStatus(cluster.diskEncryption?.enableOn)}
160
- isHidden={cluster.diskEncryption?.enableOn === 'none'}
161
- testId="disk-encryption"
162
- />
163
- <ClusterFeatureSupportLevelsDetailItem cluster={cluster} />
164
- </DetailList>
165
- </GridItem>
166
- </>
167
- );
168
- };
169
- export default ClusterProperties;