@openshift-assisted/ui-lib 2.37.3 → 2.38.1

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 (246) 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/clusterWizard/types.d.ts +3 -1
  17. package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
  18. package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
  19. package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
  20. package/build/@types/common/config/constants.d.ts +5 -0
  21. package/build/@types/common/config/constants.d.ts.map +1 -1
  22. package/build/@types/common/config/docs_links.d.ts +9 -1
  23. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  24. package/build/@types/common/selectors/clusterSelectors.d.ts +1 -0
  25. package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
  26. package/build/@types/common/types/clusters.d.ts +8 -0
  27. package/build/@types/common/types/clusters.d.ts.map +1 -1
  28. package/build/@types/common/types/ui-settings.d.ts +1 -0
  29. package/build/@types/common/types/ui-settings.d.ts.map +1 -1
  30. package/build/@types/ocm/components/SentryErrorMonitorContextProvider.d.ts.map +1 -1
  31. package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  32. package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts +8 -0
  33. package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts.map +1 -0
  34. package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts +4 -1
  35. package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts.map +1 -1
  36. package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts +8 -0
  37. package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts.map +1 -0
  38. package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts +4 -1
  39. package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts.map +1 -1
  40. package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts +4 -1
  41. package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts.map +1 -1
  42. package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts +4 -1
  43. package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts.map +1 -1
  44. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts +10 -0
  45. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts.map +1 -0
  46. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts +7 -0
  47. package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts.map +1 -0
  48. package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts +8 -0
  49. package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts.map +1 -0
  50. package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts +8 -0
  51. package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts.map +1 -0
  52. package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts +5 -1
  53. package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts.map +1 -1
  54. package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts +5 -1
  55. package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts.map +1 -1
  56. package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.d.ts.map +1 -1
  57. package/build/@types/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.d.ts +4 -0
  58. package/build/@types/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.d.ts.map +1 -0
  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/clusterConfiguration/operators/VirtualizationRequirements.d.ts +4 -0
  70. package/build/@types/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.d.ts.map +1 -0
  71. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  72. package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  74. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
  75. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  76. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
  77. package/build/@types/ocm/config/constants.d.ts +2 -0
  78. package/build/@types/ocm/config/constants.d.ts.map +1 -1
  79. package/build/@types/ocm/sentry.d.ts +2 -2
  80. package/build/@types/ocm/sentry.d.ts.map +1 -1
  81. package/build/@types/ocm/services/BundleService.d.ts +6 -0
  82. package/build/@types/ocm/services/BundleService.d.ts.map +1 -0
  83. package/build/@types/ocm/services/ClustersService.d.ts +1 -0
  84. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  85. package/build/@types/ocm/services/OperatorsService.d.ts +1 -0
  86. package/build/@types/ocm/services/OperatorsService.d.ts.map +1 -1
  87. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +1 -0
  88. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
  89. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +4 -5
  90. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  91. package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js +1 -1
  92. package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js.map +1 -1
  93. package/build/cjs/cim/components/common/constants.js +1 -1
  94. package/build/cjs/cim/components/common/constants.js.map +1 -1
  95. package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
  96. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  97. package/build/cjs/cim/components/modals/AddHostModal.js +4 -5
  98. package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
  99. package/build/cjs/common/api/assisted-service/BundleAPI.js +16 -0
  100. package/build/cjs/common/api/assisted-service/BundleAPI.js.map +1 -0
  101. package/build/cjs/common/api/assisted-service/OperatorsAPI.js +13 -0
  102. package/build/cjs/common/api/assisted-service/OperatorsAPI.js.map +1 -0
  103. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +41 -0
  104. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -0
  105. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +4 -5
  106. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  107. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.js +5 -5
  108. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.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 +11 -1
  118. package/build/cjs/common/config/constants.js.map +1 -1
  119. package/build/cjs/common/config/docs_links.js +10 -2
  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/OcmClusterDetailsFormFields.js +2 -2
  128. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  129. package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js +34 -0
  130. package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js.map +1 -0
  131. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +8 -20
  132. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +1 -1
  133. package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js +34 -0
  134. package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js.map +1 -0
  135. package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +5 -21
  136. package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +1 -1
  137. package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +6 -7
  138. package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +1 -1
  139. package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js +8 -13
  140. package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js.map +1 -1
  141. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js +35 -0
  142. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js.map +1 -0
  143. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js +48 -0
  144. package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js.map +1 -0
  145. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js +34 -0
  146. package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js.map +1 -0
  147. package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js +34 -0
  148. package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js.map +1 -0
  149. package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +11 -17
  150. package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +1 -1
  151. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js +4 -17
  152. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js.map +1 -1
  153. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.js +1 -12
  154. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.js.map +1 -1
  155. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.js +30 -0
  156. package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.js.map +1 -0
  157. package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js +3 -12
  158. package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js.map +1 -1
  159. package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js +34 -0
  160. package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js.map +1 -0
  161. package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js +34 -0
  162. package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js.map +1 -0
  163. package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js +34 -0
  164. package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js.map +1 -0
  165. package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js +73 -0
  166. package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js.map +1 -0
  167. package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js +19 -0
  168. package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js.map +1 -0
  169. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -1
  170. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
  171. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +4 -0
  172. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  173. package/build/cjs/ocm/components/clusterWizard/Operators.js +9 -1
  174. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  175. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +239 -22
  176. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  177. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +1 -1
  178. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  179. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +41 -1
  180. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  181. package/build/cjs/ocm/config/constants.js +155 -1
  182. package/build/cjs/ocm/config/constants.js.map +1 -1
  183. package/build/cjs/ocm/sentry.js +1 -1
  184. package/build/cjs/ocm/sentry.js.map +1 -1
  185. package/build/cjs/ocm/services/BundleService.js +20 -0
  186. package/build/cjs/ocm/services/BundleService.js.map +1 -0
  187. package/build/cjs/ocm/services/ClustersService.js +26 -0
  188. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  189. package/build/cjs/ocm/services/OperatorsService.js +16 -8
  190. package/build/cjs/ocm/services/OperatorsService.js.map +1 -1
  191. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +4 -6
  192. package/lib/cim/components/InfraEnv/OpenshiftVersionDropdown.tsx +1 -1
  193. package/lib/cim/components/common/constants.ts +1 -2
  194. package/lib/cim/components/helpers/toAssisted.ts +1 -0
  195. package/lib/cim/components/modals/AddHostModal.tsx +4 -5
  196. package/lib/cim/types/k8s/infra-env-k8s-resource.ts +1 -0
  197. package/lib/common/api/assisted-service/BundleAPI.ts +18 -0
  198. package/lib/common/api/assisted-service/OperatorsAPI.ts +13 -0
  199. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +93 -0
  200. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +10 -12
  201. package/lib/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.tsx +9 -9
  202. package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +1 -1
  203. package/lib/common/components/clusterWizard/types.ts +4 -2
  204. package/lib/common/components/hosts/AITableMemo.tsx +1 -1
  205. package/lib/common/components/hosts/HostRowDetail.tsx +71 -1
  206. package/lib/common/components/storage/DisksTable.tsx +25 -18
  207. package/lib/common/config/constants.ts +10 -0
  208. package/lib/common/config/docs_links.ts +24 -1
  209. package/lib/common/selectors/clusterSelectors.ts +8 -0
  210. package/lib/common/types/clusters.ts +8 -0
  211. package/lib/common/types/ui-settings.ts +1 -0
  212. package/lib/ocm/components/SentryErrorMonitorContextProvider.tsx +1 -2
  213. package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +13 -12
  214. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +2 -2
  215. package/lib/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.tsx +67 -0
  216. package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +12 -25
  217. package/lib/ocm/components/clusterConfiguration/operators/LsoCheckbox.tsx +67 -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 +85 -0
  222. package/lib/ocm/components/clusterConfiguration/operators/NmstateRequirements.tsx +53 -0
  223. package/lib/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.tsx +70 -0
  224. package/lib/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.tsx +67 -0
  225. package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +24 -18
  226. package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.tsx +11 -24
  227. package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.tsx +0 -14
  228. package/lib/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.tsx +36 -0
  229. package/lib/ocm/components/clusterConfiguration/operators/OscCheckbox.tsx +10 -25
  230. package/lib/ocm/components/clusterConfiguration/operators/PipelinesChekbox.tsx +68 -0
  231. package/lib/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.tsx +67 -0
  232. package/lib/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.tsx +67 -0
  233. package/lib/ocm/components/clusterConfiguration/operators/SupportedOperators.tsx +105 -0
  234. package/lib/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.tsx +26 -0
  235. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -1
  236. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -0
  237. package/lib/ocm/components/clusterWizard/Operators.tsx +21 -1
  238. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +419 -38
  239. package/lib/ocm/components/clusterWizard/wizardTransition.ts +1 -1
  240. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +41 -1
  241. package/lib/ocm/config/constants.ts +156 -0
  242. package/lib/ocm/sentry.ts +2 -1
  243. package/lib/ocm/services/BundleService.ts +14 -0
  244. package/lib/ocm/services/ClustersService.ts +28 -0
  245. package/lib/ocm/services/OperatorsService.tsx +21 -10
  246. package/package.json +3 -3
