@openshift-assisted/ui-lib 2.37.2 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  4. package/build/@types/cim/components/common/constants.d.ts.map +1 -1
  5. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  6. package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
  7. package/build/@types/cim/types/k8s/infra-env-k8s-resource.d.ts +1 -0
  8. package/build/@types/cim/types/k8s/infra-env-k8s-resource.d.ts.map +1 -1
  9. package/build/@types/common/api/assisted-service/BundleAPI.d.ts +8 -0
  10. package/build/@types/common/api/assisted-service/BundleAPI.d.ts.map +1 -0
  11. package/build/@types/common/api/assisted-service/OperatorsAPI.d.ts +6 -0
  12. package/build/@types/common/api/assisted-service/OperatorsAPI.d.ts.map +1 -0
  13. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +7 -0
  14. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -0
  15. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  16. package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts +2 -1
  17. package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
  18. package/build/@types/common/components/clusterWizard/types.d.ts +3 -1
  19. package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
  20. package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
  21. package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
  22. package/build/@types/common/config/constants.d.ts +6 -0
  23. package/build/@types/common/config/constants.d.ts.map +1 -1
  24. package/build/@types/common/config/docs_links.d.ts +1 -1
  25. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  26. package/build/@types/common/selectors/clusterSelectors.d.ts +1 -0
  27. package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
  28. package/build/@types/common/types/clusters.d.ts +8 -0
  29. package/build/@types/common/types/clusters.d.ts.map +1 -1
  30. package/build/@types/common/types/ui-settings.d.ts +1 -0
  31. package/build/@types/common/types/ui-settings.d.ts.map +1 -1
  32. package/build/@types/ocm/components/SentryErrorMonitorContextProvider.d.ts.map +1 -1
  33. package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  34. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts.map +1 -1
  35. package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts +8 -0
  36. package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts.map +1 -0
  37. package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts +4 -1
  38. package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts.map +1 -1
  39. package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts +8 -0
  40. package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts.map +1 -0
  41. package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts +4 -1
  42. package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts.map +1 -1
  43. package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts +4 -1
  44. package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts.map +1 -1
  45. package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts +4 -1
  46. package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts.map +1 -1
  47. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts +10 -0
  48. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts.map +1 -0
  49. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts +7 -0
  50. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts.map +1 -0
  51. package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts +8 -0
  52. package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts.map +1 -0
  53. package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts +8 -0
  54. package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts.map +1 -0
  55. package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts +5 -1
  56. package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts.map +1 -1
  57. package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts +5 -1
  58. package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts +5 -1
  60. package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts +8 -0
  62. package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts.map +1 -0
  63. package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts +8 -0
  64. package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts.map +1 -0
  65. package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts +8 -0
  66. package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts.map +1 -0
  67. package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts +24 -0
  68. package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts.map +1 -0
  69. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  70. package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
  71. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  72. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
  73. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  74. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
  75. package/build/@types/ocm/config/constants.d.ts +2 -0
  76. package/build/@types/ocm/config/constants.d.ts.map +1 -1
  77. package/build/@types/ocm/sentry.d.ts +2 -2
  78. package/build/@types/ocm/sentry.d.ts.map +1 -1
  79. package/build/@types/ocm/services/BundleService.d.ts +6 -0
  80. package/build/@types/ocm/services/BundleService.d.ts.map +1 -0
  81. package/build/@types/ocm/services/ClustersService.d.ts +1 -0
  82. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  83. package/build/@types/ocm/services/OperatorsService.d.ts +1 -0
  84. package/build/@types/ocm/services/OperatorsService.d.ts.map +1 -1
  85. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +1 -0
  86. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
  87. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +4 -5
  88. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  89. package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js +1 -1
  90. package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js.map +1 -1
  91. package/build/cjs/cim/components/common/constants.js +1 -1
  92. package/build/cjs/cim/components/common/constants.js.map +1 -1
  93. package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
  94. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  95. package/build/cjs/cim/components/modals/AddHostModal.js +4 -5
  96. package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
  97. package/build/cjs/common/api/assisted-service/BundleAPI.js +16 -0
  98. package/build/cjs/common/api/assisted-service/BundleAPI.js.map +1 -0
  99. package/build/cjs/common/api/assisted-service/OperatorsAPI.js +13 -0
  100. package/build/cjs/common/api/assisted-service/OperatorsAPI.js.map +1 -0
  101. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +41 -0
  102. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -0
  103. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +4 -5
  104. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  105. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.js +5 -5
  106. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.js.map +1 -1
  107. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +6 -2
  108. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  109. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +2 -2
  110. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
  111. package/build/cjs/common/components/hosts/AITableMemo.js +16 -13
  112. package/build/cjs/common/components/hosts/AITableMemo.js.map +1 -1
  113. package/build/cjs/common/components/hosts/HostRowDetail.js +35 -1
  114. package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
  115. package/build/cjs/common/components/storage/DisksTable.js +16 -10
  116. package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
  117. package/build/cjs/common/config/constants.js +12 -1
  118. package/build/cjs/common/config/constants.js.map +1 -1
  119. package/build/cjs/common/config/docs_links.js +1 -1
  120. package/build/cjs/common/config/docs_links.js.map +1 -1
  121. package/build/cjs/common/selectors/clusterSelectors.js +7 -1
  122. package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
  123. package/build/cjs/common/types/clusters.js.map +1 -1
  124. package/build/cjs/ocm/components/SentryErrorMonitorContextProvider.js.map +1 -1
  125. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +10 -9
  126. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  127. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +14 -1
  128. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
  129. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -2
  130. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  131. package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js +29 -0
  132. package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js.map +1 -0
  133. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +3 -20
  134. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +1 -1
  135. package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js +29 -0
  136. package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js.map +1 -0
  137. package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +5 -21
  138. package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +1 -1
  139. package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +6 -7
  140. package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +1 -1
  141. package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js +8 -13
  142. package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js.map +1 -1
  143. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js +30 -0
  144. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js.map +1 -0
  145. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js +48 -0
  146. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js.map +1 -0
  147. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js +29 -0
  148. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js.map +1 -0
  149. package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js +29 -0
  150. package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js.map +1 -0
  151. package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +7 -18
  152. package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +1 -1
  153. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js +4 -17
  154. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js.map +1 -1
  155. package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js +3 -12
  156. package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js.map +1 -1
  157. package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js +29 -0
  158. package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js.map +1 -0
  159. package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js +29 -0
  160. package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js.map +1 -0
  161. package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js +29 -0
  162. package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js.map +1 -0
  163. package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js +73 -0
  164. package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js.map +1 -0
  165. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
  167. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +1 -1
  168. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  169. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +4 -0
  170. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  171. package/build/cjs/ocm/components/clusterWizard/Operators.js +9 -1
  172. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  173. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +209 -22
  174. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  175. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +1 -1
  176. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  177. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +40 -0
  178. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  179. package/build/cjs/ocm/config/constants.js +155 -1
  180. package/build/cjs/ocm/config/constants.js.map +1 -1
  181. package/build/cjs/ocm/sentry.js +1 -1
  182. package/build/cjs/ocm/sentry.js.map +1 -1
  183. package/build/cjs/ocm/services/BundleService.js +20 -0
  184. package/build/cjs/ocm/services/BundleService.js.map +1 -0
  185. package/build/cjs/ocm/services/ClustersService.js +33 -1
  186. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  187. package/build/cjs/ocm/services/OperatorsService.js +16 -8
  188. package/build/cjs/ocm/services/OperatorsService.js.map +1 -1
  189. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +4 -6
  190. package/lib/cim/components/InfraEnv/OpenshiftVersionDropdown.tsx +1 -1
  191. package/lib/cim/components/common/constants.ts +1 -2
  192. package/lib/cim/components/helpers/toAssisted.ts +1 -0
  193. package/lib/cim/components/modals/AddHostModal.tsx +4 -5
  194. package/lib/cim/types/k8s/infra-env-k8s-resource.ts +1 -0
  195. package/lib/common/api/assisted-service/BundleAPI.ts +18 -0
  196. package/lib/common/api/assisted-service/OperatorsAPI.ts +13 -0
  197. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +93 -0
  198. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +10 -12
  199. package/lib/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.tsx +9 -9
  200. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +9 -1
  201. package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +1 -1
  202. package/lib/common/components/clusterWizard/types.ts +4 -2
  203. package/lib/common/components/hosts/AITableMemo.tsx +1 -1
  204. package/lib/common/components/hosts/HostRowDetail.tsx +71 -1
  205. package/lib/common/components/storage/DisksTable.tsx +25 -18
  206. package/lib/common/config/constants.ts +12 -0
  207. package/lib/common/config/docs_links.ts +1 -1
  208. package/lib/common/selectors/clusterSelectors.ts +8 -0
  209. package/lib/common/types/clusters.ts +8 -0
  210. package/lib/common/types/ui-settings.ts +1 -0
  211. package/lib/ocm/components/SentryErrorMonitorContextProvider.tsx +1 -2
  212. package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +13 -12
  213. package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +24 -1
  214. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +2 -2
  215. package/lib/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.tsx +63 -0
  216. package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +7 -31
  217. package/lib/ocm/components/clusterConfiguration/operators/LsoCheckbox.tsx +63 -0
  218. package/lib/ocm/components/clusterConfiguration/operators/LvmCheckbox.tsx +8 -26
  219. package/lib/ocm/components/clusterConfiguration/operators/MceCheckbox.tsx +10 -3
  220. package/lib/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.tsx +23 -12
  221. package/lib/ocm/components/clusterConfiguration/operators/NmstateCheckbox.tsx +76 -0
  222. package/lib/ocm/components/clusterConfiguration/operators/NmstateRequirements.tsx +53 -0
  223. package/lib/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.tsx +66 -0
  224. package/lib/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.tsx +63 -0
  225. package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +20 -25
  226. package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.tsx +11 -24
  227. package/lib/ocm/components/clusterConfiguration/operators/OscCheckbox.tsx +10 -25
  228. package/lib/ocm/components/clusterConfiguration/operators/PipelinesChekbox.tsx +64 -0
  229. package/lib/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.tsx +63 -0
  230. package/lib/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.tsx +63 -0
  231. package/lib/ocm/components/clusterConfiguration/operators/SupportedOperators.tsx +105 -0
  232. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -1
  233. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +1 -1
  234. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -0
  235. package/lib/ocm/components/clusterWizard/Operators.tsx +21 -1
  236. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +374 -38
  237. package/lib/ocm/components/clusterWizard/wizardTransition.ts +1 -1
  238. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +40 -0
  239. package/lib/ocm/config/constants.ts +156 -0
  240. package/lib/ocm/sentry.ts +2 -1
  241. package/lib/ocm/services/BundleService.ts +14 -0
  242. package/lib/ocm/services/ClustersService.ts +39 -2
  243. package/lib/ocm/services/OperatorsService.tsx +21 -10
  244. package/package.json +3 -3
