@openshift-assisted/ui-lib 2.37.3 → 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.
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
- package/build/@types/cim/components/common/constants.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
- package/build/@types/cim/types/k8s/infra-env-k8s-resource.d.ts +1 -0
- package/build/@types/cim/types/k8s/infra-env-k8s-resource.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/BundleAPI.d.ts +8 -0
- package/build/@types/common/api/assisted-service/BundleAPI.d.ts.map +1 -0
- package/build/@types/common/api/assisted-service/OperatorsAPI.d.ts +6 -0
- package/build/@types/common/api/assisted-service/OperatorsAPI.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +7 -0
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/types.d.ts +3 -1
- package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +5 -0
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +1 -1
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/selectors/clusterSelectors.d.ts +1 -0
- package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
- package/build/@types/common/types/clusters.d.ts +8 -0
- package/build/@types/common/types/clusters.d.ts.map +1 -1
- package/build/@types/common/types/ui-settings.d.ts +1 -0
- package/build/@types/common/types/ui-settings.d.ts.map +1 -1
- package/build/@types/ocm/components/SentryErrorMonitorContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts +10 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts +7 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts +5 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts +5 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts +5 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts +24 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/@types/ocm/config/constants.d.ts +2 -0
- package/build/@types/ocm/config/constants.d.ts.map +1 -1
- package/build/@types/ocm/sentry.d.ts +2 -2
- package/build/@types/ocm/sentry.d.ts.map +1 -1
- package/build/@types/ocm/services/BundleService.d.ts +6 -0
- package/build/@types/ocm/services/BundleService.d.ts.map +1 -0
- package/build/@types/ocm/services/ClustersService.d.ts +1 -0
- package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
- package/build/@types/ocm/services/OperatorsService.d.ts +1 -0
- package/build/@types/ocm/services/OperatorsService.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +1 -0
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +4 -5
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js +1 -1
- package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js.map +1 -1
- package/build/cjs/cim/components/common/constants.js +1 -1
- package/build/cjs/cim/components/common/constants.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/modals/AddHostModal.js +4 -5
- package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
- package/build/cjs/common/api/assisted-service/BundleAPI.js +16 -0
- package/build/cjs/common/api/assisted-service/BundleAPI.js.map +1 -0
- package/build/cjs/common/api/assisted-service/OperatorsAPI.js +13 -0
- package/build/cjs/common/api/assisted-service/OperatorsAPI.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +41 -0
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +4 -5
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.js +5 -5
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +2 -2
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/hosts/AITableMemo.js +16 -13
- package/build/cjs/common/components/hosts/AITableMemo.js.map +1 -1
- package/build/cjs/common/components/hosts/HostRowDetail.js +35 -1
- package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +16 -10
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/config/constants.js +11 -1
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +1 -1
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/selectors/clusterSelectors.js +7 -1
- package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
- package/build/cjs/common/types/clusters.js.map +1 -1
- package/build/cjs/ocm/components/SentryErrorMonitorContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +10 -9
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +3 -20
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +5 -21
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +6 -7
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js +8 -13
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js +30 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js +48 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +7 -18
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js +4 -17
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js +3 -12
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js +73 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +4 -0
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +9 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +209 -22
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +40 -0
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/build/cjs/ocm/config/constants.js +155 -1
- package/build/cjs/ocm/config/constants.js.map +1 -1
- package/build/cjs/ocm/sentry.js +1 -1
- package/build/cjs/ocm/sentry.js.map +1 -1
- package/build/cjs/ocm/services/BundleService.js +20 -0
- package/build/cjs/ocm/services/BundleService.js.map +1 -0
- package/build/cjs/ocm/services/ClustersService.js +26 -0
- package/build/cjs/ocm/services/ClustersService.js.map +1 -1
- package/build/cjs/ocm/services/OperatorsService.js +16 -8
- package/build/cjs/ocm/services/OperatorsService.js.map +1 -1
- package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +4 -6
- package/lib/cim/components/InfraEnv/OpenshiftVersionDropdown.tsx +1 -1
- package/lib/cim/components/common/constants.ts +1 -2
- package/lib/cim/components/helpers/toAssisted.ts +1 -0
- package/lib/cim/components/modals/AddHostModal.tsx +4 -5
- package/lib/cim/types/k8s/infra-env-k8s-resource.ts +1 -0
- package/lib/common/api/assisted-service/BundleAPI.ts +18 -0
- package/lib/common/api/assisted-service/OperatorsAPI.ts +13 -0
- package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +93 -0
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +10 -12
- package/lib/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.tsx +9 -9
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +1 -1
- package/lib/common/components/clusterWizard/types.ts +4 -2
- package/lib/common/components/hosts/AITableMemo.tsx +1 -1
- package/lib/common/components/hosts/HostRowDetail.tsx +71 -1
- package/lib/common/components/storage/DisksTable.tsx +25 -18
- package/lib/common/config/constants.ts +10 -0
- package/lib/common/config/docs_links.ts +1 -1
- package/lib/common/selectors/clusterSelectors.ts +8 -0
- package/lib/common/types/clusters.ts +8 -0
- package/lib/common/types/ui-settings.ts +1 -0
- package/lib/ocm/components/SentryErrorMonitorContextProvider.tsx +1 -2
- package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +13 -12
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +7 -31
- package/lib/ocm/components/clusterConfiguration/operators/LsoCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/LvmCheckbox.tsx +8 -26
- package/lib/ocm/components/clusterConfiguration/operators/MceCheckbox.tsx +10 -3
- package/lib/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.tsx +23 -12
- package/lib/ocm/components/clusterConfiguration/operators/NmstateCheckbox.tsx +76 -0
- package/lib/ocm/components/clusterConfiguration/operators/NmstateRequirements.tsx +53 -0
- package/lib/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.tsx +66 -0
- package/lib/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +20 -25
- package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.tsx +11 -24
- package/lib/ocm/components/clusterConfiguration/operators/OscCheckbox.tsx +10 -25
- package/lib/ocm/components/clusterConfiguration/operators/PipelinesChekbox.tsx +64 -0
- package/lib/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/SupportedOperators.tsx +105 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -0
- package/lib/ocm/components/clusterWizard/Operators.tsx +21 -1
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +374 -38
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +1 -1
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +40 -0
- package/lib/ocm/config/constants.ts +156 -0
- package/lib/ocm/sentry.ts +2 -1
- package/lib/ocm/services/BundleService.ts +14 -0
- package/lib/ocm/services/ClustersService.ts +28 -0
- package/lib/ocm/services/OperatorsService.tsx +21 -10
- package/package.json +3 -3
|
@@ -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
|
|
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
|
|
99
|
+
<OperatorsStep
|
|
100
|
+
clusterId={cluster.id}
|
|
101
|
+
openshiftVersion={cluster.openshiftVersion}
|
|
102
|
+
monitoredOperators={cluster.monitoredOperators}
|
|
103
|
+
/>
|
|
84
104
|
</ClusterWizardStep>
|
|
85
105
|
);
|
|
86
106
|
};
|
|
@@ -1,16 +1,59 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import {
|
|
4
|
+
Card,
|
|
5
|
+
CardBody,
|
|
6
|
+
CardTitle,
|
|
7
|
+
Checkbox,
|
|
8
|
+
ExpandableSection,
|
|
9
|
+
Flex,
|
|
10
|
+
FlexItem,
|
|
11
|
+
Gallery,
|
|
12
|
+
GalleryItem,
|
|
13
|
+
Stack,
|
|
14
|
+
StackItem,
|
|
15
|
+
TextInput,
|
|
16
|
+
Title,
|
|
17
|
+
Tooltip,
|
|
18
|
+
} from '@patternfly/react-core';
|
|
19
|
+
import {
|
|
20
|
+
ClusterOperatorProps,
|
|
21
|
+
ClusterWizardStepHeader,
|
|
22
|
+
numberOfEnabledOperators,
|
|
23
|
+
OperatorsValues,
|
|
24
|
+
PopoverIcon,
|
|
25
|
+
} from '../../../common';
|
|
9
26
|
import { selectIsCurrentClusterSNO } from '../../store/slices/current-cluster/selectors';
|
|
10
27
|
import { isOCPVersionEqualsOrMajor } from '../utils';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
28
|
+
import BundleService from '../../services/BundleService';
|
|
29
|
+
import { Bundle } from '@openshift-assisted/types/./assisted-installer-service';
|
|
30
|
+
import { OperatorsService } from '../../services';
|
|
31
|
+
import {
|
|
32
|
+
mapOperatorIdToFeatureId,
|
|
33
|
+
mapOperatorsToFieldIds,
|
|
34
|
+
operatorComponentMap,
|
|
35
|
+
} from '../clusterConfiguration/operators/SupportedOperators';
|
|
36
|
+
import { useClusterWizardContext } from './ClusterWizardContext';
|
|
37
|
+
import { useFormikContext } from 'formik';
|
|
38
|
+
import NewFeatureSupportLevelBadge from '../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
39
|
+
import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
|
|
40
|
+
import {
|
|
41
|
+
getCnvDisabledWithMtvReason,
|
|
42
|
+
getCnvIncompatibleWithLvmReason,
|
|
43
|
+
getLvmIncompatibleWithCnvReason,
|
|
44
|
+
getLvmsIncompatibleWithOdfReason,
|
|
45
|
+
getOdfIncompatibleWithLvmsReason,
|
|
46
|
+
getOpenShiftAIIncompatibleWithLvmsReason,
|
|
47
|
+
} from '../featureSupportLevels/featureStateUtils';
|
|
48
|
+
|
|
49
|
+
const operatorsThatCanNotBeInstalledAlone = [
|
|
50
|
+
'nvdia-gpu',
|
|
51
|
+
'pipelines',
|
|
52
|
+
'servicemesh',
|
|
53
|
+
'serverless',
|
|
54
|
+
'authorino',
|
|
55
|
+
'lso',
|
|
56
|
+
];
|
|
14
57
|
|
|
15
58
|
export const OperatorsStep = (props: ClusterOperatorProps) => {
|
|
16
59
|
const isSNO = useSelector(selectIsCurrentClusterSNO);
|
|
@@ -18,39 +61,332 @@ export const OperatorsStep = (props: ClusterOperatorProps) => {
|
|
|
18
61
|
props.openshiftVersion || '',
|
|
19
62
|
'4.15',
|
|
20
63
|
);
|
|
64
|
+
|
|
65
|
+
const [bundles, setBundles] = useState<Bundle[]>([]);
|
|
66
|
+
const [isExpanded, setIsExpanded] = useState(true);
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
68
|
+
const [supportedOperators, setSupportedOperators] = useState<string[]>([]);
|
|
69
|
+
const [searchTerm, setSearchTerm] = useState('');
|
|
70
|
+
const [selectedOperators, setSelectedOperators] = useState<string[]>([]);
|
|
71
|
+
const [selectedBundles, setSelectedBundles] = useState<{ [key: string]: boolean }>({});
|
|
72
|
+
const [bundleOperators, setBundleOperators] = useState<string[]>([]);
|
|
73
|
+
const { updateUISettings, uiSettings } = useClusterWizardContext();
|
|
74
|
+
const { values, setFieldValue } = useFormikContext<OperatorsValues>();
|
|
75
|
+
const featureSupportLevelData = useNewFeatureSupportLevel();
|
|
76
|
+
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
const fetchBundles = async () => {
|
|
79
|
+
try {
|
|
80
|
+
const fetchedBundles = await BundleService.listBundles();
|
|
81
|
+
|
|
82
|
+
setBundles(fetchedBundles);
|
|
83
|
+
} catch (error) {
|
|
84
|
+
// eslint-disable-next-line no-console
|
|
85
|
+
console.error('Error al obtener los bundles:', error);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
void fetchBundles();
|
|
90
|
+
}, []);
|
|
91
|
+
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
const fetchSupportedOperators = async () => {
|
|
94
|
+
try {
|
|
95
|
+
const fetchedOperators = await OperatorsService.getSupportedOperators();
|
|
96
|
+
const sortedOperators = fetchedOperators.sort((a, b) => a.localeCompare(b));
|
|
97
|
+
|
|
98
|
+
setSupportedOperators(sortedOperators);
|
|
99
|
+
} catch (error) {
|
|
100
|
+
// eslint-disable-next-line no-console
|
|
101
|
+
console.error('Error al obtener los operators:', error);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
void fetchSupportedOperators();
|
|
106
|
+
}, []);
|
|
107
|
+
|
|
108
|
+
const filteredBundles = bundles.filter(
|
|
109
|
+
(bundle) =>
|
|
110
|
+
bundle.title?.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
|
111
|
+
bundle.description?.toLowerCase().includes(searchTerm.toLowerCase()),
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
if (uiSettings?.bundlesSelected) {
|
|
116
|
+
setSelectedBundles(
|
|
117
|
+
uiSettings.bundlesSelected.reduce((acc, id) => ({ ...acc, [id]: true }), {}),
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
setBundleOperators(() => {
|
|
121
|
+
const newSelection: string[] = [];
|
|
122
|
+
bundles
|
|
123
|
+
.filter((bundle) => uiSettings?.bundlesSelected?.includes(bundle.id ?? ''))
|
|
124
|
+
.forEach((bundle) => {
|
|
125
|
+
bundle.operators?.forEach((op) => {
|
|
126
|
+
newSelection.push(op);
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
return newSelection;
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}, [bundles, uiSettings?.bundlesSelected]);
|
|
134
|
+
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
const newSelection: string[] = [];
|
|
137
|
+
|
|
138
|
+
props.monitoredOperators?.forEach((operator) => {
|
|
139
|
+
if (operator.operatorType === 'olm') {
|
|
140
|
+
newSelection.push(operator.name ?? '');
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
setSelectedOperators(newSelection);
|
|
145
|
+
}, [props.monitoredOperators]);
|
|
146
|
+
|
|
147
|
+
const handleBundleSelection = async (bundleId: string, operators: string[], checked: boolean) => {
|
|
148
|
+
let bundlesSelected = uiSettings?.bundlesSelected ? [...uiSettings.bundlesSelected] : [];
|
|
149
|
+
let newBundleOperators = [...bundleOperators];
|
|
150
|
+
|
|
151
|
+
if (checked) {
|
|
152
|
+
// Agregar el bundle si se marca
|
|
153
|
+
bundlesSelected.push(bundleId);
|
|
154
|
+
operators.forEach((op) => {
|
|
155
|
+
if (!newBundleOperators.includes(op)) {
|
|
156
|
+
newBundleOperators.push(op);
|
|
157
|
+
const fieldId = mapOperatorsToFieldIds[op]; // Obtener el ID del campo correspondiente
|
|
158
|
+
setFieldValue(fieldId, checked);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
} else {
|
|
162
|
+
// Eliminar el bundle si se desmarca
|
|
163
|
+
bundlesSelected = bundlesSelected.filter((id) => id !== bundleId);
|
|
164
|
+
newBundleOperators = newBundleOperators.filter((op) => !operators.includes(op));
|
|
165
|
+
operators.forEach((op) => {
|
|
166
|
+
const fieldId = mapOperatorsToFieldIds[op]; // Obtener el ID del campo correspondiente
|
|
167
|
+
setFieldValue(fieldId, checked);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
await updateUISettings({ bundlesSelected });
|
|
172
|
+
|
|
173
|
+
setSelectedBundles((prev) => ({
|
|
174
|
+
...prev,
|
|
175
|
+
[bundleId]: checked,
|
|
176
|
+
}));
|
|
177
|
+
|
|
178
|
+
setBundleOperators(newBundleOperators);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const getBundleLabel = (title: string | undefined, operators: string[] | undefined) => {
|
|
182
|
+
return (
|
|
183
|
+
<>
|
|
184
|
+
<span>{title} </span>
|
|
185
|
+
<PopoverIcon
|
|
186
|
+
component={'a'}
|
|
187
|
+
bodyContent={
|
|
188
|
+
<>
|
|
189
|
+
<h3>{'Bundle operators'}</h3>
|
|
190
|
+
{operators && operators.length > 0 ? (
|
|
191
|
+
<ul>
|
|
192
|
+
{operators.map((operator, index) => (
|
|
193
|
+
<li key={index}>{operator}</li>
|
|
194
|
+
))}
|
|
195
|
+
</ul>
|
|
196
|
+
) : (
|
|
197
|
+
<p>No operators available</p>
|
|
198
|
+
)}
|
|
199
|
+
</>
|
|
200
|
+
}
|
|
201
|
+
/>
|
|
202
|
+
</>
|
|
203
|
+
);
|
|
204
|
+
};
|
|
205
|
+
const bundleHasOperatorsNotSupported = (operators: string[] | undefined) => {
|
|
206
|
+
return (
|
|
207
|
+
operators?.some(
|
|
208
|
+
(operator) =>
|
|
209
|
+
!featureSupportLevelData.isFeatureSupported(mapOperatorIdToFeatureId[operator]),
|
|
210
|
+
) ?? false
|
|
211
|
+
);
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
const getDisabledReasonForOperator = (operatorKey: string, values: OperatorsValues) => {
|
|
215
|
+
let disabledReason = featureSupportLevelData.getFeatureDisabledReason(
|
|
216
|
+
mapOperatorIdToFeatureId[operatorKey],
|
|
217
|
+
);
|
|
218
|
+
if (operatorKey === 'cnv') {
|
|
219
|
+
if (!disabledReason) {
|
|
220
|
+
const lvmSupport = featureSupportLevelData.getFeatureSupportLevel('LVM');
|
|
221
|
+
disabledReason = getCnvIncompatibleWithLvmReason(values, lvmSupport);
|
|
222
|
+
}
|
|
223
|
+
if (!disabledReason) {
|
|
224
|
+
disabledReason = getCnvDisabledWithMtvReason(values);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
if (operatorKey === 'lvm') {
|
|
228
|
+
if (!disabledReason) {
|
|
229
|
+
const lvmSupport = featureSupportLevelData.getFeatureSupportLevel('LVM');
|
|
230
|
+
disabledReason = getLvmIncompatibleWithCnvReason(values, lvmSupport);
|
|
231
|
+
if (!disabledReason) {
|
|
232
|
+
disabledReason = getLvmsIncompatibleWithOdfReason(values);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
if (operatorKey === 'odf') {
|
|
237
|
+
if (!disabledReason) {
|
|
238
|
+
disabledReason = getOdfIncompatibleWithLvmsReason(values);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if (operatorKey === 'openshift-ai') {
|
|
242
|
+
if (!disabledReason) {
|
|
243
|
+
disabledReason = getOpenShiftAIIncompatibleWithLvmsReason(values);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return disabledReason;
|
|
247
|
+
};
|
|
248
|
+
|
|
21
249
|
return (
|
|
22
|
-
<Stack hasGutter data-testid={'operators-
|
|
23
|
-
<StackItem>
|
|
24
|
-
<ClusterWizardStepHeader>Operators</ClusterWizardStepHeader>
|
|
25
|
-
</StackItem>
|
|
26
|
-
<StackItem>
|
|
27
|
-
<CnvCheckbox {...props} isVersionEqualsOrMajorThan4_15={isVersionEqualsOrMajorThan4_15} />
|
|
28
|
-
</StackItem>
|
|
250
|
+
<Stack hasGutter data-testid={'operators-page'}>
|
|
29
251
|
<StackItem>
|
|
30
|
-
<
|
|
252
|
+
<Flex
|
|
253
|
+
justifyContent={{ default: 'justifyContentSpaceBetween' }}
|
|
254
|
+
alignItems={{ default: 'alignItemsCenter' }}
|
|
255
|
+
>
|
|
256
|
+
<FlexItem>
|
|
257
|
+
<ClusterWizardStepHeader>Operators</ClusterWizardStepHeader>
|
|
258
|
+
</FlexItem>
|
|
259
|
+
<FlexItem hidden>
|
|
260
|
+
<TextInput
|
|
261
|
+
value={searchTerm}
|
|
262
|
+
type="text"
|
|
263
|
+
onChange={(_event, value) => setSearchTerm(value)}
|
|
264
|
+
placeholder="Search"
|
|
265
|
+
style={{ width: '400px' }}
|
|
266
|
+
/>
|
|
267
|
+
</FlexItem>
|
|
268
|
+
</Flex>
|
|
31
269
|
</StackItem>
|
|
32
270
|
<StackItem>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
openshiftVersion={props.openshiftVersion}
|
|
37
|
-
/>
|
|
271
|
+
<Title headingLevel="h2" size="lg">
|
|
272
|
+
Bundles
|
|
273
|
+
</Title>
|
|
38
274
|
</StackItem>
|
|
39
|
-
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
275
|
+
{/* Mostrar bundles como tarjetas */}
|
|
276
|
+
<Gallery hasGutter minWidths={{ default: '350px' }} maxWidths={{ default: '2fr' }}>
|
|
277
|
+
{filteredBundles.map((bundle) => (
|
|
278
|
+
<GalleryItem key={bundle.id}>
|
|
279
|
+
<Tooltip
|
|
280
|
+
content={
|
|
281
|
+
bundleHasOperatorsNotSupported(bundle.operators)
|
|
282
|
+
? 'Some operators in this bundle are not supported with the current configuration.'
|
|
283
|
+
: isSNO && bundle.id === 'openshift-ai-nvidia'
|
|
284
|
+
? 'This bundle is not available when deploying a Single Node OpenShift.'
|
|
285
|
+
: ''
|
|
286
|
+
}
|
|
287
|
+
hidden={
|
|
288
|
+
!bundleHasOperatorsNotSupported(bundle.operators) &&
|
|
289
|
+
!(isSNO && bundle.id === 'openshift-ai-nvidia')
|
|
290
|
+
}
|
|
291
|
+
>
|
|
292
|
+
<Card
|
|
293
|
+
style={
|
|
294
|
+
bundle.id && selectedBundles[bundle.id]
|
|
295
|
+
? { border: '1px solid #004080', height: '200px' }
|
|
296
|
+
: { height: '200px' }
|
|
297
|
+
}
|
|
298
|
+
isDisabled={
|
|
299
|
+
bundleHasOperatorsNotSupported(bundle.operators) ||
|
|
300
|
+
(isSNO && bundle.id === 'openshift-ai-nvidia')
|
|
301
|
+
}
|
|
302
|
+
>
|
|
303
|
+
<CardTitle
|
|
304
|
+
style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}
|
|
305
|
+
>
|
|
306
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
|
|
307
|
+
{getBundleLabel(bundle.title, bundle.operators)}
|
|
308
|
+
</div>
|
|
309
|
+
<Checkbox
|
|
310
|
+
id={`bundle-${bundle.id || ''}`}
|
|
311
|
+
isChecked={bundle.id ? selectedBundles[bundle.id] : false}
|
|
312
|
+
onChange={(_event, checked) =>
|
|
313
|
+
void handleBundleSelection(bundle.id || '', bundle.operators || [], checked)
|
|
314
|
+
}
|
|
315
|
+
isDisabled={
|
|
316
|
+
bundleHasOperatorsNotSupported(bundle.operators) ||
|
|
317
|
+
(isSNO && bundle.id === 'openshift-ai-nvidia')
|
|
318
|
+
}
|
|
319
|
+
/>
|
|
320
|
+
</CardTitle>
|
|
321
|
+
<CardBody
|
|
322
|
+
style={{
|
|
323
|
+
display: 'flex',
|
|
324
|
+
flexDirection: 'column',
|
|
325
|
+
justifyContent: 'space-between',
|
|
326
|
+
height: '100%',
|
|
327
|
+
}}
|
|
328
|
+
>
|
|
329
|
+
<div>{bundle.description}</div>
|
|
330
|
+
|
|
331
|
+
{/* Badge aligned to the bottom-left */}
|
|
332
|
+
|
|
333
|
+
<div style={{ marginTop: '10px', alignSelf: 'flex-end', height: '25px' }}>
|
|
334
|
+
{bundle.id === 'openshift-ai-nvidia' && (
|
|
335
|
+
<NewFeatureSupportLevelBadge
|
|
336
|
+
featureId="OPENSHIFT_AI"
|
|
337
|
+
supportLevel="dev-preview"
|
|
338
|
+
/>
|
|
339
|
+
)}
|
|
340
|
+
</div>
|
|
341
|
+
</CardBody>
|
|
342
|
+
</Card>
|
|
343
|
+
</Tooltip>
|
|
344
|
+
</GalleryItem>
|
|
345
|
+
))}
|
|
346
|
+
</Gallery>
|
|
347
|
+
<ExpandableSection
|
|
348
|
+
toggleText={`Single Operators (${supportedOperators.length} | ${
|
|
349
|
+
props.monitoredOperators
|
|
350
|
+
? numberOfEnabledOperators(props.monitoredOperators)
|
|
351
|
+
: selectedOperators.length
|
|
352
|
+
} selected)`}
|
|
353
|
+
onToggle={() => setIsExpanded(!isExpanded)}
|
|
354
|
+
isExpanded={isExpanded}
|
|
355
|
+
>
|
|
356
|
+
<Stack hasGutter data-testid={'operators-form'}>
|
|
357
|
+
{supportedOperators.map((operatorKey) => {
|
|
358
|
+
const isOperatorSelected = bundleOperators.includes(operatorKey);
|
|
359
|
+
const isOperatorPartOfAIBundle =
|
|
360
|
+
operatorsThatCanNotBeInstalledAlone.includes(operatorKey);
|
|
361
|
+
const disabledReason = getDisabledReasonForOperator(operatorKey, values);
|
|
362
|
+
const featureSupportLevel = featureSupportLevelData.getFeatureSupportLevel(
|
|
363
|
+
mapOperatorIdToFeatureId[operatorKey],
|
|
364
|
+
);
|
|
365
|
+
const OperatorComponent = operatorComponentMap[operatorKey];
|
|
366
|
+
if (!OperatorComponent) {
|
|
367
|
+
return null;
|
|
368
|
+
}
|
|
369
|
+
return (
|
|
370
|
+
<StackItem key={operatorKey}>
|
|
371
|
+
<OperatorComponent
|
|
372
|
+
clusterId={props.clusterId}
|
|
373
|
+
openshiftVersion={props.openshiftVersion}
|
|
374
|
+
isVersionEqualsOrMajorThan4_15={isVersionEqualsOrMajorThan4_15}
|
|
375
|
+
isSNO={isSNO}
|
|
376
|
+
disabledReason={
|
|
377
|
+
isOperatorSelected
|
|
378
|
+
? 'This operator is part of a bundle and cannot be deselected.'
|
|
379
|
+
: isOperatorPartOfAIBundle
|
|
380
|
+
? 'This operator cannot be installed as a standalone'
|
|
381
|
+
: disabledReason
|
|
382
|
+
}
|
|
383
|
+
supportLevel={featureSupportLevel}
|
|
384
|
+
/>
|
|
385
|
+
</StackItem>
|
|
386
|
+
);
|
|
387
|
+
})}
|
|
388
|
+
</Stack>
|
|
389
|
+
</ExpandableSection>
|
|
54
390
|
</Stack>
|
|
55
391
|
);
|
|
56
392
|
};
|
|
@@ -191,7 +191,7 @@ const hostDiscoveryStepValidationsMap: WizardStepValidationMap = {
|
|
|
191
191
|
'osc-requirements-satisfied',
|
|
192
192
|
],
|
|
193
193
|
},
|
|
194
|
-
softValidationIds: ['no-skip-installation-disk', 'no-skip-missing-disk'],
|
|
194
|
+
softValidationIds: ['no-skip-installation-disk', 'no-skip-missing-disk', 'compatible-agent'],
|
|
195
195
|
};
|
|
196
196
|
|
|
197
197
|
const storageStepValidationsMap: WizardStepValidationMap = {
|
|
@@ -249,6 +249,46 @@ export const getNewFeatureDisabledReason = (
|
|
|
249
249
|
return 'Migration Toolkit for Virtualization is not supported in this OpenShift version';
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
+
case 'AUTHORINO': {
|
|
253
|
+
if (!isSupported) {
|
|
254
|
+
return `Authorino is not available with the selected CPU architecture.`;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
case 'LSO': {
|
|
258
|
+
if (!isSupported) {
|
|
259
|
+
return `Lso is not available with the selected CPU architecture.`;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
case 'NMSTATE': {
|
|
263
|
+
if (!isSupported) {
|
|
264
|
+
return `Nmstate is not available with the selected CPU architecture.`;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
case 'NODE_FEATURE_DISCOVERY': {
|
|
268
|
+
if (!isSupported) {
|
|
269
|
+
return `Node Feature Discovery is not available with the selected CPU architecture.`;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
case 'NVIDIA_GPU': {
|
|
273
|
+
if (!isSupported) {
|
|
274
|
+
return `NVIDIA GPU is not available with the selected CPU architecture.`;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
case 'PIPELINES': {
|
|
278
|
+
if (!isSupported) {
|
|
279
|
+
return `Pipelines is not available with the selected CPU architecture.`;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
case 'SERVERLESS': {
|
|
283
|
+
if (!isSupported) {
|
|
284
|
+
return `Serverless is not available with the selected CPU architecture.`;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
case 'SERVICEMESH': {
|
|
288
|
+
if (!isSupported) {
|
|
289
|
+
return `Service mesh is not available with the selected CPU architecture.`;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
252
292
|
default: {
|
|
253
293
|
return undefined;
|
|
254
294
|
}
|