@openshift-assisted/ui-lib 2.9.5-cim → 2.9.7-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 (422) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts +1 -0
  2. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts +1 -0
  4. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts +2 -1
  6. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  8. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.d.ts.map +1 -1
  9. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts +1 -0
  10. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +1 -1
  11. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +1 -1
  12. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  13. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts +1 -0
  14. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  15. package/build/@types/cim/components/ClusterDeployment/types.d.ts +6 -3
  16. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  17. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  18. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts +1 -1
  19. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts.map +1 -1
  20. package/build/@types/cim/components/InfraEnv/types.d.ts +3 -1
  21. package/build/@types/cim/components/InfraEnv/types.d.ts.map +1 -1
  22. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  23. package/build/@types/cim/components/helpers/versions.d.ts +1 -1
  24. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  25. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  26. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  27. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts +5 -0
  28. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts.map +1 -0
  29. package/build/@types/cim/components/modals/types.d.ts +2 -0
  30. package/build/@types/cim/components/modals/types.d.ts.map +1 -1
  31. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +1 -3
  32. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  33. package/build/@types/common/api/axiosClient.d.ts.map +1 -1
  34. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  35. package/build/@types/common/components/clusterWizard/types.d.ts +1 -0
  36. package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
  37. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts +4 -0
  38. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  39. package/build/@types/common/components/ui/formik/SingleNodeCheckbox.d.ts.map +1 -1
  40. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -1
  41. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  42. package/build/@types/common/config/constants.d.ts.map +1 -1
  43. package/build/@types/common/features/featureGate.d.ts +1 -2
  44. package/build/@types/common/features/featureGate.d.ts.map +1 -1
  45. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.d.ts.map +1 -1
  46. package/build/@types/ocm/components/Routes.d.ts +6 -0
  47. package/build/@types/ocm/components/Routes.d.ts.map +1 -0
  48. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageForm.d.ts.map +1 -1
  49. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
  50. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  51. package/build/@types/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.d.ts.map +1 -1
  52. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
  53. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  54. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  55. package/build/@types/ocm/components/clusterConfiguration/operators/CnvHostRequirements.d.ts.map +1 -1
  56. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts +13 -5
  57. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
  58. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts +2 -2
  60. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  65. package/build/@types/ocm/components/clusterWizard/CustomManifestStep.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  67. package/build/@types/ocm/components/clusterWizard/StaticIp.d.ts.map +1 -1
  68. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts +2 -0
  69. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -0
  70. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  71. package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
  72. package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusters/NewClusterPage.d.ts.map +1 -1
  74. package/build/@types/ocm/components/clusters/clusterPolling.d.ts +1 -1
  75. package/build/@types/ocm/components/clusters/clusterPolling.d.ts.map +1 -1
  76. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
  77. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  78. package/build/@types/ocm/components/index.d.ts +1 -1
  79. package/build/@types/ocm/hooks/index.d.ts +0 -1
  80. package/build/@types/ocm/hooks/index.d.ts.map +1 -1
  81. package/build/@types/ocm/index.d.ts +0 -1
  82. package/build/@types/ocm/index.d.ts.map +1 -1
  83. package/build/@types/ocm/store/hooks.d.ts +5 -1
  84. package/build/@types/ocm/store/hooks.d.ts.map +1 -1
  85. package/build/@types/ocm/store/index.d.ts +5 -36
  86. package/build/@types/ocm/store/index.d.ts.map +1 -1
  87. package/build/@types/ocm/{selectors/clusters.d.ts → store/slices/clusters/selectors.d.ts} +15 -11
  88. package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -0
  89. package/build/@types/ocm/{reducers/clusters/clustersSlice.d.ts → store/slices/clusters/slice.d.ts} +4 -4
  90. package/build/@types/ocm/store/slices/clusters/slice.d.ts.map +1 -0
  91. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts +14 -0
  92. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts.map +1 -0
  93. package/build/@types/ocm/{reducers/clusters/currentClusterSlice.d.ts → store/slices/current-cluster/slice.d.ts} +5 -5
  94. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -0
  95. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +9 -0
  96. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -0
  97. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts +7 -0
  98. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts.map +1 -0
  99. package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/selectors.d.ts +4 -3
  100. package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts.map +1 -0
  101. package/build/@types/ocm/store/slices/infra-envs/slice.d.ts.map +1 -0
  102. package/build/@types/ocm/store/slices/infra-envs/thunks.d.ts.map +1 -0
  103. package/build/@types/ocm/store/store-day1.d.ts +32 -0
  104. package/build/@types/ocm/store/store-day1.d.ts.map +1 -0
  105. package/build/@types/ocm/store/store-day2.d.ts +10 -0
  106. package/build/@types/ocm/store/store-day2.d.ts.map +1 -0
  107. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js +3 -2
  108. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +1 -1
  109. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js +3 -3
  110. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +1 -1
  111. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +5 -4
  112. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
  113. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js +2 -2
  114. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +1 -1
  115. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js +14 -9
  116. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js.map +1 -1
  117. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js +2 -2
  118. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +1 -1
  119. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js +2 -2
  120. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +1 -1
  121. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +4 -4
  122. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  123. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +4 -3
  124. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  125. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +9 -0
  126. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  127. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +1 -1
  128. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  129. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js +23 -10
  130. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js.map +1 -1
  131. package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
  132. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  133. package/build/cjs/cim/components/helpers/versions.js +9 -2
  134. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  135. package/build/cjs/cim/components/modals/AddBmcHostModal.js +3 -1
  136. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  137. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +3 -1
  138. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  139. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js +16 -0
  140. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js.map +1 -0
  141. package/build/cjs/common/api/assisted-service/ClustersAPI.js +0 -6
  142. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  143. package/build/cjs/common/api/axiosClient.js +2 -4
  144. package/build/cjs/common/api/axiosClient.js.map +1 -1
  145. package/build/cjs/common/components/clusterWizard/ReviewValidations.js +11 -3
  146. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  147. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +2 -2
  148. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +1 -1
  149. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  150. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js +1 -3
  151. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js.map +1 -1
  152. package/build/cjs/common/components/ui/formik/validationSchemas.js +8 -16
  153. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  154. package/build/cjs/common/config/constants.js +1 -3
  155. package/build/cjs/common/config/constants.js.map +1 -1
  156. package/build/cjs/common/features/featureGate.js +1 -11
  157. package/build/cjs/common/features/featureGate.js.map +1 -1
  158. package/build/cjs/common/utils.js +1 -1
  159. package/build/cjs/common/utils.js.map +1 -1
  160. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js +9 -5
  161. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js.map +1 -1
  162. package/build/cjs/ocm/components/Routes.js +29 -0
  163. package/build/cjs/ocm/components/Routes.js.map +1 -0
  164. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js +4 -4
  165. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +1 -1
  167. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
  168. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +0 -1
  169. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  170. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -4
  171. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js +1 -2
  173. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +1 -1
  175. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +1 -1
  177. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +1 -1
  179. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +8 -12
  181. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  182. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +5 -6
  183. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js +1 -1
  185. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +1 -1
  186. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +1 -1
  187. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +1 -1
  188. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js +1 -1
  189. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js.map +1 -1
  190. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +61 -18
  191. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  192. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +2 -2
  193. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
  194. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js +8 -4
  195. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js.map +1 -1
  196. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js +3 -3
  197. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js.map +1 -1
  198. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +1 -1
  199. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
  200. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js +1 -1
  201. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js.map +1 -1
  202. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js +1 -1
  203. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js.map +1 -1
  204. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +4 -4
  205. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  206. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -2
  207. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
  208. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +2 -2
  209. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
  210. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +2 -2
  211. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  212. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +2 -2
  213. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  214. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +10 -9
  215. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  216. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +4 -2
  217. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  218. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js +1 -1
  219. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js.map +1 -1
  220. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js +4 -4
  221. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
  222. package/build/cjs/ocm/components/clusterWizard/Operators.js +3 -3
  223. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  224. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +4 -9
  225. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  226. package/build/cjs/ocm/components/clusterWizard/StaticIp.js +1 -1
  227. package/build/cjs/ocm/components/clusterWizard/StaticIp.js.map +1 -1
  228. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +18 -0
  229. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -0
  230. package/build/cjs/ocm/components/clusters/ClusterPage.js +4 -9
  231. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  232. package/build/cjs/ocm/components/clusters/Clusters.js +8 -8
  233. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  234. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +6 -6
  235. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
  236. package/build/cjs/ocm/components/clusters/ClustersTable.js +2 -2
  237. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  238. package/build/cjs/ocm/components/clusters/NewClusterPage.js +2 -2
  239. package/build/cjs/ocm/components/clusters/NewClusterPage.js.map +1 -1
  240. package/build/cjs/ocm/components/clusters/clusterPolling.js +11 -11
  241. package/build/cjs/ocm/components/clusters/clusterPolling.js.map +1 -1
  242. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +20 -8
  243. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  244. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +1 -1
  245. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  246. package/build/cjs/ocm/components/hosts/use-hosts-table.js +20 -20
  247. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  248. package/build/cjs/ocm/components/hosts/utils.js +2 -2
  249. package/build/cjs/ocm/components/hosts/utils.js.map +1 -1
  250. package/build/cjs/ocm/components/index.js +1 -1
  251. package/build/cjs/ocm/components/ui/OcmFormFields.js +1 -1
  252. package/build/cjs/ocm/components/ui/OcmFormFields.js.map +1 -1
  253. package/build/cjs/ocm/hooks/index.js +1 -3
  254. package/build/cjs/ocm/hooks/index.js.map +1 -1
  255. package/build/cjs/ocm/hooks/useSetClusterPermissions.js +2 -2
  256. package/build/cjs/ocm/hooks/useSetClusterPermissions.js.map +1 -1
  257. package/build/cjs/ocm/index.js +1 -2
  258. package/build/cjs/ocm/index.js.map +1 -1
  259. package/build/cjs/ocm/store/hooks.js +3 -1
  260. package/build/cjs/ocm/store/hooks.js.map +1 -1
  261. package/build/cjs/ocm/store/index.js +10 -19
  262. package/build/cjs/ocm/store/index.js.map +1 -1
  263. package/build/cjs/ocm/{selectors/clusters.js → store/slices/clusters/selectors.js} +4 -4
  264. package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -0
  265. package/build/cjs/ocm/{reducers/clusters/clustersSlice.js → store/slices/clusters/slice.js} +8 -7
  266. package/build/cjs/ocm/store/slices/clusters/slice.js.map +1 -0
  267. package/build/cjs/ocm/{selectors/currentCluster.js → store/slices/current-cluster/selectors.js} +1 -1
  268. package/build/cjs/ocm/store/slices/current-cluster/selectors.js.map +1 -0
  269. package/build/cjs/ocm/{reducers/clusters/currentClusterSlice.js → store/slices/current-cluster/slice.js} +12 -13
  270. package/build/cjs/ocm/store/slices/current-cluster/slice.js.map +1 -0
  271. package/build/cjs/ocm/store/slices/feature-flags/selectors.js +11 -0
  272. package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -0
  273. package/build/cjs/ocm/store/slices/feature-flags/slice.js +16 -0
  274. package/build/cjs/ocm/store/slices/feature-flags/slice.js.map +1 -0
  275. package/build/cjs/ocm/store/slices/infra-envs/selectors.js.map +1 -0
  276. package/build/cjs/ocm/store/slices/infra-envs/slice.js.map +1 -0
  277. package/build/cjs/ocm/store/slices/infra-envs/thunks.js.map +1 -0
  278. package/build/cjs/ocm/store/store-day1.js +24 -0
  279. package/build/cjs/ocm/store/store-day1.js.map +1 -0
  280. package/build/cjs/ocm/store/store-day2.js +20 -0
  281. package/build/cjs/ocm/store/store-day2.js.map +1 -0
  282. package/lib/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.tsx +8 -1
  283. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +7 -1
  284. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +6 -1
  285. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.tsx +2 -0
  286. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.tsx +14 -12
  287. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.tsx +3 -1
  288. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx +3 -0
  289. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +4 -0
  290. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +8 -2
  291. package/lib/cim/components/ClusterDeployment/types.ts +6 -3
  292. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +10 -0
  293. package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +1 -1
  294. package/lib/cim/components/InfraEnv/AddHostDropdown.tsx +45 -18
  295. package/lib/cim/components/InfraEnv/types.ts +4 -1
  296. package/lib/cim/components/helpers/toAssisted.ts +3 -0
  297. package/lib/cim/components/helpers/versions.ts +8 -1
  298. package/lib/cim/components/modals/AddBmcHostModal.tsx +3 -0
  299. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +3 -0
  300. package/lib/cim/components/modals/ProvisioningConfigErrorAlert.tsx +18 -0
  301. package/lib/cim/components/modals/types.ts +2 -0
  302. package/lib/common/api/assisted-service/ClustersAPI.ts +0 -9
  303. package/lib/common/api/axiosClient.ts +2 -3
  304. package/lib/common/components/clusterWizard/ReviewValidations.tsx +12 -1
  305. package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +2 -2
  306. package/lib/common/components/clusterWizard/types.ts +1 -0
  307. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +9 -0
  308. package/lib/common/components/ui/formik/SingleNodeCheckbox.tsx +1 -3
  309. package/lib/common/components/ui/formik/validationSchemas.test.ts +4 -22
  310. package/lib/common/components/ui/formik/validationSchemas.ts +13 -22
  311. package/lib/common/config/constants.ts +1 -3
  312. package/lib/common/features/featureGate.tsx +1 -19
  313. package/lib/common/utils.ts +2 -2
  314. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.tsx +16 -11
  315. package/lib/ocm/components/Routes.tsx +34 -0
  316. package/lib/ocm/components/clusterConfiguration/DiscoveryImageForm.tsx +5 -1
  317. package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +1 -1
  318. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +0 -2
  319. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +6 -10
  320. package/lib/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.tsx +2 -3
  321. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +1 -1
  322. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +1 -1
  323. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +1 -1
  324. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +6 -19
  325. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +8 -6
  326. package/lib/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx +1 -1
  327. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +1 -1
  328. package/lib/ocm/components/clusterConfiguration/operators/CnvHostRequirements.tsx +1 -1
  329. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +129 -42
  330. package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +10 -8
  331. package/lib/ocm/components/clusterConfiguration/platformIntegration/constants.tsx +7 -3
  332. package/lib/ocm/components/clusterConfiguration/review/ReviewStep.tsx +2 -2
  333. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +1 -1
  334. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.tsx +3 -3
  335. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.tsx +1 -1
  336. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +6 -4
  337. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +3 -3
  338. package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +1 -1
  339. package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +1 -1
  340. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +1 -1
  341. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +12 -7
  342. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +5 -3
  343. package/lib/ocm/components/clusterWizard/CustomManifestStep.tsx +1 -1
  344. package/lib/ocm/components/clusterWizard/HostDiscovery.tsx +2 -2
  345. package/lib/ocm/components/clusterWizard/Operators.tsx +1 -1
  346. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +6 -19
  347. package/lib/ocm/components/clusterWizard/StaticIp.tsx +1 -1
  348. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +25 -0
  349. package/lib/ocm/components/clusters/ClusterPage.tsx +4 -28
  350. package/lib/ocm/components/clusters/Clusters.tsx +9 -11
  351. package/lib/ocm/components/clusters/ClustersListToolbar.tsx +5 -5
  352. package/lib/ocm/components/clusters/ClustersTable.tsx +4 -1
  353. package/lib/ocm/components/clusters/NewClusterPage.tsx +3 -6
  354. package/lib/ocm/components/clusters/clusterPolling.ts +7 -7
  355. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +21 -7
  356. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +1 -1
  357. package/lib/ocm/components/hosts/use-hosts-table.tsx +5 -2
  358. package/lib/ocm/components/hosts/utils.ts +1 -1
  359. package/lib/ocm/components/index.ts +1 -1
  360. package/lib/ocm/components/ui/OcmFormFields.tsx +1 -1
  361. package/lib/ocm/hooks/index.ts +0 -1
  362. package/lib/ocm/hooks/useSetClusterPermissions.ts +1 -1
  363. package/lib/ocm/index.ts +0 -1
  364. package/lib/ocm/store/hooks.ts +6 -2
  365. package/lib/ocm/store/index.ts +5 -23
  366. package/lib/ocm/{selectors/clusters.tsx → store/slices/clusters/selectors.tsx} +10 -12
  367. package/lib/ocm/{reducers/clusters/clustersSlice.ts → store/slices/clusters/slice.ts} +6 -5
  368. package/lib/ocm/{selectors/currentCluster.ts → store/slices/current-cluster/selectors.ts} +7 -7
  369. package/lib/ocm/{reducers/clusters/currentClusterSlice.ts → store/slices/current-cluster/slice.ts} +10 -8
  370. package/lib/ocm/store/slices/feature-flags/selectors.ts +13 -0
  371. package/lib/ocm/store/slices/feature-flags/slice.ts +15 -0
  372. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/selectors.ts +3 -3
  373. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/thunks.ts +3 -3
  374. package/lib/ocm/store/store-day1.ts +23 -0
  375. package/lib/ocm/store/store-day2.ts +19 -0
  376. package/package.json +3 -4
  377. package/build/@types/ocm/components/Router.d.ts +0 -9
  378. package/build/@types/ocm/components/Router.d.ts.map +0 -1
  379. package/build/@types/ocm/hooks/useClusterSupportedPlatforms.d.ts +0 -11
  380. package/build/@types/ocm/hooks/useClusterSupportedPlatforms.d.ts.map +0 -1
  381. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts +0 -10
  382. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts.map +0 -1
  383. package/build/@types/ocm/reducers/clusters/clustersSlice.d.ts.map +0 -1
  384. package/build/@types/ocm/reducers/clusters/currentClusterSlice.d.ts.map +0 -1
  385. package/build/@types/ocm/reducers/clusters/index.d.ts +0 -3
  386. package/build/@types/ocm/reducers/clusters/index.d.ts.map +0 -1
  387. package/build/@types/ocm/selectors/clusters.d.ts.map +0 -1
  388. package/build/@types/ocm/selectors/currentCluster.d.ts +0 -14
  389. package/build/@types/ocm/selectors/currentCluster.d.ts.map +0 -1
  390. package/build/@types/ocm/selectors/index.d.ts +0 -3
  391. package/build/@types/ocm/selectors/index.d.ts.map +0 -1
  392. package/build/@types/ocm/store/slices/infraEnvs/selectors.d.ts.map +0 -1
  393. package/build/@types/ocm/store/slices/infraEnvs/slice.d.ts.map +0 -1
  394. package/build/@types/ocm/store/slices/infraEnvs/thunks.d.ts.map +0 -1
  395. package/build/cjs/ocm/components/Router.js +0 -25
  396. package/build/cjs/ocm/components/Router.js.map +0 -1
  397. package/build/cjs/ocm/hooks/useClusterSupportedPlatforms.js +0 -53
  398. package/build/cjs/ocm/hooks/useClusterSupportedPlatforms.js.map +0 -1
  399. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js +0 -30
  400. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js.map +0 -1
  401. package/build/cjs/ocm/reducers/clusters/clustersSlice.js.map +0 -1
  402. package/build/cjs/ocm/reducers/clusters/currentClusterSlice.js.map +0 -1
  403. package/build/cjs/ocm/reducers/clusters/index.js +0 -6
  404. package/build/cjs/ocm/reducers/clusters/index.js.map +0 -1
  405. package/build/cjs/ocm/selectors/clusters.js.map +0 -1
  406. package/build/cjs/ocm/selectors/currentCluster.js.map +0 -1
  407. package/build/cjs/ocm/selectors/index.js +0 -6
  408. package/build/cjs/ocm/selectors/index.js.map +0 -1
  409. package/build/cjs/ocm/store/slices/infraEnvs/selectors.js.map +0 -1
  410. package/build/cjs/ocm/store/slices/infraEnvs/slice.js.map +0 -1
  411. package/build/cjs/ocm/store/slices/infraEnvs/thunks.js.map +0 -1
  412. package/lib/ocm/components/Router.tsx +0 -29
  413. package/lib/ocm/hooks/useClusterSupportedPlatforms.ts +0 -70
  414. package/lib/ocm/hooks/useOracleDropdownItemState.ts +0 -45
  415. package/lib/ocm/reducers/clusters/index.ts +0 -2
  416. package/lib/ocm/selectors/index.ts +0 -2
  417. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/slice.d.ts +0 -0
  418. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/thunks.d.ts +0 -0
  419. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/selectors.js +0 -0
  420. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/slice.js +0 -0
  421. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/thunks.js +0 -0
  422. /package/lib/ocm/store/slices/{infraEnvs → infra-envs}/slice.ts +0 -0