@@ -14,8 +14,14 @@ import omit from 'lodash-es/omit.js';
14
14
  import ClustersAPI from '../../common/api/assisted-service/ClustersAPI';
15
15
  import HostsService from './HostsService';
16
16
  import InfraEnvsService from './InfraEnvsService';
17
- import { AI_ASSISTED_MIGRATION_TAG, AI_UI_TAG } from '../../common/config/constants';
17
+ import {
18
+ AI_ASSISTED_MIGRATION_TAG,
19
+ AI_CISCO_INTERSIGHT_TAG,
20
+ AI_UI_TAG,
21
+ } from '../../common/config/constants';
18
22
  import { isInOcm } from '../../common/api/axiosClient';
23
+ import { yamlContentAssistedMigration1, yamlContentAssistedMigration2 } from '../config';
24
+ import jsYaml from 'js-yaml';
19
25
 
20
26
  const ClustersService = {
21
27
  findHost(hosts: Cluster['hosts'] = [], hostId: Host['id']) {
@@ -94,7 +100,12 @@ const ClustersService = {
94
100
  ): V2ClusterUpdateParams {
95
101
  const tags = clusterTags?.split(',') || <string[]>[];
96
102
  if (tags.includes(AI_UI_TAG)) {
97
- delete params.tags;
103
+ if (params.tags && params.tags.includes(AI_CISCO_INTERSIGHT_TAG)) {
104
+ tags?.push(AI_CISCO_INTERSIGHT_TAG);
105
+ params.tags = tags?.join(',');
106
+ } else {
107
+ delete params.tags;
108
+ }
98
109
  } else {
99
110
  tags?.push(AI_UI_TAG);
100
111
  params.tags = tags?.join(',');
@@ -156,6 +167,32 @@ const ClustersService = {
156
167
  this.getUpdateManifestParams(existingManifest, updatedManifest),
157
168
  );
158
169
  },
170
+
171
+ //TO-DO: Assisted-Migration. Provisional code. Needs to be removed when MTV integration be finished
172
+ async createClusterManifestsForAssistedMigration(clusterId: Cluster['id']) {
173
+ const manifests: CustomManifestValues[] = [];
174
+
175
+ const parsedYaml1 = jsYaml.dump(yamlContentAssistedMigration1);
176
+ manifests.push({
177
+ folder: 'openshift',
178
+ filename: '0gitops.yaml',
179
+ manifestYaml: parsedYaml1,
180
+ created: true,
181
+ });
182
+
183
+ const parsedYaml2 = jsYaml.dump(yamlContentAssistedMigration2);
184
+ manifests.push({
185
+ folder: 'openshift',
186
+ filename: '1rolebindings.yaml',
187
+ manifestYaml: parsedYaml2,
188
+ created: true,
189
+ });
190
+
191
+ const promises = manifests.map((manifest) => {
192
+ return ClustersAPI.createCustomManifest(clusterId, this.transformFormViewManifest(manifest));
193
+ });
194
+ return Promise.all(promises);
195
+ },
159
196
  };
160
197
 
161
198
  export default ClustersService;
@@ -9,17 +9,20 @@ import {
9
9
  OPERATOR_NAME_MTV,
10
10
  OPERATOR_NAME_OPENSHIFT_AI,
11
11
  OPERATOR_NAME_OSC,
12
+ OPERATOR_NAME_NODE_FEATURE_DISCOVERY,
13
+ OPERATOR_NAME_NMSTATE,
14
+ OPERATOR_NAME_SERVERLESS,
15
+ OPERATOR_NAME_AUTHORINO,
16
+ OPERATOR_NAME_PIPELINES,
17
+ OPERATOR_NAME_SERVICEMESH,
18
+ OPERATOR_NAME_NVIDIA_GPU,
12
19
  } from '../../common';
13
20
  import { getOlmOperatorCreateParamsByName } from '../components/clusters/utils';
14
- import { getKeys } from '../../common/utils';
15
21
  import {
16
22
  Cluster,
17
23
  OperatorCreateParams,
18
24
  } from '@openshift-assisted/types/assisted-installer-service';
19
-
20
- const hasActiveOperators = (values: OperatorsValues) => {
21
- return getKeys(values).some((operatorParam) => values[operatorParam]);
22
- };
25
+ import OperatorsAPI from '../../common/api/assisted-service/OperatorsAPI';
23
26
 
24
27
  const OperatorsService = {
25
28
  getOLMOperators(values: OperatorsValues, cluster: Cluster): OperatorCreateParams[] {
@@ -41,11 +44,14 @@ const OperatorsService = {
41
44
  setOperator(OPERATOR_NAME_MTV, values.useMigrationToolkitforVirtualization);
42
45
  setOperator(OPERATOR_NAME_OPENSHIFT_AI, values.useOpenShiftAI);
43
46
  setOperator(OPERATOR_NAME_OSC, values.useOsc);
44
-
45
- // TODO: remove following once the LSO option is exposed to the user
46
- if (!hasActiveOperators(values)) {
47
- setOperator(OPERATOR_NAME_LSO, false);
48
- }
47
+ setOperator(OPERATOR_NAME_NODE_FEATURE_DISCOVERY, values.useNodeFeatureDiscovery);
48
+ setOperator(OPERATOR_NAME_NMSTATE, values.useNmstate);
49
+ setOperator(OPERATOR_NAME_LSO, values.useLso);
50
+ setOperator(OPERATOR_NAME_SERVERLESS, values.useServerless);
51
+ setOperator(OPERATOR_NAME_AUTHORINO, values.useAuthorino);
52
+ setOperator(OPERATOR_NAME_PIPELINES, values.usePipelines);
53
+ setOperator(OPERATOR_NAME_SERVICEMESH, values.useServicemesh);
54
+ setOperator(OPERATOR_NAME_NVIDIA_GPU, values.useNvidiaGpu);
49
55
 
50
56
  return Object.values(enabledOlmOperatorsByName);
51
57
  },
@@ -79,5 +85,10 @@ const OperatorsService = {
79
85
 
80
86
  return updates;
81
87
  },
88
+
89
+ async getSupportedOperators(): Promise<string[]> {
90
+ const { data: operators } = await OperatorsAPI.list();
91
+ return operators;
92
+ },
82
93
  };
83
94
  export default OperatorsService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@openshift-assisted/locales": "2.37.2",
4
- "@openshift-assisted/types": "2.37.2",
3
+ "@openshift-assisted/locales": "2.38.0",
4
+ "@openshift-assisted/types": "2.38.0",
5
5
  "@openshift-console/dynamic-plugin-sdk": "0.0.3",
6
6
  "@patternfly/patternfly": "5.2.0",
7
7
  "@patternfly/react-code-editor": "5.2.0",
@@ -139,5 +139,5 @@
139
139
  ]
140
140
  }
141
141
  },
142
- "version": "2.37.2"
142
+ "version": "2.38.0"
143
143
  }