@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
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
3
+ import { getFieldId, 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
+
8
+ const SERVERLESS_FIELD_NAME = 'useServerless';
9
+
10
+ const ServerlessLabel = ({
11
+ disabledReason,
12
+ supportLevel,
13
+ }: {
14
+ disabledReason?: string;
15
+ supportLevel?: SupportLevel;
16
+ }) => {
17
+ return (
18
+ <>
19
+ <Tooltip hidden={!disabledReason} content={disabledReason}>
20
+ <span>Install Serverless </span>
21
+ </Tooltip>
22
+ <PopoverIcon
23
+ id={SERVERLESS_FIELD_NAME}
24
+ component={'a'}
25
+ bodyContent={'No additional requirements needed'}
26
+ />
27
+ <NewFeatureSupportLevelBadge featureId="SERVERLESS" supportLevel={supportLevel} />
28
+ </>
29
+ );
30
+ };
31
+
32
+ const ServerlessHelperText = () => {
33
+ return (
34
+ <HelperText>
35
+ <HelperTextItem variant="indeterminate">
36
+ Deploy workflow applications based on the CNCF Serverless Workflow specification.{' '}
37
+ </HelperTextItem>
38
+ </HelperText>
39
+ );
40
+ };
41
+
42
+ const ServerlessCheckbox = ({
43
+ disabledReason,
44
+ supportLevel,
45
+ }: {
46
+ disabledReason?: string;
47
+ supportLevel?: SupportLevel | undefined;
48
+ }) => {
49
+ const fieldId = getFieldId(SERVERLESS_FIELD_NAME, 'input');
50
+
51
+ return (
52
+ <FormGroup isInline fieldId={fieldId}>
53
+ <OcmCheckboxField
54
+ name={SERVERLESS_FIELD_NAME}
55
+ label={<ServerlessLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
56
+ helperText={<ServerlessHelperText />}
57
+ isDisabled={!!disabledReason}
58
+ />
59
+ </FormGroup>
60
+ );
61
+ };
62
+
63
+ export default ServerlessCheckbox;
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
3
+ import { getFieldId, 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
+
8
+ const SERVICEMESH_FIELD_NAME = 'useServiceMesh';
9
+
10
+ const ServiceMeshLabel = ({
11
+ disabledReason,
12
+ supportLevel,
13
+ }: {
14
+ disabledReason?: string;
15
+ supportLevel?: SupportLevel;
16
+ }) => {
17
+ return (
18
+ <>
19
+ <Tooltip hidden={!disabledReason} content={disabledReason}>
20
+ <span>Install Service Mesh </span>
21
+ </Tooltip>
22
+ <PopoverIcon
23
+ id={SERVICEMESH_FIELD_NAME}
24
+ component={'a'}
25
+ bodyContent={'No additional requirements needed'}
26
+ />
27
+ <NewFeatureSupportLevelBadge featureId="SERVICEMESH" supportLevel={supportLevel} />
28
+ </>
29
+ );
30
+ };
31
+
32
+ const ServiceMeshHelperText = () => {
33
+ return (
34
+ <HelperText>
35
+ <HelperTextItem variant="indeterminate">
36
+ Platform that provides behavioral insight and operational control over a service mesh.{' '}
37
+ </HelperTextItem>
38
+ </HelperText>
39
+ );
40
+ };
41
+
42
+ const ServiceMeshCheckbox = ({
43
+ disabledReason,
44
+ supportLevel,
45
+ }: {
46
+ disabledReason?: string;
47
+ supportLevel?: SupportLevel | undefined;
48
+ }) => {
49
+ const fieldId = getFieldId(SERVICEMESH_FIELD_NAME, 'input');
50
+
51
+ return (
52
+ <FormGroup isInline fieldId={fieldId}>
53
+ <OcmCheckboxField
54
+ name={SERVICEMESH_FIELD_NAME}
55
+ label={<ServiceMeshLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
56
+ helperText={<ServiceMeshHelperText />}
57
+ isDisabled={!!disabledReason}
58
+ />
59
+ </FormGroup>
60
+ );
61
+ };
62
+
63
+ 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
+ };
@@ -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
  />
@@ -181,7 +181,7 @@ const AssistedInstallerDetailCard = ({
181
181
  {clusterDetailCard}
182
182
  </HistoryRouter>
183
183
  ) : (
184
- clusterDetailCard
184
+ <BrowserRouter>{clusterDetailCard}</BrowserRouter>
185
185
  )}
186
186
  </>
187
187
  );
@@ -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
  };