@@ -3,11 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useClusterPreflightRequirements = exports.usePullSecret = exports.useInfraEnvId = exports.useUsedClusterNames = exports.useManagedDomains = exports.useClusterSupportedPlatforms = exports.useOpenshiftVersions = void 0;
6
+ exports.useClusterPreflightRequirements = exports.usePullSecret = exports.useInfraEnvId = exports.useUsedClusterNames = exports.useManagedDomains = exports.useOpenshiftVersions = void 0;
7
7
  var useOpenshiftVersions_1 = require("./useOpenshiftVersions");
8
8
  Object.defineProperty(exports, "useOpenshiftVersions", { enumerable: true, get: function () { return __importDefault(useOpenshiftVersions_1).default; } });
9
- var useClusterSupportedPlatforms_1 = require("./useClusterSupportedPlatforms");
10
- Object.defineProperty(exports, "useClusterSupportedPlatforms", { enumerable: true, get: function () { return __importDefault(useClusterSupportedPlatforms_1).default; } });
11
9
  var useManagedDomains_1 = require("./useManagedDomains");
12
10
  Object.defineProperty(exports, "useManagedDomains", { enumerable: true, get: function () { return __importDefault(useManagedDomains_1).default; } });
13
11
  var useUsedClusterNames_1 = require("./useUsedClusterNames");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/ocm/hooks/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAyE;AAAhE,6IAAA,OAAO,OAAwB;AACxC,+EAAyF;AAAhF,6JAAA,OAAO,OAAgC;AAChD,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AACrC,6DAAuE;AAA9D,2IAAA,OAAO,OAAuB;AACvC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,qFAA+F;AAAtF,mKAAA,OAAO,OAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/ocm/hooks/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAyE;AAAhE,6IAAA,OAAO,OAAwB;AACxC,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AACrC,6DAAuE;AAA9D,2IAAA,OAAO,OAAuB;AACvC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,qFAA+F;AAAtF,mKAAA,OAAO,OAAmC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const react_redux_1 = require("react-redux");
