@openshift-assisted/ui-lib 2.9.7-cim → 2.9.9-cim

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetails.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts +6 -1
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/helpers.d.ts.map +1 -1
  6. package/build/@types/cim/components/Hypershift/utils/nodepool.d.ts.map +1 -1
  7. package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts +2 -0
  8. package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts.map +1 -1
  9. package/build/@types/cim/components/helpers/versions.d.ts +1 -0
  10. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  11. package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
  12. package/build/@types/common/api/accounts-management-service/current-account-api.d.ts +6 -0
  13. package/build/@types/common/api/accounts-management-service/current-account-api.d.ts.map +1 -0
  14. package/build/@types/common/api/accounts-management-service/organizations-api.d.ts +6 -0
  15. package/build/@types/common/api/accounts-management-service/organizations-api.d.ts.map +1 -0
  16. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +1 -1
  17. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
  18. package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts +8 -0
  19. package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts.map +1 -0
  20. package/build/@types/common/api/assisted-service/index.d.ts +1 -0
  21. package/build/@types/common/api/assisted-service/index.d.ts.map +1 -1
  22. package/build/@types/common/api/authorization-service/all-apis.d.ts +7 -0
  23. package/build/@types/common/api/authorization-service/all-apis.d.ts.map +1 -0
  24. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts +4 -1
  25. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  26. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.d.ts.map +1 -1
  27. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts +3 -1
  28. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts.map +1 -1
  29. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.d.ts +3 -1
  30. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.d.ts.map +1 -1
  31. package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts +2 -1
  32. package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
  33. package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts +2 -0
  34. package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts.map +1 -1
  35. package/build/@types/common/components/clusterDetail/PostInstallAlert.d.ts +6 -0
  36. package/build/@types/common/components/clusterDetail/PostInstallAlert.d.ts.map +1 -0
  37. package/build/@types/common/components/clusterDetail/index.d.ts +1 -0
  38. package/build/@types/common/components/clusterDetail/index.d.ts.map +1 -1
  39. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  40. package/build/@types/common/components/hosts/HostRowDetail.d.ts +2 -1
  41. package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
  42. package/build/@types/common/components/newFeatureSupportLevels/types.d.ts +3 -3
  43. package/build/@types/common/components/newFeatureSupportLevels/types.d.ts.map +1 -1
  44. package/build/@types/common/components/ui/NoPermissionsError.d.ts +3 -0
  45. package/build/@types/common/components/ui/NoPermissionsError.d.ts.map +1 -0
  46. package/build/@types/common/components/ui/formik/InputField.d.ts.map +1 -1
  47. package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
  48. package/build/@types/common/components/ui/formik/types.d.ts +2 -2
  49. package/build/@types/common/components/ui/formik/types.d.ts.map +1 -1
  50. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  51. package/build/@types/common/components/ui/index.d.ts +1 -0
  52. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  53. package/build/@types/common/config/constants.d.ts +1 -1
  54. package/build/@types/common/config/constants.d.ts.map +1 -1
  55. package/build/@types/common/features/featureGate.d.ts +1 -1
  56. package/build/@types/common/features/featureGate.d.ts.map +1 -1
  57. package/build/@types/common/services/DateAndTime.d.ts.map +1 -0
  58. package/build/@types/common/types/cpuArchitecture.d.ts +1 -1
  59. package/build/@types/common/types/cpuArchitecture.d.ts.map +1 -1
  60. package/build/@types/common/types/featureSupportLevel.d.ts +3 -3
  61. package/build/@types/common/types/featureSupportLevel.d.ts.map +1 -1
  62. package/build/@types/ocm/components/AddHosts/AddHosts.d.ts.map +1 -1
  63. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts +1 -2
  64. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts.map +1 -1
  65. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.d.ts.map +1 -1
  66. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts +3 -1
  67. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts.map +1 -1
  68. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.d.ts.map +1 -1
  69. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.d.ts +1 -4
  70. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.d.ts.map +1 -1
  71. package/build/@types/ocm/components/clusterConfiguration/CpuArchitectureDropdown.d.ts +5 -4
  72. package/build/@types/ocm/components/clusterConfiguration/CpuArchitectureDropdown.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusterConfiguration/CustomManifestCheckbox.d.ts.map +1 -1
  74. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts +2 -1
  75. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
  76. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  77. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts +1 -1
  78. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
  79. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
  80. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts +3 -4
  81. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts.map +1 -1
  82. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.d.ts +0 -1
  83. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.d.ts.map +1 -1
  84. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  85. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts +2 -1
  86. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
  87. package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
  88. package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts.map +1 -1
  89. package/build/@types/ocm/components/clusterDetail/ClusterDetailStatusMessages.d.ts.map +1 -1
  90. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  91. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts +1 -2
  92. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  93. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -3
  94. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
  95. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  96. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  97. package/build/@types/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.d.ts +4 -3
  98. package/build/@types/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.d.ts.map +1 -1
  99. package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
  100. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts +3 -3
  101. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
  102. package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
  103. package/build/@types/ocm/components/ui/OcmFormFields.d.ts +1 -1
  104. package/build/@types/ocm/hooks/index.d.ts +1 -0
  105. package/build/@types/ocm/hooks/index.d.ts.map +1 -1
  106. package/build/@types/ocm/hooks/useOpenshiftVersions.d.ts +1 -2
  107. package/build/@types/ocm/hooks/useOpenshiftVersions.d.ts.map +1 -1
  108. package/build/@types/ocm/hooks/useSupportLevelsAPI.d.ts +5 -3
  109. package/build/@types/ocm/hooks/useSupportLevelsAPI.d.ts.map +1 -1
  110. package/build/@types/ocm/hooks/useUISettings.d.ts +10 -0
  111. package/build/@types/ocm/hooks/useUISettings.d.ts.map +1 -0
  112. package/build/@types/ocm/services/ClusterDetailsService.d.ts +2 -1
  113. package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
  114. package/build/@types/ocm/services/ClustersService.d.ts +0 -1
  115. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  116. package/build/@types/ocm/services/Day2ClusterService.d.ts +3 -2
  117. package/build/@types/ocm/services/Day2ClusterService.d.ts.map +1 -1
  118. package/build/@types/ocm/services/UISettingsService.d.ts +8 -0
  119. package/build/@types/ocm/services/UISettingsService.d.ts.map +1 -0
  120. package/build/@types/ocm/services/index.d.ts +1 -0
  121. package/build/@types/ocm/services/index.d.ts.map +1 -1
  122. package/build/@types/ocm/services/types.d.ts +4 -0
  123. package/build/@types/ocm/services/types.d.ts.map +1 -1
  124. package/build/cjs/cim/components/Agent/BMCForm.js +3 -3
  125. package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
  126. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetails.js +58 -55
  127. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetails.js.map +1 -1
  128. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +9 -5
  129. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
  130. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +6 -2
  131. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  132. package/build/cjs/cim/components/ClusterDeployment/helpers.js +4 -2
  133. package/build/cjs/cim/components/ClusterDeployment/helpers.js.map +1 -1
  134. package/build/cjs/cim/components/Hypershift/utils/nodepool.js +6 -5
  135. package/build/cjs/cim/components/Hypershift/utils/nodepool.js.map +1 -1
  136. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +2 -2
  137. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  138. package/build/cjs/cim/components/helpers/versions.js +3 -1
  139. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  140. package/build/cjs/cim/components/modals/AddHostModal.js +4 -4
  141. package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
  142. package/build/cjs/common/api/accounts-management-service/access-token-api.js +1 -1
  143. package/build/cjs/common/api/accounts-management-service/current-account-api.js +17 -0
  144. package/build/cjs/common/api/accounts-management-service/current-account-api.js.map +1 -0
  145. package/build/cjs/common/api/accounts-management-service/organizations-api.js +19 -0
  146. package/build/cjs/common/api/accounts-management-service/organizations-api.js.map +1 -0
  147. package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js +8 -5
  148. package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
  149. package/build/cjs/common/api/assisted-service/UISettingsAPI.js +21 -0
  150. package/build/cjs/common/api/assisted-service/UISettingsAPI.js.map +1 -0
  151. package/build/cjs/common/api/assisted-service/index.js +3 -1
  152. package/build/cjs/common/api/assisted-service/index.js.map +1 -1
  153. package/build/cjs/common/api/authorization-service/all-apis.js +23 -0
  154. package/build/cjs/common/api/authorization-service/all-apis.js.map +1 -0
  155. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +4 -4
  156. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  157. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js +1 -1
  158. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js.map +1 -1
  159. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js +6 -4
  160. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js.map +1 -1
  161. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.js +5 -3
  162. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.js.map +1 -1
  163. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +2 -2
  164. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  165. package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js +2 -2
  166. package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js.map +1 -1
  167. package/build/cjs/common/components/clusterDetail/PostInstallAlert.js +16 -0
  168. package/build/cjs/common/components/clusterDetail/PostInstallAlert.js.map +1 -0
  169. package/build/cjs/common/components/clusterDetail/index.js +3 -1
  170. package/build/cjs/common/components/clusterDetail/index.js.map +1 -1
  171. package/build/cjs/common/components/clusterWizard/ReviewValidations.js +3 -0
  172. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  173. package/build/cjs/common/components/hosts/HostRowDetail.js +2 -2
  174. package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
  175. package/build/cjs/common/components/ui/NoPermissionsError.js +14 -0
  176. package/build/cjs/common/components/ui/NoPermissionsError.js.map +1 -0
  177. package/build/cjs/common/components/ui/formik/InputField.js +5 -5
  178. package/build/cjs/common/components/ui/formik/InputField.js.map +1 -1
  179. package/build/cjs/common/components/ui/formik/RichInputField.js +5 -2
  180. package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
  181. package/build/cjs/common/components/ui/formik/SelectField.js +1 -1
  182. package/build/cjs/common/components/ui/formik/SelectField.js.map +1 -1
  183. package/build/cjs/common/components/ui/formik/validationSchemas.js +14 -6
  184. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  185. package/build/cjs/common/components/ui/index.js +3 -1
  186. package/build/cjs/common/components/ui/index.js.map +1 -1
  187. package/build/cjs/common/config/constants.js +4 -2
  188. package/build/cjs/common/config/constants.js.map +1 -1
  189. package/build/cjs/common/features/featureGate.js +1 -3
  190. package/build/cjs/common/features/featureGate.js.map +1 -1
  191. package/build/cjs/common/services/DateAndTime.js.map +1 -0
  192. package/build/cjs/common/types/cpuArchitecture.js +5 -9
  193. package/build/cjs/common/types/cpuArchitecture.js.map +1 -1
  194. package/build/cjs/common/types/featureSupportLevel.js.map +1 -1
  195. package/build/cjs/ocm/components/AddHosts/AddHosts.js +1 -2
  196. package/build/cjs/ocm/components/AddHosts/AddHosts.js.map +1 -1
  197. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js +2 -2
  198. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js.map +1 -1
  199. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js +4 -4
  200. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js.map +1 -1
  201. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js +7 -6
  202. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js.map +1 -1
  203. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +5 -22
  204. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js.map +1 -1
  205. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.js +1 -13
  206. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.js.map +1 -1
  207. package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js +24 -3
  208. package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js.map +1 -1
  209. package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js +22 -32
  210. package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js.map +1 -1
  211. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +7 -5
  212. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  213. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +3 -4
  214. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  215. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +6 -12
  216. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
  217. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js +2 -2
  218. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js.map +1 -1
  219. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +1 -1
  220. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
  221. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +49 -123
  222. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  223. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js +1 -0
  224. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js.map +1 -1
  225. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js +14 -19
  226. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js.map +1 -1
  227. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +17 -17
  228. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  229. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +2 -1
  230. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  231. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +2 -1
  232. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  233. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -1
  234. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
  235. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +3 -8
  236. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
  237. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +5 -12
  238. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  239. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +18 -13
  240. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  241. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
  242. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +45 -36
  243. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  244. package/build/cjs/ocm/components/clusters/ClusterPage.js +2 -1
  245. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  246. package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js +4 -4
  247. package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js.map +1 -1
  248. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +1 -3
  249. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
  250. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +8 -2
  251. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  252. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +1 -1
  253. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  254. package/build/cjs/ocm/hooks/index.js +3 -1
  255. package/build/cjs/ocm/hooks/index.js.map +1 -1
  256. package/build/cjs/ocm/hooks/useOpenshiftVersions.js +0 -5
  257. package/build/cjs/ocm/hooks/useOpenshiftVersions.js.map +1 -1
  258. package/build/cjs/ocm/hooks/useSupportLevelsAPI.js +38 -4
  259. package/build/cjs/ocm/hooks/useSupportLevelsAPI.js.map +1 -1
  260. package/build/cjs/ocm/hooks/useUISettings.js +62 -0
  261. package/build/cjs/ocm/hooks/useUISettings.js.map +1 -0
  262. package/build/cjs/ocm/services/ClusterDetailsService.js +2 -2
  263. package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
  264. package/build/cjs/ocm/services/ClustersService.js +0 -8
  265. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  266. package/build/cjs/ocm/services/Day2ClusterService.js +13 -4
  267. package/build/cjs/ocm/services/Day2ClusterService.js.map +1 -1
  268. package/build/cjs/ocm/services/UISettingsService.js +18 -0
  269. package/build/cjs/ocm/services/UISettingsService.js.map +1 -0
  270. package/build/cjs/ocm/services/index.js +3 -1
  271. package/build/cjs/ocm/services/index.js.map +1 -1
  272. package/lib/cim/components/Agent/BMCForm.tsx +3 -3
  273. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetails.tsx +112 -102
  274. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +17 -5
  275. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +9 -2
  276. package/lib/cim/components/ClusterDeployment/helpers.ts +13 -10
  277. package/lib/cim/components/Hypershift/utils/nodepool.ts +3 -2
  278. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +11 -2
  279. package/lib/cim/components/helpers/versions.ts +5 -0
  280. package/lib/cim/components/modals/AddHostModal.tsx +5 -0
  281. package/lib/common/api/accounts-management-service/access-token-api.ts +1 -1
  282. package/lib/common/api/accounts-management-service/current-account-api.ts +13 -0
  283. package/lib/common/api/accounts-management-service/organizations-api.ts +15 -0
  284. package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +9 -5
  285. package/lib/common/api/assisted-service/UISettingsAPI.ts +24 -0
  286. package/lib/common/api/assisted-service/index.ts +1 -0
  287. package/lib/common/api/authorization-service/all-apis.ts +28 -0
  288. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +6 -4
  289. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.tsx +5 -1
  290. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.tsx +27 -16
  291. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.tsx +27 -17
  292. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +3 -1
  293. package/lib/common/components/clusterConfiguration/OpenShiftVersionSelect.tsx +4 -1
  294. package/lib/common/components/clusterDetail/PostInstallAlert.tsx +29 -0
  295. package/lib/common/components/clusterDetail/index.ts +1 -0
  296. package/lib/common/components/clusterWizard/ReviewValidations.tsx +3 -0
  297. package/lib/common/components/hosts/HostRowDetail.tsx +3 -1
  298. package/lib/common/components/newFeatureSupportLevels/types.ts +4 -2
  299. package/lib/common/components/ui/NoPermissionsError.tsx +19 -0
  300. package/lib/common/components/ui/formik/InputField.tsx +4 -5
  301. package/lib/common/components/ui/formik/RichInputField.tsx +6 -2
  302. package/lib/common/components/ui/formik/SelectField.tsx +1 -1
  303. package/lib/common/components/ui/formik/types.ts +2 -1
  304. package/lib/common/components/ui/formik/validationSchemas.ts +16 -6
  305. package/lib/common/components/ui/index.ts +1 -0
  306. package/lib/common/config/constants.ts +3 -2
  307. package/lib/common/features/featureGate.tsx +0 -4
  308. package/lib/common/types/cpuArchitecture.ts +3 -8
  309. package/lib/common/types/featureSupportLevel.ts +6 -5
  310. package/lib/ocm/components/AddHosts/AddHosts.tsx +1 -3
  311. package/lib/ocm/components/AddHosts/InventoryAddHost.tsx +2 -8
  312. package/lib/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.tsx +6 -11
  313. package/lib/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.tsx +34 -19
  314. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +6 -37
  315. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.tsx +1 -15
  316. package/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx +62 -5
  317. package/lib/ocm/components/clusterConfiguration/CustomManifestCheckbox.tsx +25 -32
  318. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +23 -12
  319. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +7 -7
  320. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +20 -27
  321. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx +3 -3
  322. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +2 -2
  323. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +69 -182
  324. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx +1 -1
  325. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.tsx +9 -15
  326. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.ts +0 -1
  327. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +48 -25
  328. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +12 -5
  329. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +2 -1
  330. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +2 -1
  331. package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +3 -17
  332. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +9 -16
  333. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +18 -16
  334. package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -3
  335. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +75 -54
  336. package/lib/ocm/components/clusters/ClusterPage.tsx +2 -1
  337. package/lib/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.tsx +14 -3
  338. package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +1 -8
  339. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +18 -3
  340. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +1 -0
  341. package/lib/ocm/hooks/index.ts +1 -0
  342. package/lib/ocm/hooks/useOpenshiftVersions.tsx +1 -15
  343. package/lib/ocm/hooks/useSupportLevelsAPI.ts +65 -5
  344. package/lib/ocm/hooks/useUISettings.ts +71 -0
  345. package/lib/ocm/services/ClusterDetailsService.ts +3 -1
  346. package/lib/ocm/services/ClustersService.ts +0 -10
  347. package/lib/ocm/services/Day2ClusterService.ts +17 -3
  348. package/lib/ocm/services/UISettingsService.ts +17 -0
  349. package/lib/ocm/services/index.ts +1 -0
  350. package/lib/ocm/services/types.ts +5 -0
  351. package/package.json +3 -3
  352. package/build/@types/common/sevices/DateAndTime.d.ts.map +0 -1
  353. package/build/cjs/common/sevices/DateAndTime.js.map +0 -1
  354. /package/build/@types/common/{sevices → services}/DateAndTime.d.ts +0 -0
  355. /package/build/cjs/common/{sevices → services}/DateAndTime.js +0 -0
  356. /package/lib/common/{sevices → services}/DateAndTime.tsx +0 -0