@@ -0,0 +1,68 @@
1
+ import React from 'react';
2
+ import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
3
+ import { getFieldId, PIPELINES_OPERATOR_LINK, PopoverIcon } from '../../../../common';
4
+ import { OcmCheckboxField } from '../../ui/OcmFormFields';
5
+ import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
6
+ import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
7
+ import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
8
+
9
+ const PIPELINES_FIELD_NAME = 'usePipelines';
10
+
11
+ const PipelinesLabel = ({
12
+ disabledReason,
13
+ supportLevel,
14
+ }: {
15
+ disabledReason?: string;
16
+ supportLevel?: SupportLevel;
17
+ }) => {
18
+ return (
19
+ <>
20
+ <Tooltip hidden={!disabledReason} content={disabledReason}>
21
+ <span>Install Pipelines </span>
22
+ </Tooltip>
23
+ <PopoverIcon
24
+ id={PIPELINES_FIELD_NAME}
25
+ component={'a'}
26
+ bodyContent={'No additional requirements needed'}
27
+ />
28
+ <NewFeatureSupportLevelBadge featureId="PIPELINES" supportLevel={supportLevel} />
29
+ </>
30
+ );
31
+ };
32
+
33
+ const PipelinesHelperText = () => {
34
+ return (
35
+ <HelperText>
36
+ <HelperTextItem variant="indeterminate">
37
+ Cloud-native continuous integration and delivery (CI/CD) solution for building pipelines
38
+ using Tekton.{' '}
39
+ <a href={PIPELINES_OPERATOR_LINK} target="_blank" rel="noopener noreferrer">
40
+ {'Learn more'} <ExternalLinkAltIcon />
41
+ </a>
42
+ </HelperTextItem>
43
+ </HelperText>
44
+ );
45
+ };
46
+
47
+ const PipelinesCheckbox = ({
48
+ disabledReason,
49
+ supportLevel,
50
+ }: {
51
+ disabledReason?: string;
52
+ supportLevel?: SupportLevel | undefined;
53
+ }) => {
54
+ const fieldId = getFieldId(PIPELINES_FIELD_NAME, 'input');
55
+
56
+ return (
57
+ <FormGroup isInline fieldId={fieldId}>
58
+ <OcmCheckboxField
59
+ name={PIPELINES_FIELD_NAME}
60
+ label={<PipelinesLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
61
+ helperText={<PipelinesHelperText />}
62
+ isDisabled={!!disabledReason}
63
+ />
64
+ </FormGroup>
65
+ );
66
+ };
67
+
68
+ export default PipelinesCheckbox;
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
3
+ import { getFieldId, PopoverIcon, SERVERLESS_OPERATOR_LINK } from '../../../../common';
4
+ import { OcmCheckboxField } from '../../ui/OcmFormFields';
5
+ import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
6
+ import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
7
+ import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
8
+
9
+ const SERVERLESS_FIELD_NAME = 'useServerless';
10
+
11
+ const ServerlessLabel = ({
12
+ disabledReason,
13
+ supportLevel,
14
+ }: {
15
+ disabledReason?: string;
16
+ supportLevel?: SupportLevel;
17
+ }) => {
18
+ return (
19
+ <>
20
+ <Tooltip hidden={!disabledReason} content={disabledReason}>
21
+ <span>Install Serverless </span>
22
+ </Tooltip>
23
+ <PopoverIcon
24
+ id={SERVERLESS_FIELD_NAME}
25
+ component={'a'}
26
+ bodyContent={'No additional requirements needed'}
27
+ />
28
+ <NewFeatureSupportLevelBadge featureId="SERVERLESS" supportLevel={supportLevel} />
29
+ </>
30
+ );
31
+ };
32
+
33
+ const ServerlessHelperText = () => {
34
+ return (
35
+ <HelperText>
36
+ <HelperTextItem variant="indeterminate">
37
+ Deploy workflow applications based on the CNCF Serverless Workflow specification.{' '}
38
+ <a href={SERVERLESS_OPERATOR_LINK} target="_blank" rel="noopener noreferrer">
39
+ {'Learn more'} <ExternalLinkAltIcon />
40
+ </a>
41
+ </HelperTextItem>
42
+ </HelperText>
43
+ );
44
+ };
45
+
46
+ const ServerlessCheckbox = ({
47
+ disabledReason,
48
+ supportLevel,
49
+ }: {
50
+ disabledReason?: string;
51
+ supportLevel?: SupportLevel | undefined;
52
+ }) => {
53
+ const fieldId = getFieldId(SERVERLESS_FIELD_NAME, 'input');
54
+
55
+ return (
56
+ <FormGroup isInline fieldId={fieldId}>
57
+ <OcmCheckboxField
58
+ name={SERVERLESS_FIELD_NAME}
59
+ label={<ServerlessLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
60
+ helperText={<ServerlessHelperText />}
61
+ isDisabled={!!disabledReason}
62
+ />
63
+ </FormGroup>
64
+ );
65
+ };
66
+
67
+ export default ServerlessCheckbox;
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
3
+ import { getFieldId, PopoverIcon, SERVICE_MESH_OPERATOR_LINK } from '../../../../common';
4
+ import { OcmCheckboxField } from '../../ui/OcmFormFields';
5
+ import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
6
+ import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
7
+ import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
8
+
9
+ const SERVICEMESH_FIELD_NAME = 'useServicemesh';
10
+
11
+ const ServiceMeshLabel = ({
12
+ disabledReason,
13
+ supportLevel,
14
+ }: {
15
+ disabledReason?: string;
16
+ supportLevel?: SupportLevel;
17
+ }) => {
18
+ return (
19
+ <>
20
+ <Tooltip hidden={!disabledReason} content={disabledReason}>
21
+ <span>Install Service Mesh </span>
22
+ </Tooltip>
23
+ <PopoverIcon
24
+ id={SERVICEMESH_FIELD_NAME}
25
+ component={'a'}
26
+ bodyContent={'No additional requirements needed'}
27
+ />
28
+ <NewFeatureSupportLevelBadge featureId="SERVICEMESH" supportLevel={supportLevel} />
29
+ </>
30
+ );
31
+ };
32
+
33
+ const ServiceMeshHelperText = () => {
34
+ return (
35
+ <HelperText>
36
+ <HelperTextItem variant="indeterminate">
37
+ Platform that provides behavioral insight and operational control over a service mesh.{' '}
38
+ <a href={SERVICE_MESH_OPERATOR_LINK} target="_blank" rel="noopener noreferrer">
39
+ {'Learn more'} <ExternalLinkAltIcon />
40
+ </a>
41
+ </HelperTextItem>
42
+ </HelperText>
43
+ );
44
+ };
45
+
46
+ const ServiceMeshCheckbox = ({
47
+ disabledReason,
48
+ supportLevel,
49
+ }: {
50
+ disabledReason?: string;
51
+ supportLevel?: SupportLevel | undefined;
52
+ }) => {
53
+ const fieldId = getFieldId(SERVICEMESH_FIELD_NAME, 'input');
54
+
55
+ return (
56
+ <FormGroup isInline fieldId={fieldId}>
57
+ <OcmCheckboxField
58
+ name={SERVICEMESH_FIELD_NAME}
59
+ label={<ServiceMeshLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
60
+ helperText={<ServiceMeshHelperText />}
61
+ isDisabled={!!disabledReason}
62
+ />
63
+ </FormGroup>
64
+ );
65
+ };
66
+
67
+ export default ServiceMeshCheckbox;
@@ -0,0 +1,105 @@
1
+ import React from 'react';
2
+ import CnvCheckbox from './CnvCheckbox';
3
+ import MtvOperatorCheckbox from './MtvOperatorCheckbox';
4
+ import MceCheckbox from './MceCheckbox';
5
+ import LvmCheckbox from './LvmCheckbox';
6
+ import OdfCheckbox from './OdfCheckbox';
7
+ import OpenShiftAICheckbox from './OpenShiftAICheckbox';
8
+ import OscCheckbox from './OscCheckbox';
9
+ import LsoCheckbox from './LsoCheckbox';
10
+ import NodeFeatureDiscoveryCheckbox from './NodeFeatureDiscoveryCheckbox';
11
+ import NmstateCheckbox from './NmstateCheckbox';
12
+ import ServerlessCheckbox from './ServerlessCheckbox';
13
+ import AuthorinoCheckbox from './AuthorinoCheckbox';
14
+ import PipelinesCheckbox from './PipelinesChekbox';
15
+ import ServiceMeshCheckbox from './ServicemeshCheckbox';
16
+ import NvidiaGpuCheckbox from './NvidiaGpuCheckbox';
17
+ import {
18
+ FeatureId,
19
+ OPERATOR_NAME_AUTHORINO,
20
+ OPERATOR_NAME_CNV,
21
+ OPERATOR_NAME_LSO,
22
+ OPERATOR_NAME_LVM,
23
+ OPERATOR_NAME_MCE,
24
+ OPERATOR_NAME_MTV,
25
+ OPERATOR_NAME_NMSTATE,
26
+ OPERATOR_NAME_NODE_FEATURE_DISCOVERY,
27
+ OPERATOR_NAME_NVIDIA_GPU,
28
+ OPERATOR_NAME_ODF,
29
+ OPERATOR_NAME_OPENSHIFT_AI,
30
+ OPERATOR_NAME_OSC,
31
+ OPERATOR_NAME_PIPELINES,
32
+ OPERATOR_NAME_SERVERLESS,
33
+ OPERATOR_NAME_SERVICEMESH,
34
+ } from '../../../../common';
35
+ import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
36
+
37
+ interface OperatorProps {
38
+ clusterId: string;
39
+ openshiftVersion?: string;
40
+ isVersionEqualsOrMajorThan4_15: boolean;
41
+ isSNO: boolean;
42
+ disabledReason?: string;
43
+ supportLevel?: SupportLevel | undefined;
44
+ }
45
+
46
+ export interface ComponentItem {
47
+ component: JSX.Element;
48
+ label: string;
49
+ }
50
+
51
+ export const operatorComponentMap: Record<string, (props: OperatorProps) => JSX.Element> = {
52
+ cnv: (props) => (
53
+ <CnvCheckbox {...props} isVersionEqualsOrMajorThan4_15={props.isVersionEqualsOrMajorThan4_15} />
54
+ ),
55
+ mtv: (props) => <MtvOperatorCheckbox {...props} />,
56
+ mce: (props) => <MceCheckbox {...props} />,
57
+ lvm: (props) => <LvmCheckbox {...props} />,
58
+ odf: (props) => <OdfCheckbox {...props} />,
59
+ 'openshift-ai': (props) => <OpenShiftAICheckbox {...props} />,
60
+ osc: (props) => <OscCheckbox {...props} />,
61
+ lso: (props) => <LsoCheckbox {...props} />,
62
+ 'node-feature-discovery': (props) => <NodeFeatureDiscoveryCheckbox {...props} />,
63
+ nmstate: (props) => <NmstateCheckbox {...props} />,
64
+ serverless: (props) => <ServerlessCheckbox {...props} />,
65
+ authorino: (props) => <AuthorinoCheckbox {...props} />,
66
+ pipelines: (props) => <PipelinesCheckbox {...props} />,
67
+ servicemesh: (props) => <ServiceMeshCheckbox {...props} />,
68
+ 'nvidia-gpu': (props) => <NvidiaGpuCheckbox {...props} />,
69
+ };
70
+
71
+ export const mapOperatorsToFieldIds: { [key: string]: string } = {
72
+ [OPERATOR_NAME_ODF]: 'useOpenShiftDataFoundation',
73
+ [OPERATOR_NAME_LVM]: 'useOdfLogicalVolumeManager',
74
+ [OPERATOR_NAME_CNV]: 'useContainerNativeVirtualization',
75
+ [OPERATOR_NAME_MCE]: 'useMultiClusterEngine',
76
+ [OPERATOR_NAME_MTV]: 'useMigrationToolkitforVirtualization',
77
+ [OPERATOR_NAME_OPENSHIFT_AI]: 'useOpenShiftAI',
78
+ [OPERATOR_NAME_OSC]: 'useOsc',
79
+ [OPERATOR_NAME_NODE_FEATURE_DISCOVERY]: 'useNodeFeatureDiscovery',
80
+ [OPERATOR_NAME_NMSTATE]: 'useNmstate',
81
+ [OPERATOR_NAME_LSO]: 'useLso',
82
+ [OPERATOR_NAME_SERVERLESS]: 'useServerless',
83
+ [OPERATOR_NAME_AUTHORINO]: 'useAuthorino',
84
+ [OPERATOR_NAME_PIPELINES]: 'usePipelines',
85
+ [OPERATOR_NAME_SERVICEMESH]: 'useServicemesh',
86
+ [OPERATOR_NAME_NVIDIA_GPU]: 'useNvidiaGpu',
87
+ };
88
+
89
+ export const mapOperatorIdToFeatureId: { [key: string]: FeatureId } = {
90
+ [OPERATOR_NAME_ODF]: 'ODF',
91
+ [OPERATOR_NAME_LVM]: 'LVM',
92
+ [OPERATOR_NAME_CNV]: 'CNV',
93
+ [OPERATOR_NAME_MCE]: 'MCE',
94
+ [OPERATOR_NAME_MTV]: 'MTV',
95
+ [OPERATOR_NAME_OPENSHIFT_AI]: 'OPENSHIFT_AI',
96
+ [OPERATOR_NAME_OSC]: 'OSC',
97
+ [OPERATOR_NAME_NODE_FEATURE_DISCOVERY]: 'NODE_FEATURE_DISCOVERY',
98
+ [OPERATOR_NAME_NMSTATE]: 'NMSTATE',
99
+ [OPERATOR_NAME_LSO]: 'LSO',
100
+ [OPERATOR_NAME_SERVERLESS]: 'SERVERLESS',
101
+ [OPERATOR_NAME_AUTHORINO]: 'AUTHORINO',
102
+ [OPERATOR_NAME_PIPELINES]: 'PIPELINES',
103
+ [OPERATOR_NAME_SERVICEMESH]: 'SERVICEMESH',
104
+ [OPERATOR_NAME_NVIDIA_GPU]: 'NVIDIA_GPU',
105
+ };
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { List, ListItem } from '@patternfly/react-core';
3
+
4
+ const VirtualizationRequirements = () => {
5
+ return (
6
+ <>
7
+ <List>
8
+ <ListItem>
9
+ Enabled CPU virtualization support in BIOS (Intel-VT / AMD-V) on all nodes.
10
+ </ListItem>
11
+ <ListItem>
12
+ Each control plane node requires an additional 1024 MiB of memory and 3 CPUs.
13
+ </ListItem>
14
+ <ListItem>Each worker node requires an additional 1024 MiB of memory and 5 CPUs.</ListItem>
15
+ </List>
16
+ Bundle operators:
17
+ <List>
18
+ <ListItem>OpenShift Virtualization</ListItem>
19
+ <ListItem>Migration Toolkit for Virtualization</ListItem>
20
+ <ListItem>Nmstate</ListItem>
21
+ </List>
22
+ </>
23
+ );
24
+ };
25
+
26
+ export default VirtualizationRequirements;
@@ -76,7 +76,7 @@ const getExpandedHostComponent = (protocolType: StaticProtocolType) => {
76
76
  />{' '}
77
77
  <OcmInputField
78
78
  name={`${fieldName}.bondSecondaryInterface`}
79
- label="Port 2 MAC Adddress"
79
+ label="Port 2 MAC Address"
80
80
  data-testid={`bond-secondary-interface-${hostIdx}`}
81
81
  isRequired
82
82
  />
@@ -78,6 +78,10 @@ const ClusterDetails = ({ cluster, infraEnv }: ClusterDetailsProps) => {
78
78
  const cluster = await ClustersService.create(params, isAssistedMigration);
79
79
  navigate(`../${cluster.id}`, { state: ClusterWizardFlowStateNew });
80
80
  await UISettingService.update(cluster.id, { addCustomManifests });
81
+ //TO-DO: Assisted-Migration. Provisional code. Needs to be removed when MTV integration be finished
82
+ if (isAssistedMigration) {
83
+ await ClustersService.createClusterManifestsForAssistedMigration(cluster.id);
84
+ }
81
85
  } catch (e) {
82
86
  handleApiError(e, () =>
83
87
  addAlert({ title: 'Failed to create new cluster', message: getApiErrorMessage(e) }),
@@ -5,13 +5,21 @@ import { Formik, FormikConfig, useFormikContext } from 'formik';
5
5
  import {
6
6
  ClusterWizardStep,
7
7
  getFormikErrorFields,
8
+ OPERATOR_NAME_AUTHORINO,
8
9
  OPERATOR_NAME_CNV,
10
+ OPERATOR_NAME_LSO,
9
11
  OPERATOR_NAME_LVM,
10
12
  OPERATOR_NAME_MCE,
11
13
  OPERATOR_NAME_MTV,
14
+ OPERATOR_NAME_NMSTATE,
15
+ OPERATOR_NAME_NODE_FEATURE_DISCOVERY,
16
+ OPERATOR_NAME_NVIDIA_GPU,
12
17
  OPERATOR_NAME_ODF,
13
18
  OPERATOR_NAME_OPENSHIFT_AI,
14
19
  OPERATOR_NAME_OSC,
20
+ OPERATOR_NAME_PIPELINES,
21
+ OPERATOR_NAME_SERVERLESS,
22
+ OPERATOR_NAME_SERVICEMESH,
15
23
  OperatorsValues,
16
24
  selectMonitoredOperators,
17
25
  useAlerts,
@@ -40,6 +48,14 @@ export const getOperatorsInitialValues = (
40
48
  useMigrationToolkitforVirtualization: isOperatorEnabled([OPERATOR_NAME_MTV]),
41
49
  useOpenShiftAI: isOperatorEnabled([OPERATOR_NAME_OPENSHIFT_AI]),
42
50
  useOsc: isOperatorEnabled([OPERATOR_NAME_OSC]),
51
+ useNodeFeatureDiscovery: isOperatorEnabled([OPERATOR_NAME_NODE_FEATURE_DISCOVERY]),
52
+ useNmstate: isOperatorEnabled([OPERATOR_NAME_NMSTATE]),
53
+ useLso: isOperatorEnabled([OPERATOR_NAME_LSO]),
54
+ useServerless: isOperatorEnabled([OPERATOR_NAME_SERVERLESS]),
55
+ useAuthorino: isOperatorEnabled([OPERATOR_NAME_AUTHORINO]),
56
+ usePipelines: isOperatorEnabled([OPERATOR_NAME_PIPELINES]),
57
+ useServicemesh: isOperatorEnabled([OPERATOR_NAME_SERVICEMESH]),
58
+ useNvidiaGpu: isOperatorEnabled([OPERATOR_NAME_NVIDIA_GPU]),
43
59
  };
44
60
  };
45
61
 
@@ -80,7 +96,11 @@ const OperatorsForm = ({ cluster }: { cluster: Cluster }) => {
80
96
  />
81
97
  }
82
98
  >
83
- <OperatorsStep clusterId={cluster.id} openshiftVersion={cluster.openshiftVersion} />
99
+ <OperatorsStep
100
+ clusterId={cluster.id}
101
+ openshiftVersion={cluster.openshiftVersion}
102
+ monitoredOperators={cluster.monitoredOperators}
103
+ />
84
104
  </ClusterWizardStep>
85
105
  );
86
106
  };