4
4
  const config_1 = require("../config");
5
- const clusters_1 = require("../reducers/clusters");
5
+ const slice_1 = require("../store/slices/current-cluster/slice");
6
6
  function useSetClusterPermissions() {
7
7
  const dispatch = (0, react_redux_1.useDispatch)();
8
8
  return (cluster, ocmPermissions) => {
@@ -14,7 +14,7 @@ function useSetClusterPermissions() {
14
14
  if (ocmPermissions) {
15
15
  newPermissions = Object.assign(Object.assign({}, newPermissions), (0, config_1.ocmPermissionsToAIPermissions)(ocmPermissions || {}));
16
16
  }
17
- dispatch((0, clusters_1.updateClusterPermissions)(newPermissions));
17
+ dispatch((0, slice_1.updateClusterPermissions)(newPermissions));
18
18
  };
19
19
  }
20
20
  exports.default = useSetClusterPermissions;
@@ -1 +1 @@
1
- {"version":3,"file":"useSetClusterPermissions.js","sourceRoot":"","sources":["../../../../lib/ocm/hooks/useSetClusterPermissions.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAE1C,sCAA+F;AAC/F,mDAAgE;AAGhE,SAAwB,wBAAwB;IAC9C,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAE/B,OAAO,CAAC,OAAiB,EAAE,cAA4D,EAAE,EAAE;QACzF,IAAI,CAAC,OAAO,EAAE;YACZ,qFAAqF;YACrF,OAAO;SACR;QACD,IAAI,cAAc,GAAG,IAAA,2BAAkB,EAAC,OAA0B,CAAC,CAAC;QACpE,IAAI,cAAc,EAAE;YAClB,cAAc,mCACT,cAAc,GACd,IAAA,sCAA6B,EAAC,cAAc,IAAI,EAAE,CAAC,CACvD,CAAC;SACH;QACD,QAAQ,CAAC,IAAA,mCAAwB,EAAC,cAAc,CAAC,CAAC,CAAC;IACrD,CAAC,CAAC;AACJ,CAAC;AAjBD,2CAiBC"}
1
+ {"version":3,"file":"useSetClusterPermissions.js","sourceRoot":"","sources":["../../../../lib/ocm/hooks/useSetClusterPermissions.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAE1C,sCAA+F;AAC/F,iEAAiF;AAGjF,SAAwB,wBAAwB;IAC9C,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAE/B,OAAO,CAAC,OAAiB,EAAE,cAA4D,EAAE,EAAE;QACzF,IAAI,CAAC,OAAO,EAAE;YACZ,qFAAqF;YACrF,OAAO;SACR;QACD,IAAI,cAAc,GAAG,IAAA,2BAAkB,EAAC,OAA0B,CAAC,CAAC;QACpE,IAAI,cAAc,EAAE;YAClB,cAAc,mCACT,cAAc,GACd,IAAA,sCAA6B,EAAC,cAAc,IAAI,EAAE,CAAC,CACvD,CAAC;SACH;QACD,QAAQ,CAAC,IAAA,gCAAwB,EAAC,cAAc,CAAC,CAAC,CAAC;IACrD,CAAC,CAAC;AACJ,CAAC;AAjBD,2CAiBC"}
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Reducers = exports.Constants = exports.Features = exports.Services = exports.Config = exports.Selectors = exports.Store = exports.Api = void 0;
3
+ exports.Reducers = exports.Constants = exports.Features = exports.Services = exports.Config = exports.Store = exports.Api = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  exports.Api = tslib_1.__importStar(require("./api"));
6
6
  exports.Store = tslib_1.__importStar(require("./store"));
7
- exports.Selectors = tslib_1.__importStar(require("./selectors"));
8
7
  exports.Config = tslib_1.__importStar(require("./config"));
9
8
  exports.Services = tslib_1.__importStar(require("./services"));
10
9
  // without namespace
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/ocm/index.ts"],"names":[],"mappings":";;;;AAAA,qDAA6B;AAC7B,yDAAiC;AACjC,iEAAyC;AACzC,2DAAmC;AACnC,+DAAuC;AAEvC,oBAAoB;AACpB,uDAA6B;AAC7B,qDAA2B;AAE3B,iCAAiC;AACjC,uEAA+C;AAC/C,sEAA8C;AAC9C,uEAA+C;AAE/C,+DAAqC;AACrC,wDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/ocm/index.ts"],"names":[],"mappings":";;;;AAAA,qDAA6B;AAC7B,yDAAiC;AACjC,2DAAmC;AACnC,+DAAuC;AAEvC,oBAAoB;AACpB,uDAA6B;AAC7B,qDAA2B;AAE3B,iCAAiC;AACjC,uEAA+C;AAC/C,sEAA8C;AAC9C,uEAA+C;AAE/C,+DAAqC;AACrC,wDAA8B"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDispatchDay2 = exports.useDispatchDay1 = void 0;
3
+ exports.useSelectorDay2 = exports.useDispatchDay2 = exports.useSelectorDay1 = exports.useDispatchDay1 = void 0;
4
4
  const react_redux_1 = require("react-redux");
5
5
  exports.useDispatchDay1 = react_redux_1.useDispatch;
6
+ exports.useSelectorDay1 = react_redux_1.useSelector;
6
7
  exports.useDispatchDay2 = react_redux_1.useDispatch;
8
+ exports.useSelectorDay2 = react_redux_1.useSelector;
7
9
  //# sourceMappingURL=hooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../lib/ocm/store/hooks.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE7B,QAAA,eAAe,GAAuB,yBAAW,CAAC;AAClD,QAAA,eAAe,GAAuB,yBAAW,CAAC"}
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../lib/ocm/store/hooks.ts"],"names":[],"mappings":";;;AAAA,6CAAuD;AAK1C,QAAA,eAAe,GAAuB,yBAAW,CAAC;AAClD,QAAA,eAAe,GAAwC,yBAAW,CAAC;AACnE,QAAA,eAAe,GAAuB,yBAAW,CAAC;AAClD,QAAA,eAAe,GAAwC,yBAAW,CAAC"}
@@ -1,22 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.storeDay2 = exports.store = void 0;
4
- const tslib_1 = require("tslib");
5
- const toolkit_1 = require("@reduxjs/toolkit");
6
- const clustersSlice_1 = tslib_1.__importDefault(require("../reducers/clusters/clustersSlice"));
7
- const currentClusterSlice_1 = tslib_1.__importDefault(require("../reducers/clusters/currentClusterSlice"));
8
- const slice_1 = require("./slices/infraEnvs/slice");
9
- exports.store = (0, toolkit_1.configureStore)({
10
- reducer: {
11
- clusters: clustersSlice_1.default,
12
- currentCluster: currentClusterSlice_1.default,
13
- infraEnvs: slice_1.infraEnvsReducer,
14
- },
15
- preloadedState: {},
16
- });
17
- exports.storeDay2 = (0, toolkit_1.configureStore)({
18
- reducer: {
19
- infraEnvs: slice_1.infraEnvsReducer,
20
- },
21
- });
3
+ exports.useDispatchDay2 = exports.useDispatchDay1 = exports.useSelectorDay2 = exports.useSelectorDay1 = exports.storeDay2 = exports.storeDay1 = void 0;
4
+ var store_day1_1 = require("./store-day1");
5
+ Object.defineProperty(exports, "storeDay1", { enumerable: true, get: function () { return store_day1_1.storeDay1; } });
6
+ var store_day2_1 = require("./store-day2");
7
+ Object.defineProperty(exports, "storeDay2", { enumerable: true, get: function () { return store_day2_1.storeDay2; } });
8
+ var hooks_1 = require("./hooks");
9
+ Object.defineProperty(exports, "useSelectorDay1", { enumerable: true, get: function () { return hooks_1.useSelectorDay1; } });
10
+ Object.defineProperty(exports, "useSelectorDay2", { enumerable: true, get: function () { return hooks_1.useSelectorDay2; } });
11
+ Object.defineProperty(exports, "useDispatchDay1", { enumerable: true, get: function () { return hooks_1.useDispatchDay1; } });
12
+ Object.defineProperty(exports, "useDispatchDay2", { enumerable: true, get: function () { return hooks_1.useDispatchDay2; } });
22
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/ocm/store/index.ts"],"names":[],"mappings":";;;;AAAA,8CAAkD;AAClD,+FAAiE;AACjE,2GAA6E;AAC7E,oDAA4D;AAE/C,QAAA,KAAK,GAAG,IAAA,wBAAc,EAAC;IAClC,OAAO,EAAE;QACP,QAAQ,EAAE,uBAAe;QACzB,cAAc,EAAE,6BAAqB;QACrC,SAAS,EAAE,wBAAgB;KAC5B;IACD,cAAc,EAAE,EAAE;CACnB,CAAC,CAAC;AAIU,QAAA,SAAS,GAAG,IAAA,wBAAc,EAAC;IACtC,OAAO,EAAE;QACP,SAAS,EAAE,wBAAgB;KAC5B;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/ocm/store/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAGlB,iCAA6F;AAApF,wGAAA,eAAe,OAAA;AAAE,wGAAA,eAAe,OAAA;AAAE,wGAAA,eAAe,OAAA;AAAE,wGAAA,eAAe,OAAA"}
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const toolkit_1 = require("@reduxjs/toolkit");
7
7
  const react_router_dom_1 = require("react-router-dom");
8
- const common_1 = require("../../common");
9
- const ClusterStatus_1 = tslib_1.__importStar(require("../components/clusters/ClusterStatus"));
10
- const config_1 = require("../config");
8
+ const common_1 = require("../../../../common");
9
+ const ClusterStatus_1 = tslib_1.__importStar(require("../../../components/clusters/ClusterStatus"));
10
+ const config_1 = require("../../../config");
11
11
  const selectClusters = (state) => state.clusters.data;
12
12
  const clustersUIState = (state) => state.clusters.uiState;
13
13
  exports.selectClustersUIState = (0, toolkit_1.createSelector)([selectClusters, clustersUIState], (clusters, uiState) => {
@@ -70,4 +70,4 @@ const selectClusterTableRows = (t) => {
70
70
  };
71
71
  exports.selectClusterTableRows = selectClusterTableRows;
72
72
  exports.selectClusterNames = (0, toolkit_1.createSelector)(selectClusters, (clusters) => clusters.map((c) => c.name));
73
- //# sourceMappingURL=clusters.js.map
73
+ //# sourceMappingURL=selectors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/clusters/selectors.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,8CAAkD;AAElD,uDAAwC;AAExC,+CAQ4B;AAE5B,oGAAiG;AACjG,4CAAgD;AAIhD,MAAM,cAAc,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;AACrE,MAAM,eAAe,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;AAE5D,QAAA,qBAAqB,GAAG,IAAA,wBAAc,EACjD,CAAC,cAAc,EAAE,eAAe,CAAC,EACjC,CAAC,QAAQ,EAAE,OAAO,EAAmB,EAAE;IACrC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,wBAAe,CAAC;IAC1C,OAAO,CAAC,QAAQ,CAAC,MAAM,IAAI,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;AAClE,CAAC,CACF,CAAC;AAQF,MAAM,wBAAwB,GAAG,CAAC,OAAgB,EAAE,CAAY,EAAQ,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC5D,MAAM,YAAY,GAAG,IAAA,wBAAe,EAAC,SAAS,CAAC,CAAC;IAChD,MAAM,WAAW,GAAG,IAAA,gCAAuB,EAAC;QAC1C,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,IAAI,EAAE;QAChD,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,aAAa,EAAE,IAAI;KACpB,CAAC,CAAC;IACH,MAAM,KAAK,GAAwB;QACjC,IAAI;QACJ,EAAE;QACF,aAAa;KACd,CAAC;IAEF,OAAO;QACL,KAAK,EAAE;YACL;gBACE,KAAK,EAAE,CACL,8BAAC,uBAAI,IAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,sBAAa,aAAa,EAAE,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,IAC7E,IAAI,CACA,CACR;gBACD,KAAK,EAAE,EAAE,aAAa,EAAE,gBAAgB,IAAI,EAAE,EAAE;gBAChD,aAAa,EAAE,IAAI;aACC;YACtB;gBACE,KAAK,EAAE,aAAa,IAAI,aAAI;gBAC5B,KAAK,EAAE,EAAE,aAAa,EAAE,uBAAuB,IAAI,EAAE,EAAE;gBACvD,aAAa,EAAE,aAAa;aAC7B;YACD;gBACE,KAAK,EAAE,WAAW;gBAClB,KAAK,EAAE,EAAE,aAAa,EAAE,mBAAmB,IAAI,EAAE,EAAE;gBACnD,aAAa,EAAE,WAAW;aAC3B;YACD;gBACE,KAAK,EAAE,8BAAC,uBAAa,IAAC,MAAM,EAAE,OAAO,CAAC,MAAM,GAAI;gBAChD,KAAK,EAAE,EAAE,aAAa,EAAE,kBAAkB,IAAI,EAAE,EAAE;gBAClD,aAAa,EAAE,IAAA,oCAAoB,EAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;aAClC;YACtB;gBACE,KAAK,EAAE,8BAAC,mBAAU,IAAC,OAAO,EAAE,OAAO,GAAI;gBACvC,KAAK,EAAE,EAAE,aAAa,EAAE,uBAAuB,IAAI,EAAE,EAAE;gBACvD,aAAa,EACX,kBAAkB,IAAI,OAAO,CAAC,CAAC,CAAC,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAA,0BAAiB,EAAC,OAAO,CAAC;aACvE;YACtB;gBACE,KAAK,EAAE,YAAY,CAAC,KAAK;gBACzB,KAAK,EAAE,EAAE,aAAa,EAAE,wBAAwB,IAAI,EAAE,EAAE;gBACxD,aAAa,EAAE,YAAY,CAAC,aAAa;aACrB;SACvB;QACD,KAAK;KACN,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,yBAAyB,GAAG,CAAC,OAAiB,EAAE,EAAE,WAC7D,OAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAG,CAAC,CAAsB,CAAA,EAAA,CAAC;AAD9B,QAAA,yBAAyB,6BACK;AAEpC,MAAM,sBAAsB,GAAG,CAAC,CAAY,EAAE,EAAE;IACrD,OAAO,IAAA,wBAAc,EACnB,cAAc,EACd,CAAC,QAAQ,EAAoB,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CACpF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,sBAAsB,0BAKjC;AAEW,QAAA,kBAAkB,GAAG,IAAA,wBAAc,EAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,EAAE,CAC5E,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAC5B,CAAC"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteCluster = exports.clustersSlice = exports.fetchClustersAsync = void 0;
3
+ exports.clustersReducer = exports.deleteCluster = exports.clustersSlice = exports.fetchClustersAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
- const common_1 = require("../../../common");
7
- const apis_1 = require("../../services/apis");
8
- const api_1 = require("../../api");
6
+ const common_1 = require("../../../../common");
7
+ const apis_1 = require("../../../services/apis");
8
+ const api_1 = require("../../../api");
9
9
  exports.fetchClustersAsync = (0, toolkit_1.createAsyncThunk)('clusters/fetchClustersAsync', (value, { rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
10
10
  try {
11
11
  const { data } = yield apis_1.ClustersAPI.list();
@@ -33,6 +33,7 @@ exports.clustersSlice = (0, toolkit_1.createSlice)({
33
33
  .addCase(exports.fetchClustersAsync.rejected, (state) => (Object.assign(Object.assign({}, state), { uiState: POLLING_ERROR })));
34
34
  },
35
35
  });
36
- exports.deleteCluster = exports.clustersSlice.actions.deleteCluster;
37
- exports.default = exports.clustersSlice.reducer;
38
- //# sourceMappingURL=clustersSlice.js.map
36
+ const { actions, reducer } = exports.clustersSlice;
37
+ exports.deleteCluster = actions.deleteCluster;
38
+ exports.clustersReducer = reducer;
39
+ //# sourceMappingURL=slice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/clusters/slice.ts"],"names":[],"mappings":";;;;AAAA,8CAO0B;AAC1B,+CAAqD;AACrD,iDAAqD;AACrD,sCAAuD;AAG1C,QAAA,kBAAkB,GAAG,IAAA,0BAAgB,EAChD,6BAA6B,EAC7B,CAAO,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE;IACnC,IAAI;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,kBAAW,CAAC,IAAI,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,aAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;KAChF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,IAAA,oBAAc,EAAC,CAAC,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;KACxD;AACH,CAAC,CAAA,CACF,CAAC;AASF,MAAM,YAAY,GAAuB,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,wBAAe,CAAC,OAAO,EAAE,CAAC;AAE3E,QAAA,aAAa,GAAG,IAAA,qBAAW,EAAC;IACvC,YAAY;IACZ,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,aAAa,EAAE,CAAC,KAAK,EAAE,MAAoC,EAAE,EAAE,CAAC,iCAC3D,KAAK,KACR,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,IACtE;KACH;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE;QACzB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,wBAAe,CAAC;QACtE,OAAO;aACJ,OAAO,CAAC,0BAAkB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;YAC/D,uCAAY,KAAK,KAAE,OAAO,IAAG;QAC/B,CAAC,CAAC;aACD,OAAO,CAAC,0BAAkB,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,iCACrD,KAAK,KACR,IAAI,EAAE,CAAC,GAAI,MAAM,CAAC,OAAqB,CAAC,EACxC,OAAO,EAAE,MAAM,IACf,CAAC;aACF,OAAO,CAAC,0BAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,iCAC5C,KAAK,KACR,OAAO,EAAE,aAAa,IACtB,CAAC,CAAC;IACR,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,qBAAa,CAAC;AAC5B,qBAAa,GAAK,OAAO,eAAC;AAC5B,QAAA,eAAe,GAAG,OAAO,CAAC"}
@@ -17,4 +17,4 @@ const selectCurrentClusterPermissionsState = (state) => {
17
17
  return { isViewerMode: false };
18
18
  };
19
19
  exports.selectCurrentClusterPermissionsState = selectCurrentClusterPermissionsState;
20
- //# sourceMappingURL=currentCluster.js.map
20
+ //# sourceMappingURL=selectors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/current-cluster/selectors.ts"],"names":[],"mappings":";;;AAGO,MAAM,yBAAyB,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;AAA3E,QAAA,yBAAyB,6BAAkD;AACjF,MAAM,oBAAoB,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;AAA3E,QAAA,oBAAoB,wBAAuD;AACjF,MAAM,2BAA2B,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;AAArF,QAAA,2BAA2B,+BAA0D;AAC3F,MAAM,yBAAyB,GAAG,CAAC,KAAoB,EAAE,EAAE,WAChE,OAAA,CAAA,MAAA,KAAK,CAAC,cAAc,CAAC,IAAI,0CAAE,oBAAoB,MAAK,MAAM,CAAA,EAAA,CAAC;AADhD,QAAA,yBAAyB,6BACuB;AACtD,MAAM,oCAAoC,GAAG,CAClD,KAAoB,EACsB,EAAE;IAC5C,IAAI,KAAK,CAAC,cAAc,EAAE;QACxB,OAAO,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;KACzC;IACD,oFAAoF;IACpF,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AACjC,CAAC,CAAC;AARW,QAAA,oCAAoC,wCAQ/C"}
@@ -1,24 +1,22 @@
1
1
  "use strict";
2
- var _a;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateClusterPermissions = exports.cancelForceReload = exports.forceReload = exports.cleanCluster = exports.setServerUpdateError = exports.updateHost = exports.updateClusterBase = exports.updateCluster = exports.currentClusterSlice = exports.fetchClusterAsync = void 0;
3
+ exports.currentClusterReducer = exports.updateClusterPermissions = exports.cancelForceReload = exports.forceReload = exports.cleanCluster = exports.setServerUpdateError = exports.updateHost = exports.updateClusterBase = exports.updateCluster = exports.currentClusterSlice = exports.fetchClusterAsync = void 0;
5
4
  const tslib_1 = require("tslib");
6
5
  const findIndex_js_1 = tslib_1.__importDefault(require("lodash-es/findIndex.js"));
7
6
  const set_js_1 = tslib_1.__importDefault(require("lodash-es/set.js"));
8
7
  const toolkit_1 = require("@reduxjs/toolkit");
9
- const common_1 = require("../../../common");
10
- const api_1 = require("../../api");
11
- const services_1 = require("../../services");
8
+ const common_1 = require("../../../../common");
9
+ const ClustersService_1 = tslib_1.__importDefault(require("../../../services/ClustersService"));
12
10
  exports.fetchClusterAsync = (0, toolkit_1.createAsyncThunk)('currentCluster/fetchClusterAsync', (clusterId, { rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
13
11
  try {
14
- const cluster = yield services_1.ClustersService.get(clusterId);
12
+ const cluster = yield ClustersService_1.default.get(clusterId);
15
13
  return cluster;
16
14
  }
17
15
  catch (e) {
18
- return (0, api_1.handleApiError)(e, () => {
16
+ return (0, common_1.handleApiError)(e, () => {
19
17
  return rejectWithValue({
20
- code: (0, api_1.getApiErrorCode)(e),
21
- message: (0, api_1.getApiErrorMessage)(e),
18
+ code: (0, common_1.getApiErrorCode)(e),
19
+ message: (0, common_1.getApiErrorMessage)(e),
22
20
  });
23
21
  });
24
22
  }
@@ -71,7 +69,7 @@ exports.currentClusterSlice = (0, toolkit_1.createSlice)({
71
69
  })
72
70
  .addCase(exports.fetchClusterAsync.rejected, (state, action) => {
73
71
  const error = action.payload;
74
- if (error.code === api_1.FETCH_ABORTED_ERROR_CODE && !!state.data) {
72
+ if (error.code === common_1.FETCH_ABORTED_ERROR_CODE && !!state.data) {
75
73
  // This failure is due to having aborted the request on purpose (to avoid conflicts with update operations).
76
74
  // The error can be ignored, and the data will be refreshed on the next polling
77
75
  return Object.assign(Object.assign({}, state), { uiState: common_1.ResourceUIState.LOADED });
@@ -80,6 +78,7 @@ exports.currentClusterSlice = (0, toolkit_1.createSlice)({
80
78
  });
81
79
  },
82
80
  });
83
- _a = exports.currentClusterSlice.actions, exports.updateCluster = _a.updateCluster, exports.updateClusterBase = _a.updateClusterBase, exports.updateHost = _a.updateHost, exports.setServerUpdateError = _a.setServerUpdateError, exports.cleanCluster = _a.cleanCluster, exports.forceReload = _a.forceReload, exports.cancelForceReload = _a.cancelForceReload, exports.updateClusterPermissions = _a.updateClusterPermissions;
84
- exports.default = exports.currentClusterSlice.reducer;
85
- //# sourceMappingURL=currentClusterSlice.js.map
81
+ const { actions, reducer } = exports.currentClusterSlice;
82
+ exports.updateCluster = actions.updateCluster, exports.updateClusterBase = actions.updateClusterBase, exports.updateHost = actions.updateHost, exports.setServerUpdateError = actions.setServerUpdateError, exports.cleanCluster = actions.cleanCluster, exports.forceReload = actions.forceReload, exports.cancelForceReload = actions.cancelForceReload, exports.updateClusterPermissions = actions.updateClusterPermissions;
83
+ exports.currentClusterReducer = reducer;
84
+ //# sourceMappingURL=slice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/current-cluster/slice.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isFeatureEnabled = exports.selectFeatureFlagsSlice = void 0;
4
+ const toolkit_1 = require("@reduxjs/toolkit");
5
+ const selectFeatureFlagsSlice = (state) => state.featureFlags;
6
+ exports.selectFeatureFlagsSlice = selectFeatureFlagsSlice;
7
+ exports.isFeatureEnabled = (0, toolkit_1.createSelector)([exports.selectFeatureFlagsSlice, (_, feature) => feature], (featureFlags, feature) => {
8
+ // Configured via Unleash in the OCM
9
+ return !!featureFlags[feature];
10
+ });
11
+ //# sourceMappingURL=selectors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/feature-flags/selectors.ts"],"names":[],"mappings":";;;AAAA,8CAAkD;AAI3C,MAAM,uBAAuB,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;AAAvE,QAAA,uBAAuB,2BAAgD;AAEvE,QAAA,gBAAgB,GAAG,IAAA,wBAAc,EAC5C,CAAC,+BAAuB,EAAE,CAAC,CAAC,EAAE,OAAqC,EAAE,EAAE,CAAC,OAAO,CAAC,EAChF,CAAC,YAAY,EAAE,OAAO,EAAE,EAAE;IACxB,oCAAoC;IACpC,OAAO,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CACF,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.featureFlagsReducer = exports.featureFlagsActions = void 0;
4
+ const toolkit_1 = require("@reduxjs/toolkit");
5
+ const featureFlagsSlice = (0, toolkit_1.createSlice)({
6
+ name: 'featureFlags',
7
+ initialState: {},
8
+ reducers: {
9
+ setFeatureFlags: (state, action) => {
10
+ return Object.assign(state, action.payload);
11
+ },
12
+ },
13
+ });
14
+ exports.featureFlagsActions = featureFlagsSlice.actions;
15
+ exports.featureFlagsReducer = featureFlagsSlice.reducer;
16
+ //# sourceMappingURL=slice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/feature-flags/slice.ts"],"names":[],"mappings":";;;AAAA,8CAA8D;AAG9D,MAAM,iBAAiB,GAAG,IAAA,qBAAW,EAAC;IACpC,IAAI,EAAE,cAAc;IACpB,YAAY,EAAE,EAAqB;IACnC,QAAQ,EAAE;QACR,eAAe,EAAE,CAAC,KAAK,EAAE,MAAsC,EAAE,EAAE;YACjE,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;KACF;CACF,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,iBAAiB,CAAC,OAAO,CAAC;AAChD,QAAA,mBAAmB,GAAG,iBAAiB,CAAC,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infra-envs/selectors.ts"],"names":[],"mappings":";;;AAAA,8CAAkD;AAI3C,MAAM,oBAAoB,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;AAAjE,QAAA,oBAAoB,wBAA6C;AACjE,QAAA,+BAA+B,GAAG,IAAA,wBAAc,EAC3D,CAAC,4BAAoB,EAAE,CAAC,CAAgB,EAAE,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,EAC/F,CAAC,SAAS,EAAE,eAAe,EAAE,EAAE,CAC7B,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,KAAK,eAAe,CAAC,CAC7E,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infra-envs/slice.ts"],"names":[],"mappings":";;;AACA,8CAA+C;AAE/C,wFAAwF;AACxF,kCAAkC;AAClC,MAAM,cAAc,GAAG,IAAA,qBAAW,EAAC;IACjC,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE,EAAgB;IAC9B,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC;AAC1C,QAAA,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thunks.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infra-envs/thunks.ts"],"names":[],"mappings":";;;;AAAA,8CAAoD;AAEpD,iDAAsD;AAEtD,2CAA8D;AAQjD,QAAA,wBAAwB,GAAG,IAAA,0BAAgB,EACtD,2BAA2B,EAC3B,CAAO,SAAwB,EAAE,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,mBAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC/D,OAAO,SAAS,CAAC;AACnB,CAAC,CAAA,CACF,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,0BAAgB,EAC5C,EAAE,EACF,CAAO,MAAuD,EAAE,EAAE;IAChE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,mBAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/D,wGAAwG;IACxG,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CACF,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAA,0BAAgB,EAAC,qBAAqB,EAAE,CAAO,CAAC,EAAE,QAAQ,EAAE,EAAE;IAC9F,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,EAAmB,CAAC;IACnD,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnE,MAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE;QACpC,QAAQ,CAAC,IAAI,CAAC,mBAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;KACpD;IACD,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,IAAA,0BAAgB,EAC5C,kBAAkB,EAClB,CAAO,EAAgF,EAAE,EAAE;QAApF,EAAE,UAAU,OAAoE,EAA/D,MAAM,sBAAvB,cAAyB,CAAF;IAC5B,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,mBAAY,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACzE,wGAAwG;IACxG,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CACF,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,0BAAgB,EACzC,uBAAuB,EACvB,CAAO,eAAgC,EAAE,QAAQ,EAAE,EAAE;IACnD,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,EAAmB,CAAC;IACnD,kFAAkF;IAClF,mFAAmF;IACnF,0BAA0B;IAC1B,MAAM,QAAQ,GAAG,IAAA,2CAA+B,EAAC,KAAK,EAAE,eAAe,CAAa,CAAC;IACrF,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,MAAM,mBAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3E,OAAO,YAAY,CAAC;AACtB,CAAC,CAAA,CACF,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.storeDay1 = void 0;
4
+ const toolkit_1 = require("@reduxjs/toolkit");
5
+ const slice_1 = require("./slices/clusters/slice");
6
+ const slice_2 = require("./slices/current-cluster/slice");
7
+ const slice_3 = require("./slices/infra-envs/slice");
8
+ const slice_4 = require("./slices/feature-flags/slice");
9
+ const common_1 = require("../../common");
10
+ exports.storeDay1 = (0, toolkit_1.configureStore)({
11
+ devTools: {
12
+ name: 'Assisted Installer - Day 1',
13
+ },
14
+ reducer: {
15
+ clusters: slice_1.clustersReducer,
16
+ currentCluster: slice_2.currentClusterReducer,
17
+ infraEnvs: slice_3.infraEnvsReducer,
18
+ featureFlags: slice_4.featureFlagsReducer,
19
+ },
20
+ preloadedState: {
21
+ featureFlags: common_1.STANDALONE_DEPLOYMENT_ENABLED_FEATURES,
22
+ },
23
+ });
24
+ //# sourceMappingURL=store-day1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-day1.js","sourceRoot":"","sources":["../../../../lib/ocm/store/store-day1.ts"],"names":[],"mappings":";;;AAAA,8CAAkD;AAClD,mDAA0D;AAC1D,0DAAuE;AACvE,qDAA6D;AAC7D,wDAAmE;AACnE,yCAAsE;AAEzD,QAAA,SAAS,GAAG,IAAA,wBAAc,EAAC;IACtC,QAAQ,EAAE;QACR,IAAI,EAAE,4BAA4B;KACnC;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,uBAAe;QACzB,cAAc,EAAE,6BAAqB;QACrC,SAAS,EAAE,wBAAgB;QAC3B,YAAY,EAAE,2BAAmB;KAClC;IACD,cAAc,EAAE;QACd,YAAY,EAAE,+CAAsC;KACrD;CACF,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.storeDay2 = void 0;
4
+ const toolkit_1 = require("@reduxjs/toolkit");
5
+ const slice_1 = require("./slices/infra-envs/slice");
6
+ const slice_2 = require("./slices/feature-flags/slice");
7
+ const common_1 = require("../../common");
8
+ exports.storeDay2 = (0, toolkit_1.configureStore)({
9
+ devTools: {
10
+ name: 'Assisted Installer - Day 2',
11
+ },
12
+ reducer: {
13
+ infraEnvs: slice_1.infraEnvsReducer,
14
+ featureFlags: slice_2.featureFlagsReducer,
15
+ },
16
+ preloadedState: {
17
+ featureFlags: common_1.STANDALONE_DEPLOYMENT_ENABLED_FEATURES,
18
+ },
19
+ });
20
+ //# sourceMappingURL=store-day2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-day2.js","sourceRoot":"","sources":["../../../../lib/ocm/store/store-day2.ts"],"names":[],"mappings":";;;AAAA,8CAAkD;AAClD,qDAA6D;AAC7D,wDAAmE;AACnE,yCAAsE;AAEzD,QAAA,SAAS,GAAG,IAAA,wBAAc,EAAC;IACtC,QAAQ,EAAE;QACR,IAAI,EAAE,4BAA4B;KACnC;IACD,OAAO,EAAE;QACP,SAAS,EAAE,wBAAgB;QAC3B,YAAY,EAAE,2BAAmB;KAClC;IACD,cAAc,EAAE;QACd,YAAY,EAAE,+CAAsC;KACrD;CACF,CAAC,CAAC"}
@@ -12,12 +12,14 @@ type DetailsFormBodyProps = {
12
12
  clusterImages: ClusterImageSetK8sResource[];
13
13
  onValuesChanged: (values: ClusterDetailsValues, initRender: boolean) => void;
14
14
  extensionAfter: ClusterDetailsFormFieldsProps['extensionAfter'];
15
+ isNutanix?: boolean;
15
16
  };
16
17
 
17
18
  const DetailsFormBody: React.FC<DetailsFormBodyProps> = ({
18
19
  onValuesChanged,
19
20
  clusterImages,
20
21
  extensionAfter,
22
+ isNutanix,
21
23
  }) => {
22
24
  const { values } = useFormikContext<ClusterDetailsValues>();
23
25
  const initRenderRef = React.useRef(true);
@@ -27,7 +29,11 @@ const DetailsFormBody: React.FC<DetailsFormBodyProps> = ({
27
29
  }, []);
28
30
 
29
31
  return (
30
- <ClusterDeploymentDetailsForm clusterImages={clusterImages} extensionAfter={extensionAfter} />
32
+ <ClusterDeploymentDetailsForm
33
+ clusterImages={clusterImages}
34
+ extensionAfter={extensionAfter}
35
+ isNutanix={isNutanix}
36
+ />
31
37
  );
32
38
  };
33
39
 
@@ -45,6 +51,7 @@ const ACMClusterDeploymentDetailsStep: React.FC<ACMClusterDeploymentDetailsStepP
45
51
  const [initialValues, validationSchema] = useDetailsFormik({
46
52
  clusterImages,
47
53
  usedClusterNames,
54
+ isNutanix: !!rest.isNutanix,
48
55
  });
49
56
  return (
50
57
  <Formik
@@ -14,6 +14,7 @@ type ClusterDeploymentDetailsFormProps = {
14
14
  clusterDeployment?: ClusterDeploymentK8sResource;
15
15
  agentClusterInstall?: AgentClusterInstallK8sResource;
16
16
  extensionAfter?: ClusterDetailsFormFieldsProps['extensionAfter'];
17
+ isNutanix?: boolean;
17
18
  };
18
19
 
19
20
  const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps> = ({
@@ -21,8 +22,12 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
21
22
  clusterDeployment,
22
23
  clusterImages,
23
24
  extensionAfter,
25
+ isNutanix,
24
26
  }) => {
25
- const ocpVersions = React.useMemo(() => getOCPVersions(clusterImages), [clusterImages]);
27
+ const ocpVersions = React.useMemo(
28
+ () => getOCPVersions(clusterImages, isNutanix),
29
+ [clusterImages, isNutanix],
30
+ );
26
31
  const forceOpenshiftVersion = agentClusterInstall
27
32
  ? getSelectedVersion(clusterImages, agentClusterInstall)
28
33
  : undefined;
@@ -45,6 +50,7 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
45
50
  isEditFlow={isEditFlow}
46
51
  forceOpenshiftVersion={forceOpenshiftVersion}
47
52
  extensionAfter={extensionAfter}
53
+ isNutanix={isNutanix}
48
54
  />
49
55
  </StackItem>
50
56
  </Stack>
@@ -36,6 +36,7 @@ type UseDetailsFormikArgs = {
36
36
  agentClusterInstall?: AgentClusterInstallK8sResource;
37
37
  agents?: AgentK8sResource[];
38
38
  infraEnv?: InfraEnvK8sResource;
39
+ isNutanix: boolean;
39
40
  };
40
41
 
41
42
  export const useDetailsFormik = ({
@@ -45,10 +46,11 @@ export const useDetailsFormik = ({
45
46
  clusterImages,
46
47
  usedClusterNames,
47
48
  infraEnv,
49
+ isNutanix,
48
50
  }: UseDetailsFormikArgs): [ClusterDetailsValues, Lazy] => {
49
51
  const { t } = useTranslation();
50
52
  const featureSupportLevels = useFeatureSupportLevel();
51
- const ocpVersions = getOCPVersions(clusterImages);
53
+ const ocpVersions = getOCPVersions(clusterImages, isNutanix);
52
54
  const cluster = React.useMemo(
53
55
  () =>
54
56
  clusterDeployment && agentClusterInstall
@@ -98,6 +100,7 @@ const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStepProps>
98
100
  onClose,
99
101
  isPreviewOpen,
100
102
  infraEnv,
103
+ isNutanix,
101
104
  }) => {
102
105
  const { addAlert } = useAlerts();
103
106
  const { setCurrentStepId } = React.useContext(ClusterDeploymentWizardContext);
@@ -109,6 +112,7 @@ const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStepProps>
109
112
  clusterImages,
110
113
  usedClusterNames,
111
114
  infraEnv,
115
+ isNutanix,
112
116
  });
113
117
  const next = () =>
114
118
  isCIMFlow(clusterDeployment)
@@ -165,6 +169,7 @@ const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStepProps>
165
169
  agentClusterInstall={agentClusterInstall}
166
170
  clusterDeployment={clusterDeployment}
167
171
  clusterImages={clusterImages}
172
+ isNutanix={isNutanix}
168
173
  />
169
174
  </GridItem>
170
175
  </Grid>
@@ -140,6 +140,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
140
140
  aiConfigMap,
141
141
  onEditRole: onEditRoleInit,
142
142
  onSetInstallationDiskId,
143
+ isNutanix,
143
144
  }) => {
144
145
  const { setCurrentStepId } = React.useContext(ClusterDeploymentWizardContext);
145
146
  const [showClusterErrors, setShowClusterErrors] = React.useState(false);
@@ -279,6 +280,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
279
280
  onSetInstallationDiskId={onSetInstallationDiskId}
280
281
  onAutoSelectChange={onAutoSelectChange}
281
282
  onHostSelect={onHostSelect}
283
+ isNutanix={isNutanix}
282
284
  />
283
285
  </GridItem>
284
286
  </Grid>
@@ -26,6 +26,7 @@ const ClusterDeploymentHostsSelection: React.FC<ClusterDeploymentHostsSelectionP
26
26
  onAutoSelectChange,
27
27
  onHostSelect,
28
28
  onSetInstallationDiskId,
29
+ isNutanix,
29
30
  }) => {
30
31
  const { values } = useFormikContext<ClusterDeploymentHostsSelectionValues>();
31
32
  const { autoSelectHosts } = values;
@@ -35,18 +36,19 @@ const ClusterDeploymentHostsSelection: React.FC<ClusterDeploymentHostsSelectionP
35
36
  const cdNamespace = clusterDeployment?.metadata?.namespace;
36
37
  const cpuArchitecture = getClusterDeploymentCpuArchitecture(clusterDeployment);
37
38
 
38
- const availableAgents = React.useMemo(
39
- () =>
40
- getAgentsForSelection(agents).filter(
41
- (agent) =>
42
- (agent.spec.clusterDeploymentName?.name === cdName &&
43
- agent.spec.clusterDeploymentName?.namespace === cdNamespace) ||
44
- (!agent.spec.clusterDeploymentName?.name &&
45
- !agent.spec.clusterDeploymentName?.namespace &&
46
- agent.status?.inventory.cpu?.architecture === cpuArchitecture),
47
- ),
48
- [agents, cdNamespace, cdName, cpuArchitecture],
49
- );
39
+ const availableAgents = React.useMemo(() => {
40
+ const filtered = getAgentsForSelection(agents).filter(
41
+ (agent) =>
42
+ (agent.spec.clusterDeploymentName?.name === cdName &&
43
+ agent.spec.clusterDeploymentName?.namespace === cdNamespace) ||
44
+ (!agent.spec.clusterDeploymentName?.name &&
45
+ !agent.spec.clusterDeploymentName?.namespace &&
46
+ agent.status?.inventory.cpu?.architecture === cpuArchitecture),
47
+ );
48
+ return isNutanix
49
+ ? filtered.filter((a) => a.status?.inventory?.systemVendor?.manufacturer === 'Nutanix')
50
+ : filtered;
51
+ }, [agents, cdNamespace, cdName, cpuArchitecture, isNutanix]);
50
52
  const { t } = useTranslation();
51
53
  return (
52
54
  <Grid hasGutter>
@@ -53,6 +53,7 @@ type ClusterDeploymentNetworkingFormProps = {
53
53
  onEditHost: AgentTableActions['onEditHost'];
54
54
  onEditRole: AgentTableActions['onEditRole'];
55
55
  onSetInstallationDiskId: AgentTableActions['onSetInstallationDiskId'];
56
+ isNutanix: boolean;
56
57
  };
57
58
 
58
59
  const ClusterDeploymentNetworkingForm: React.FC<ClusterDeploymentNetworkingFormProps> = ({
@@ -68,6 +69,7 @@ const ClusterDeploymentNetworkingForm: React.FC<ClusterDeploymentNetworkingFormP
68
69
  onEditHost,
69
70
  onEditRole,
70
71
  onSetInstallationDiskId,
72
+ isNutanix,
71
73
  }) => {
72
74
  const { values, touched, setFieldValue, setFieldTouched } =
73
75
  useFormikContext<ClusterDeploymentNetworkingValues>();
@@ -139,7 +141,7 @@ const ClusterDeploymentNetworkingForm: React.FC<ClusterDeploymentNetworkingFormP
139
141
  hostSubnets={hostSubnets}
140
142
  isVipDhcpAllocationDisabled
141
143
  defaultNetworkSettings={defaultNetworkSettings}
142
- hideManagedNetworking={getIsSNOCluster(agentClusterInstall)}
144
+ hideManagedNetworking={getIsSNOCluster(agentClusterInstall) || isNutanix}
143
145
  />
144
146
  </GridItem>
145
147
  </Grid>
@@ -35,6 +35,7 @@ type NetworkingFormProps = {
35
35
  onEditRole: AgentTableActions['onEditRole'];
36
36
  onSetInstallationDiskId: AgentTableActions['onSetInstallationDiskId'];
37
37
  isPreviewOpen: ClusterDeploymentDetailsNetworkingProps['isPreviewOpen'];
38
+ isNutanix: ClusterDeploymentDetailsNetworkingProps['isNutanix'];
38
39
  };
39
40
 
40
41
  const NetworkingForm: React.FC<NetworkingFormProps> = ({
@@ -47,6 +48,7 @@ const NetworkingForm: React.FC<NetworkingFormProps> = ({
47
48
  onEditRole,
48
49
  isPreviewOpen,
49
50
  onSetInstallationDiskId,
51
+ isNutanix,
50
52
  }) => {
51
53
  const [showFormErrors, setShowFormErrors] = React.useState(false);
52
54
  const [showClusterErrors, setShowClusterErrors] = React.useState(false);
@@ -149,6 +151,7 @@ const NetworkingForm: React.FC<NetworkingFormProps> = ({
149
151
  onEditRole={onEditRole}
150
152
  isPreviewOpen={isPreviewOpen}
151
153
  onSetInstallationDiskId={onSetInstallationDiskId}
154
+ isNutanix={isNutanix}
152
155
  />
153
156
  </GridItem>
154
157
  </Grid>
@@ -36,6 +36,7 @@ const ClusterDeploymentWizard: React.FC<ClusterDeploymentWizardProps> = ({
36
36
  fetchKlusterletAddonConfig,
37
37
  onSaveISOParams,
38
38
  onCreateBMH,
39
+ isNutanix,
39
40
  ...rest
40
41
  }) => {
41
42
  const [currentStepId, setCurrentStepId] = React.useState<ClusterDeploymentWizardStepsType>(
@@ -70,6 +71,7 @@ const ClusterDeploymentWizard: React.FC<ClusterDeploymentWizardProps> = ({
70
71
  aiConfigMap={aiConfigMap}
71
72
  onEditRole={hostActions.onEditRole}
72
73
  onSetInstallationDiskId={hostActions.onSetInstallationDiskId}
74
+ isNutanix={isNutanix}
73
75
  />
74
76
  );
75
77
  }
@@ -115,6 +117,7 @@ const ClusterDeploymentWizard: React.FC<ClusterDeploymentWizardProps> = ({
115
117
  fetchInfraEnv={fetchInfraEnv}
116
118
  isPreviewOpen={isPreviewOpen}
117
119
  onSetInstallationDiskId={hostActions.onSetInstallationDiskId}
120
+ isNutanix={isNutanix}
118
121
  />
119
122
  );
120
123
  case 'review':
@@ -142,6 +145,7 @@ const ClusterDeploymentWizard: React.FC<ClusterDeploymentWizardProps> = ({
142
145
  onClose={onClose}
143
146
  isPreviewOpen={isPreviewOpen}
144
147
  infraEnv={infraEnv}
148
+ isNutanix={isNutanix}
145
149
  />
146
150
  );
147
151
  }