@@ -19,7 +19,7 @@ import {
19
19
  } from '../../types';
20
20
  import ClusterDeploymentCredentials from './ClusterDeploymentCredentials';
21
21
  import { shouldShowClusterCredentials, shouldShowClusterInstallationProgress } from './helpers';
22
- import { EventsModalButton } from '../../../common/components/ui/eventsModal';
22
+ import { EventsModal } from '../../../common/components/ui/eventsModal';
23
23
  import ClusterDeploymentDetailsTable from './ClusterDeploymentDetailsTable';
24
24
  import { FetchSecret } from './types';
25
25
  import { getClusterProperties, getConsoleUrl } from '../helpers/clusterDeployment';
@@ -45,6 +45,7 @@ const ClusterDeploymentDetails: React.FC<ClusterDeploymentDetailsProps> = ({
45
45
  const [progressCardExpanded, setProgressCardExpanded] = React.useState(true);
46
46
  const [inventoryCardExpanded, setInventoryCardExpanded] = React.useState(true);
47
47
  const [detailsCardExpanded, setDetailsCardExpanded] = React.useState(true);
48
+ const [isEventsModalOpen, setIsEventsModalOpen] = React.useState(false);
48
49
 
49
50
  const clusterAgents = agents.filter(
50
51
  (a) =>
@@ -60,120 +61,129 @@ const ClusterDeploymentDetails: React.FC<ClusterDeploymentDetailsProps> = ({
60
61
  );
61
62
  const { t } = useTranslation();
62
63
  return (
63
- <Stack hasGutter>
64
- {shouldShowClusterInstallationProgress(agentClusterInstall) && (
64
+ <>
65
+ <Stack hasGutter>
66
+ {shouldShowClusterInstallationProgress(agentClusterInstall) && (
67
+ <StackItem>
68
+ <Card id="cluster-installation-progress-card" isExpanded={progressCardExpanded}>
69
+ <CardHeader
70
+ onExpand={() => setProgressCardExpanded(!progressCardExpanded)}
71
+ toggleButtonProps={{
72
+ id: 'progress-card-toggle-button',
73
+ 'aria-label': 'Cluster installation process',
74
+ 'aria-labelledby': 'titleId progress-card-toggle-button',
75
+ 'aria-expanded': progressCardExpanded,
76
+ }}
77
+ >
78
+ <CardTitle id="titleId">{t('ai:Cluster installation process')}</CardTitle>
79
+ </CardHeader>
80
+ <CardExpandableContent>
81
+ <CardBody>
82
+ <Stack hasGutter>
83
+ {shouldShowClusterCredentials(agentClusterInstall) && (
84
+ <StackItem>
85
+ <ClusterDeploymentCredentials
86
+ clusterDeployment={clusterDeployment}
87
+ agentClusterInstall={agentClusterInstall}
88
+ agents={clusterAgents}
89
+ fetchSecret={fetchSecret}
90
+ consoleUrl={getConsoleUrl(clusterDeployment)}
91
+ />
92
+ </StackItem>
93
+ )}
94
+ <StackItem>
95
+ <ClusterDeploymentKubeconfigDownload
96
+ clusterDeployment={clusterDeployment}
97
+ agentClusterInstall={agentClusterInstall}
98
+ fetchSecret={fetchSecret}
99
+ />{' '}
100
+ <Button
101
+ id="cluster-events-button"
102
+ variant={ButtonVariant.link}
103
+ style={{ textAlign: 'right' }}
104
+ onClick={() => setIsEventsModalOpen(true)}
105
+ >
106
+ {t('ai:View cluster events')}
107
+ </Button>
108
+ </StackItem>
109
+ </Stack>
110
+ </CardBody>
111
+ </CardExpandableContent>
112
+ </Card>
113
+ </StackItem>
114
+ )}
65
115
  <StackItem>
66
- <Card id="cluster-installation-progress-card" isExpanded={progressCardExpanded}>
116
+ <Card id="cluster-inventory-card" isExpanded={inventoryCardExpanded}>
67
117
  <CardHeader
68
- onExpand={() => setProgressCardExpanded(!progressCardExpanded)}
118
+ onExpand={() => setInventoryCardExpanded(!inventoryCardExpanded)}
69
119
  toggleButtonProps={{
70
- id: 'progress-card-toggle-button',
71
- 'aria-label': 'Cluster installation process',
72
- 'aria-labelledby': 'titleId progress-card-toggle-button',
73
- 'aria-expanded': progressCardExpanded,
120
+ id: 'inventory-card-toggle-button',
121
+ 'aria-label': 'Hosts inventory',
122
+ 'aria-labelledby': 'titleId inventory-card-toggle-button',
123
+ 'aria-expanded': inventoryCardExpanded,
74
124
  }}
75
125
  >
76
- <CardTitle id="titleId">{t('ai:Cluster installation process')}</CardTitle>
126
+ <CardTitle id="titleId">{t('ai:Hosts inventory')}</CardTitle>
77
127
  </CardHeader>
78
128
  <CardExpandableContent>
79
129
  <CardBody>
80
- <Stack hasGutter>
81
- {shouldShowClusterCredentials(agentClusterInstall) && (
82
- <StackItem>
83
- <ClusterDeploymentCredentials
84
- clusterDeployment={clusterDeployment}
85
- agentClusterInstall={agentClusterInstall}
86
- agents={clusterAgents}
87
- fetchSecret={fetchSecret}
88
- consoleUrl={getConsoleUrl(clusterDeployment)}
89
- />
90
- </StackItem>
91
- )}
92
- <StackItem>
93
- <ClusterDeploymentKubeconfigDownload
94
- clusterDeployment={clusterDeployment}
95
- agentClusterInstall={agentClusterInstall}
96
- fetchSecret={fetchSecret}
97
- />{' '}
98
- <EventsModalButton
99
- id="cluster-events-button"
100
- entityKind="cluster"
101
- cluster={cluster}
102
- title={t('ai:Cluster Events')}
103
- variant={ButtonVariant.link}
104
- style={{ textAlign: 'right' }}
105
- onFetchEvents={onFetchEvents}
106
- ButtonComponent={Button}
107
- disablePagination
108
- >
109
- {t('ai:View cluster events')}
110
- </EventsModalButton>
111
- </StackItem>
112
- </Stack>
130
+ <ClusterDeploymentDetailsTable
131
+ agents={clusterAgents}
132
+ agentClusterInstall={agentClusterInstall}
133
+ />
134
+ </CardBody>
135
+ </CardExpandableContent>
136
+ </Card>
137
+ </StackItem>
138
+ <StackItem>
139
+ <Card id="cluster-details-card" isExpanded={detailsCardExpanded}>
140
+ <CardHeader
141
+ onExpand={() => setDetailsCardExpanded(!detailsCardExpanded)}
142
+ toggleButtonProps={{
143
+ id: 'details-card-toggle-button',
144
+ 'aria-label': 'Details',
145
+ 'aria-labelledby': 'titleId details-card-toggle-button',
146
+ 'aria-expanded': detailsCardExpanded,
147
+ }}
148
+ >
149
+ <CardTitle id="titleId">{t('ai:Details')}</CardTitle>
150
+ </CardHeader>
151
+ <CardExpandableContent>
152
+ <CardBody>
153
+ <ClusterPropertiesList
154
+ leftItems={[
155
+ clusterProperties.name,
156
+ clusterProperties.openshiftVersion,
157
+ clusterProperties.clusterId,
158
+ clusterProperties.installedTimestamp,
159
+ clusterProperties.baseDnsDomain,
160
+ ]}
161
+ rightItems={[
162
+ clusterProperties.apiVip,
163
+ clusterProperties.ingressVip,
164
+ clusterProperties.clusterNetworkCidr,
165
+ clusterProperties.clusterNetworkHostPrefix,
166
+ clusterProperties.serviceNetworkCidr,
167
+ ]}
168
+ />
113
169
  </CardBody>
114
170
  </CardExpandableContent>
115
171
  </Card>
116
172
  </StackItem>
173
+ </Stack>
174
+ {isEventsModalOpen && (
175
+ <EventsModal
176
+ entityKind="cluster"
177
+ cluster={cluster}
178
+ title={t('ai:Cluster Events')}
179
+ onFetchEvents={onFetchEvents}
180
+ hostId={undefined}
181
+ disablePagination
182
+ isOpen
183
+ onClose={() => setIsEventsModalOpen(false)}
184
+ />
117
185
  )}
118
- <StackItem>
119
- <Card id="cluster-inventory-card" isExpanded={inventoryCardExpanded}>
120
- <CardHeader
121
- onExpand={() => setInventoryCardExpanded(!inventoryCardExpanded)}
122
- toggleButtonProps={{
123
- id: 'inventory-card-toggle-button',
124
- 'aria-label': 'Hosts inventory',
125
- 'aria-labelledby': 'titleId inventory-card-toggle-button',
126
- 'aria-expanded': inventoryCardExpanded,
127
- }}
128
- >
129
- <CardTitle id="titleId">{t('ai:Hosts inventory')}</CardTitle>
130
- </CardHeader>
131
- <CardExpandableContent>
132
- <CardBody>
133
- <ClusterDeploymentDetailsTable
134
- agents={clusterAgents}
135
- agentClusterInstall={agentClusterInstall}
136
- />
137
- </CardBody>
138
- </CardExpandableContent>
139
- </Card>
140
- </StackItem>
141
- <StackItem>
142
- <Card id="cluster-details-card" isExpanded={detailsCardExpanded}>
143
- <CardHeader
144
- onExpand={() => setDetailsCardExpanded(!detailsCardExpanded)}
145
- toggleButtonProps={{
146
- id: 'details-card-toggle-button',
147
- 'aria-label': 'Details',
148
- 'aria-labelledby': 'titleId details-card-toggle-button',
149
- 'aria-expanded': detailsCardExpanded,
150
- }}
151
- >
152
- <CardTitle id="titleId">{t('ai:Details')}</CardTitle>
153
- </CardHeader>
154
- <CardExpandableContent>
155
- <CardBody>
156
- <ClusterPropertiesList
157
- leftItems={[
158
- clusterProperties.name,
159
- clusterProperties.openshiftVersion,
160
- clusterProperties.clusterId,
161
- clusterProperties.installedTimestamp,
162
- clusterProperties.baseDnsDomain,
163
- ]}
164
- rightItems={[
165
- clusterProperties.apiVip,
166
- clusterProperties.ingressVip,
167
- clusterProperties.clusterNetworkCidr,
168
- clusterProperties.clusterNetworkHostPrefix,
169
- clusterProperties.serviceNetworkCidr,
170
- ]}
171
- />
172
- </CardBody>
173
- </CardExpandableContent>
174
- </Card>
175
- </StackItem>
176
- </Stack>
186
+ </>
177
187
  );
178
188
  };
179
189
 
@@ -17,7 +17,7 @@ import { ClusterDeploymentDetailsStepProps, ClusterDeploymentDetailsValues } fro
17
17
  import ClusterDeploymentWizardFooter from './ClusterDeploymentWizardFooter';
18
18
  import ClusterDeploymentWizardContext from './ClusterDeploymentWizardContext';
19
19
  import ClusterDeploymentWizardStep from './ClusterDeploymentWizardStep';
20
- import { getAICluster, getOCPVersions } from '../helpers';
20
+ import { getAICluster, getNetworkType, getOCPVersions } from '../helpers';
21
21
  import {
22
22
  AgentClusterInstallK8sResource,
23
23
  AgentK8sResource,
@@ -47,7 +47,10 @@ export const useDetailsFormik = ({
47
47
  usedClusterNames,
48
48
  infraEnv,
49
49
  isNutanix,
50
- }: UseDetailsFormikArgs): [ClusterDetailsValues, Lazy] => {
50
+ }: UseDetailsFormikArgs): [
51
+ ClusterDetailsValues & { networkType: 'OpenShiftSDN' | 'OVNKubernetes' },
52
+ Lazy,
53
+ ] => {
51
54
  const { t } = useTranslation();
52
55
  const featureSupportLevels = useFeatureSupportLevel();
53
56
  const ocpVersions = getOCPVersions(clusterImages, isNutanix);
@@ -64,12 +67,21 @@ export const useDetailsFormik = ({
64
67
  [agentClusterInstall, clusterDeployment, agents, infraEnv],
65
68
  );
66
69
  const initialValues = React.useMemo(
67
- () =>
68
- getClusterDetailsInitialValues({
70
+ () => {
71
+ const initValues = getClusterDetailsInitialValues({
69
72
  managedDomains: [], // not supported
70
73
  cluster,
71
74
  ocpVersions,
72
- }),
75
+ });
76
+
77
+ const ocpVersion = ocpVersions.find(
78
+ (ocpVersion) => ocpVersion.value === initValues.openshiftVersion,
79
+ );
80
+ return {
81
+ ...initValues,
82
+ networkType: getNetworkType(ocpVersion),
83
+ };
84
+ },
73
85
  [], // eslint-disable-line react-hooks/exhaustive-deps
74
86
  );
75
87
 
@@ -15,6 +15,7 @@ import { ClusterDetailsValues } from '../../../common/components/clusterWizard/t
15
15
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
16
16
  import ArmCheckbox from './ArmCheckbox';
17
17
  import { SNOControlGroup } from '../../../common';
18
+ import { getNetworkType } from '../helpers';
18
19
 
19
20
  export type ClusterDetailsFormFieldsProps = {
20
21
  isEditFlow: boolean;
@@ -49,7 +50,7 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
49
50
  extensionAfter,
50
51
  isNutanix,
51
52
  }) => {
52
- const { values } = useFormikContext<ClusterDetailsValues>();
53
+ const { values, setFieldValue } = useFormikContext<ClusterDetailsValues>();
53
54
  const { name, baseDnsDomain, highAvailabilityMode } = values;
54
55
  const nameInputRef = React.useRef<HTMLInputElement>();
55
56
  React.useEffect(() => {
@@ -99,7 +100,13 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
99
100
  {t('ai:OpenShift')} {forceOpenshiftVersion}
100
101
  </StaticTextField>
101
102
  ) : (
102
- <OpenShiftVersionSelect versions={versions} />
103
+ <OpenShiftVersionSelect
104
+ versions={versions}
105
+ onChange={(value) => {
106
+ const ocpVersion = versions.find((v) => v.value === value);
107
+ setFieldValue('networkType', getNetworkType(ocpVersion));
108
+ }}
109
+ />
103
110
  )}
104
111
  {!isNutanix && (
105
112
  <>
@@ -38,16 +38,19 @@ export const shouldShowClusterInstallationProgress = (
38
38
  agentClusterInstall?: AgentClusterInstallK8sResource,
39
39
  ) => {
40
40
  const [clusterStatus] = getClusterStatus(agentClusterInstall);
41
- return [
42
- 'preparing-for-installation',
43
- 'installing',
44
- 'installing-pending-user-action',
45
- 'finalizing',
46
- 'installed',
47
- 'error',
48
- 'cancelled',
49
- 'adding-hosts',
50
- ].includes(clusterStatus);
41
+ return (
42
+ [
43
+ 'preparing-for-installation',
44
+ 'installing',
45
+ 'installing-pending-user-action',
46
+ 'finalizing',
47
+ 'installed',
48
+ 'error',
49
+ 'cancelled',
50
+ 'adding-hosts',
51
+ 'ready',
52
+ ].includes(clusterStatus) && !agentClusterInstall?.spec?.holdInstallation
53
+ );
51
54
  };
52
55
 
53
56
  export const isInstallationInProgress = (agentClusterInstall: AgentClusterInstallK8sResource) => {
@@ -2,7 +2,7 @@ import { AgentK8sResource } from '../../../types';
2
2
  import { AgentMachineK8sResource, HostedClusterK8sResource, NodePoolK8sResource } from '../types';
3
3
 
4
4
  const CLUSTER_NAME_LABEL = 'cluster.x-k8s.io/cluster-name';
5
- const NODEPOOL_NAME_ANNOTATION = 'cluster.x-k8s.io/cloned-from-name';
5
+ const NODEPOOL_NAME_ANNOTATION = 'hypershift.openshift.io/nodePool';
6
6
 
7
7
  export const getNodepoolAgents = (
8
8
  nodePool: NodePoolK8sResource,
@@ -16,7 +16,8 @@ export const getNodepoolAgents = (
16
16
  am.metadata?.namespace ===
17
17
  `${hostedCluster.metadata?.namespace || ''}-${hostedCluster.metadata?.name || ''}` &&
18
18
  am.metadata?.labels?.[CLUSTER_NAME_LABEL] === hostedCluster.spec.infraID &&
19
- am.metadata?.annotations?.[NODEPOOL_NAME_ANNOTATION] === nodePool.metadata?.name &&
19
+ am.metadata?.annotations?.[NODEPOOL_NAME_ANNOTATION] ===
20
+ `${nodePool.metadata?.namespace || ''}/${nodePool.metadata?.name || ''}` &&
20
21
  am.status?.agentRef?.name &&
21
22
  am.status?.agentRef?.namespace,
22
23
  )
@@ -31,7 +31,6 @@ import {
31
31
  RadioField,
32
32
  PopoverIcon,
33
33
  pullSecretValidationSchema,
34
- OCP_STATIC_IP_DOC,
35
34
  CheckboxField,
36
35
  AdditionalNTPSourcesField,
37
36
  richNameValidationSchema,
@@ -42,6 +41,7 @@ import {
42
41
  locationValidationMessages,
43
42
  ntpSourceValidationSchema,
44
43
  CpuArchitecture,
44
+ getOCPStaticIPDocLink,
45
45
  } from '../../../common';
46
46
 
47
47
  import './infra-env.css';
@@ -118,6 +118,7 @@ type InfraEnvFormProps = {
118
118
  onValuesChanged?: (values: EnvironmentStepFormValues) => void;
119
119
  pullSecret?: string;
120
120
  sshPublicKey?: string;
121
+ docVersion: string;
121
122
  };
122
123
 
123
124
  const InfraEnvForm: React.FC<InfraEnvFormProps> = ({
@@ -125,6 +126,7 @@ const InfraEnvForm: React.FC<InfraEnvFormProps> = ({
125
126
  children,
126
127
  pullSecret,
127
128
  sshPublicKey,
129
+ docVersion,
128
130
  }) => {
129
131
  const { values, setFieldValue } = useFormikContext<EnvironmentStepFormValues>();
130
132
  const { t } = useTranslation();
@@ -194,7 +196,13 @@ const InfraEnvForm: React.FC<InfraEnvFormProps> = ({
194
196
  icon={<ExternalLinkAltIcon />}
195
197
  iconPosition="right"
196
198
  isInline
197
- onClick={() => window.open(OCP_STATIC_IP_DOC, '_blank', 'noopener')}
199
+ onClick={() =>
200
+ window.open(
201
+ getOCPStaticIPDocLink(docVersion),
202
+ '_blank',
203
+ 'noopener',
204
+ )
205
+ }
198
206
  >
199
207
  {t('ai:View documentation')}
200
208
  </Button>
@@ -282,6 +290,7 @@ type InfraEnvFormPageProps = InfraEnvFormProps & {
282
290
  formRef: React.Ref<FormikProps<EnvironmentStepFormValues>>;
283
291
  pullSecret?: string;
284
292
  sshPublicKey?: string;
293
+ docVersion: string;
285
294
  };
286
295
 
287
296
  export const InfraEnvFormPage: React.FC<InfraEnvFormPageProps> = ({
@@ -88,3 +88,8 @@ export const getMajorMinorVersion = (version = '') => {
88
88
  const match = /[0-9].[0-9][0-9]?/g.exec(version);
89
89
  return match?.[0] || '';
90
90
  };
91
+
92
+ export const getNetworkType = (
93
+ ocpVersion: OpenshiftVersionOptionType | undefined,
94
+ ): 'OVNKubernetes' | 'OpenShiftSDN' =>
95
+ parseFloat(getMajorMinorVersion(ocpVersion?.version)) >= 4.12 ? 'OVNKubernetes' : 'OpenShiftSDN';
@@ -74,6 +74,7 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
74
74
  hasDHCP={hasDHCP}
75
75
  isIPXE={isIPXE}
76
76
  allowEmpty
77
+ docVersion={docVersion}
77
78
  />
78
79
  )}
79
80
  {dialogType === 'download' && (
@@ -90,6 +91,7 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
90
91
  infraEnv={infraEnv}
91
92
  onReset={agentClusterInstall ? () => setDialogType('config') : undefined}
92
93
  hasDHCP={hasDHCP}
94
+ docVersion={docVersion}
93
95
  />
94
96
  )}
95
97
  </>
@@ -104,11 +106,13 @@ const GeneratingIsoDownload = ({
104
106
  onClose,
105
107
  onReset,
106
108
  hasDHCP,
109
+ docVersion,
107
110
  }: {
108
111
  infraEnv: InfraEnvK8sResource;
109
112
  onClose: VoidFunction;
110
113
  onReset?: VoidFunction;
111
114
  hasDHCP: boolean;
115
+ docVersion: string;
112
116
  }) => {
113
117
  const { t } = useTranslation();
114
118
  return infraEnv.status?.isoDownloadURL ? (
@@ -117,6 +121,7 @@ const GeneratingIsoDownload = ({
117
121
  downloadUrl={infraEnv.status.isoDownloadURL}
118
122
  onReset={onReset}
119
123
  hasDHCP={hasDHCP}
124
+ docVersion={docVersion}
120
125
  />
121
126
  ) : (
122
127
  <EmptyState>
@@ -3,7 +3,7 @@ import { AccessTokenCfg } from '@openshift-assisted/types/accounts-management-se
3
3
 
4
4
  export const AccessTokenAPI = {
5
5
  makeBaseURI() {
6
- return `/api/accounts_mgmt/v1/access_token`;
6
+ return '/api/accounts_mgmt/v1/access_token';
7
7
  },
8
8
 
9
9
  async fetchPullSecret() {
@@ -0,0 +1,13 @@
1
+ import { ocmClient as client } from '../axiosClient';
2
+ import { Account } from '@openshift-assisted/types/accounts-management-service';
3
+
4
+ export const CurrentAccountApi = {
5
+ makeBaseURI() {
6
+ return '/api/accounts_mgmt/v1/current_account';
7
+ },
8
+
9
+ async getCurrentAccount() {
10
+ const response = await client?.get<Account>(CurrentAccountApi.makeBaseURI());
11
+ return response?.data;
12
+ },
13
+ };
@@ -0,0 +1,15 @@
1
+ import { ocmClient as client } from '../axiosClient';
2
+ import { Organization } from '@openshift-assisted/types/accounts-management-service';
3
+
4
+ export const OrganizationsApi = {
5
+ makeBaseURI() {
6
+ return '/api/accounts_mgmt/v1/organizations';
7
+ },
8
+
9
+ async getOrganization(orgId: string, fetchCapabilities = true, fetchLabels = false) {
10
+ const response = await client?.get<Organization>(`${OrganizationsApi.makeBaseURI()}/${orgId}`, {
11
+ params: { fetchCapabilities, fetchLabels },
12
+ });
13
+ return response?.data;
14
+ },
15
+ };
@@ -9,12 +9,16 @@ const NewFeatureSupportLevelsAPI = {
9
9
  return `/v2/support-levels`;
10
10
  },
11
11
 
12
- featuresSupportLevel(openshiftVersion: string, cpuArchitecture?: string) {
13
- let queryParams = '?';
14
- queryParams += openshiftVersion ? `openshift_version=${openshiftVersion}&` : '';
15
- queryParams += cpuArchitecture ? `cpu_architecture=${cpuArchitecture}` : '';
12
+ featuresSupportLevel(openshiftVersion: string, cpuArchitecture?: string, platformType?: string) {
16
13
  return clientWithoutCaseConverter.get<FeaturesSupportsLevel>(
17
- `${NewFeatureSupportLevelsAPI.makeBaseURI()}/features${queryParams}`,
14
+ `${NewFeatureSupportLevelsAPI.makeBaseURI()}/features`,
15
+ {
16
+ params: {
17
+ openshift_version: openshiftVersion,
18
+ cpu_architecture: cpuArchitecture,
19
+ platform_type: platformType,
20
+ },
21
+ },
18
22
  );
19
23
  },
20
24
 
@@ -0,0 +1,24 @@
1
+ import { clientWithoutCaseConverter as client } from '../../api/axiosClient';
2
+ import { Cluster } from '@openshift-assisted/types/./assisted-installer-service';
3
+
4
+ const config = {
5
+ headers: {
6
+ 'Content-Type': 'application/json',
7
+ },
8
+ };
9
+
10
+ const UISettingsAPI = {
11
+ makeBaseURI(clusterId: Cluster['id']) {
12
+ return `/v2/clusters/${clusterId ? clusterId : ''}/ui-settings`;
13
+ },
14
+
15
+ get(clusterId: Cluster['id']) {
16
+ return client.get<string>(UISettingsAPI.makeBaseURI(clusterId));
17
+ },
18
+
19
+ put(clusterId: Cluster['id'], data: string) {
20
+ return client.put<string>(UISettingsAPI.makeBaseURI(clusterId), data, config);
21
+ },
22
+ };
23
+
24
+ export default UISettingsAPI;
@@ -6,3 +6,4 @@ export { default as HostsAPI } from './HostsAPI';
6
6
  export { default as InfraEnvsAPI } from './InfraEnvsAPI';
7
7
  export { default as EventsAPI } from './EventsAPI';
8
8
  export { default as NewFeatureSupportLevelsAPI } from './NewFeatureSupportLevelsAPI';
9
+ export { default as UISettingsAPI } from './UISettingsAPI';
@@ -0,0 +1,28 @@
1
+ import { ocmClient as client } from '../axiosClient';
2
+ import {
3
+ AccessReviewResponse,
4
+ FeatureReviewResponse,
5
+ SelfAccessReview,
6
+ } from '@openshift-assisted/types/authorization-service';
7
+
8
+ export const AuthorizationApi = {
9
+ makeBaseURI() {
10
+ return '/api/authorizations/v1/';
11
+ },
12
+
13
+ async selfFeatureReview(featureId: string) {
14
+ const response = await client?.post<FeatureReviewResponse>(
15
+ `${AuthorizationApi.makeBaseURI()}/self_feature_review`,
16
+ { feature: featureId },
17
+ );
18
+ return response?.data;
19
+ },
20
+
21
+ async selfAccessReview(params: SelfAccessReview) {
22
+ const response = await client?.post<AccessReviewResponse>(
23
+ `${AuthorizationApi.makeBaseURI()}/self_access_review`,
24
+ params,
25
+ );
26
+ return response?.data;
27
+ },
28
+ };
@@ -27,10 +27,10 @@ import { ProxyFieldsType, StatusErrorType } from '../../types';
27
27
  import ProxyFields from './ProxyFields';
28
28
  import UploadSSH from './UploadSSH';
29
29
  import DiscoveryImageTypeControlGroup from './DiscoveryImageTypeControlGroup';
30
- import { OCP_STATIC_IP_DOC } from '../../config/constants';
30
+ import { getOCPStaticIPDocLink } from '../../config/constants';
31
31
  import { useTranslation } from '../../hooks/use-translation-wrapper';
32
32
 
33
- export const StaticIPInfo: React.FC = () => {
33
+ export const StaticIPInfo = ({ docVersion }: { docVersion?: string }) => {
34
34
  const { t } = useTranslation();
35
35
  return (
36
36
  <Alert
@@ -45,7 +45,7 @@ export const StaticIPInfo: React.FC = () => {
45
45
  icon={<ExternalLinkAltIcon />}
46
46
  iconPosition="right"
47
47
  isInline
48
- onClick={() => window.open(OCP_STATIC_IP_DOC, '_blank', 'noopener')}
48
+ onClick={() => window.open(getOCPStaticIPDocLink(docVersion), '_blank', 'noopener')}
49
49
  >
50
50
  {t('ai:View documentation')}
51
51
  </Button>
@@ -77,6 +77,7 @@ type DiscoveryImageConfigFormProps = Proxy & {
77
77
  imageType?: ImageType;
78
78
  isIPXE?: boolean;
79
79
  allowEmpty?: boolean;
80
+ docVersion: string;
80
81
  };
81
82
 
82
83
  export const DiscoveryImageConfigForm: React.FC<DiscoveryImageConfigFormProps> = ({
@@ -91,6 +92,7 @@ export const DiscoveryImageConfigForm: React.FC<DiscoveryImageConfigFormProps> =
91
92
  hasDHCP,
92
93
  isIPXE,
93
94
  allowEmpty,
95
+ docVersion,
94
96
  }) => {
95
97
  const initialValues: DiscoveryImageFormValues = {
96
98
  sshPublicKey: sshPublicKey || '',
@@ -127,7 +129,7 @@ export const DiscoveryImageConfigForm: React.FC<DiscoveryImageConfigFormProps> =
127
129
  </StackItem>
128
130
  {hasDHCP === false && (
129
131
  <StackItem>
130
- <StaticIPInfo />
132
+ <StaticIPInfo docVersion={docVersion} />
131
133
  </StackItem>
132
134
  )}
133
135
  <StackItem>
@@ -104,7 +104,11 @@ const DiskEncryptionControlGroup = ({
104
104
  condition={enableDiskEncryptionOnMasters || (enableDiskEncryptionOnWorkers && !isSNO)}
105
105
  >
106
106
  <StackItem>
107
- <DiskEncryptionMode diskEncryptionMode={diskEncryptionMode} isDisabled={isDisabled} />
107
+ <DiskEncryptionMode
108
+ diskEncryptionMode={diskEncryptionMode}
109
+ isDisabled={isDisabled}
110
+ tooltipProps={tooltipProps}
111
+ />
108
112
  </StackItem>
109
113
  </RenderIf>
110
114
  </Stack>