@openshift-assisted/ui-lib 2.39.0 → 2.39.2
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/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts +0 -1
- package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ClusterProgressItems.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/OperatorsProgressItem.d.ts +2 -3
- package/build/@types/common/components/clusterDetail/OperatorsProgressItem.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/types.d.ts +2 -4
- package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts.map +1 -1
- package/build/@types/common/components/operators/operatorSpecs.d.ts +22 -0
- package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -0
- package/build/@types/common/config/constants.d.ts +2 -15
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/selectors/clusterSelectors.d.ts +1 -2
- package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
- package/build/@types/common/types/clusters.d.ts +3 -23
- package/build/@types/common/types/clusters.d.ts.map +1 -1
- package/build/@types/common/utils.d.ts +1 -0
- package/build/@types/common/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterProgressItems.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOperatorProgressItem.d.ts +2 -3
- package/build/@types/ocm/components/clusterConfiguration/OcmOperatorProgressItem.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts +12 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/bundleSpecs.d.ts +13 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/bundleSpecs.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts +6 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewSummary.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ProgressBarAlerts.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts +1 -3
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts +9 -0
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts +9 -0
- package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts +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/clusters/utils.d.ts +1 -5
- package/build/@types/ocm/components/clusters/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts +1 -7
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/@types/ocm/components/utils.d.ts +0 -2
- package/build/@types/ocm/components/utils.d.ts.map +1 -1
- package/build/@types/ocm/services/OperatorsService.d.ts +1 -10
- package/build/@types/ocm/services/OperatorsService.d.ts.map +1 -1
- package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +2 -1
- package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +3 -7
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ClusterProgressItems.js +1 -1
- package/build/cjs/common/components/clusterDetail/ClusterProgressItems.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +7 -8
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/operators/operatorSpecs.js +215 -0
- package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -0
- package/build/cjs/common/config/constants.js +6 -87
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
- package/build/cjs/common/types/clusters.js.map +1 -1
- package/build/cjs/common/utils.js +6 -1
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +6 -8
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js +91 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js +39 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js +54 -19
- package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js +24 -18
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js +1 -6
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +3 -21
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +11 -38
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.css +6 -0
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js +123 -0
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +63 -0
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +25 -270
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +1 -4
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/clusters/utils.js +1 -14
- package/build/cjs/ocm/components/clusters/utils.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js +0 -1
- package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +29 -72
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/build/cjs/ocm/components/utils.js +1 -10
- package/build/cjs/ocm/components/utils.js.map +1 -1
- package/build/cjs/ocm/services/OperatorsService.js +4 -64
- package/build/cjs/ocm/services/OperatorsService.js.map +1 -1
- package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +2 -1
- package/lib/cim/components/helpers/versions.ts +1 -5
- package/lib/common/components/clusterDetail/ClusterProgressItems.tsx +1 -4
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +6 -12
- package/lib/common/components/clusterWizard/types.ts +3 -3
- package/lib/common/components/newFeatureSupportLevels/types.ts +4 -1
- package/lib/common/components/operators/operatorSpecs.tsx +343 -0
- package/lib/common/config/constants.ts +5 -99
- package/lib/common/selectors/clusterSelectors.ts +1 -2
- package/lib/common/types/clusters.ts +3 -23
- package/lib/common/utils.ts +5 -0
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/OcmClusterProgressItems.tsx +1 -4
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +5 -10
- package/lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx +209 -0
- package/lib/ocm/components/clusterConfiguration/operators/bundleSpecs.tsx +64 -0
- package/lib/ocm/components/clusterConfiguration/operators/utils.tsx +88 -31
- package/lib/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.tsx +46 -43
- package/lib/ocm/components/clusterConfiguration/review/ReviewSummary.tsx +1 -15
- package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +3 -36
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +0 -1
- package/lib/ocm/components/clusterWizard/Operators.tsx +17 -77
- package/lib/ocm/components/clusterWizard/OperatorsBundle.css +6 -0
- package/lib/ocm/components/clusterWizard/OperatorsBundle.tsx +245 -0
- package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +108 -0
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +38 -443
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +0 -4
- package/lib/ocm/components/clusters/utils.ts +0 -19
- package/lib/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.tsx +0 -1
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +33 -81
- package/lib/ocm/components/utils.ts +0 -12
- package/lib/ocm/services/OperatorsService.tsx +1 -100
- package/package.json +3 -3
- package/build/@types/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts +0 -11
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvHostRequirements.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvHostRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/KmmCheckbox.d.ts +0 -6
- package/build/@types/ocm/components/clusterConfiguration/operators/KmmCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts +0 -9
- package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts +0 -11
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmHostRequirements.d.ts +0 -7
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmHostRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts +0 -12
- package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MceRequirements.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/MceRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts +0 -10
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvRequirements.d.ts +0 -7
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts +0 -11
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts +0 -7
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts +0 -9
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts +0 -9
- package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.d.ts +0 -4
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.d.ts +0 -4
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.d.ts +0 -4
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts +0 -9
- package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts +0 -24
- package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.d.ts +0 -4
- package/build/@types/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.d.ts.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.js +0 -29
- package/build/cjs/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js +0 -33
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +0 -43
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js +0 -55
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.js +0 -34
- package/build/cjs/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/KmmCheckbox.js +0 -40
- package/build/cjs/ocm/components/clusterConfiguration/operators/KmmCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.js +0 -34
- package/build/cjs/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js +0 -33
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +0 -44
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmHostRequirements.js +0 -22
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmHostRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +0 -35
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceRequirements.js +0 -54
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js +0 -43
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvRequirements.js +0 -51
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js +0 -35
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js +0 -48
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js +0 -33
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.js +0 -34
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.js +0 -34
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js +0 -34
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +0 -43
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js +0 -35
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.js +0 -19
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.js +0 -32
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.js +0 -31
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js +0 -38
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js +0 -33
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.js +0 -34
- package/build/cjs/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js +0 -33
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js +0 -33
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js +0 -101
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js +0 -26
- package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js.map +0 -1
- package/lib/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.tsx +0 -64
- package/lib/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.tsx +0 -63
- package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +0 -103
- package/lib/ocm/components/clusterConfiguration/operators/CnvHostRequirements.tsx +0 -64
- package/lib/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.tsx +0 -71
- package/lib/ocm/components/clusterConfiguration/operators/KmmCheckbox.tsx +0 -69
- package/lib/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.tsx +0 -66
- package/lib/ocm/components/clusterConfiguration/operators/LsoCheckbox.tsx +0 -64
- package/lib/ocm/components/clusterConfiguration/operators/LvmCheckbox.tsx +0 -112
- package/lib/ocm/components/clusterConfiguration/operators/LvmHostRequirements.tsx +0 -38
- package/lib/ocm/components/clusterConfiguration/operators/MceCheckbox.tsx +0 -90
- package/lib/ocm/components/clusterConfiguration/operators/MceRequirements.tsx +0 -61
- package/lib/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.tsx +0 -94
- package/lib/ocm/components/clusterConfiguration/operators/MtvRequirements.tsx +0 -52
- package/lib/ocm/components/clusterConfiguration/operators/NmstateCheckbox.tsx +0 -82
- package/lib/ocm/components/clusterConfiguration/operators/NmstateRequirements.tsx +0 -53
- package/lib/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.tsx +0 -73
- package/lib/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.tsx +0 -66
- package/lib/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.tsx +0 -66
- package/lib/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.tsx +0 -70
- package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +0 -82
- package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.tsx +0 -67
- package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAIRequirements.tsx +0 -22
- package/lib/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.tsx +0 -36
- package/lib/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.tsx +0 -37
- package/lib/ocm/components/clusterConfiguration/operators/OscCheckbox.tsx +0 -73
- package/lib/ocm/components/clusterConfiguration/operators/PipelinesChekbox.tsx +0 -63
- package/lib/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.tsx +0 -68
- package/lib/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.tsx +0 -62
- package/lib/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.tsx +0 -64
- package/lib/ocm/components/clusterConfiguration/operators/SupportedOperators.tsx +0 -140
- package/lib/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.tsx +0 -35
|
@@ -1,468 +1,63 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
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';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Stack, StackItem } from '@patternfly/react-core';
|
|
3
|
+
import { Bundle } from '@openshift-assisted/types/assisted-installer-service';
|
|
19
4
|
import {
|
|
20
5
|
ClusterOperatorProps,
|
|
21
6
|
ClusterWizardStepHeader,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
PopoverIcon,
|
|
7
|
+
getApiErrorMessage,
|
|
8
|
+
handleApiError,
|
|
9
|
+
LoadingState,
|
|
10
|
+
useAlerts,
|
|
27
11
|
} from '../../../common';
|
|
28
|
-
import
|
|
29
|
-
import
|
|
12
|
+
import OperatorsBundle from './OperatorsBundle';
|
|
13
|
+
import OperatorsSelect from './OperatorsSelect';
|
|
30
14
|
import BundleService from '../../services/BundleService';
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
import { useFormikContext } from 'formik';
|
|
40
|
-
import NewFeatureSupportLevelBadge from '../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
41
|
-
import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
|
|
42
|
-
import {
|
|
43
|
-
getCnvDisabledWithMtvReason,
|
|
44
|
-
getCnvIncompatibleWithLvmReason,
|
|
45
|
-
getLvmIncompatibleWithCnvReason,
|
|
46
|
-
getLvmsIncompatibleWithOdfReason,
|
|
47
|
-
getOdfIncompatibleWithLvmsReason,
|
|
48
|
-
getOpenShiftAIIncompatibleWithLvmsReason,
|
|
49
|
-
} from '../featureSupportLevels/featureStateUtils';
|
|
50
|
-
import OpenshiftAINvidiaRequirements from '../clusterConfiguration/operators/OpenshiftAINvidiaRequirements';
|
|
51
|
-
import VirtualizationRequirements from '../clusterConfiguration/operators/VirtualizationRequirements';
|
|
52
|
-
import OpenshiftAIAmdRequirements from '../clusterConfiguration/operators/OpenshiftAIAmdRequirements';
|
|
53
|
-
|
|
54
|
-
const operatorsThatCanNotBeInstalledAlone = [
|
|
55
|
-
'nvdia-gpu',
|
|
56
|
-
'pipelines',
|
|
57
|
-
'servicemesh',
|
|
58
|
-
'serverless',
|
|
59
|
-
'authorino',
|
|
60
|
-
'lso',
|
|
61
|
-
'amd-gpu',
|
|
62
|
-
'nvidia-gpu',
|
|
63
|
-
'node-healthcheck',
|
|
64
|
-
'self-node-remediation',
|
|
65
|
-
'fence-agents-remediation',
|
|
66
|
-
'node-maintenance',
|
|
67
|
-
'kube-descheduler',
|
|
68
|
-
];
|
|
69
|
-
|
|
70
|
-
export const OperatorsStep = (props: ClusterOperatorProps) => {
|
|
71
|
-
const isSNO = useSelector(selectIsCurrentClusterSNO);
|
|
72
|
-
const isVersionEqualsOrMajorThan4_15 = isOCPVersionEqualsOrMajor(
|
|
73
|
-
props.openshiftVersion || '',
|
|
74
|
-
'4.15',
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
const [bundles, setBundles] = useState<Bundle[]>([]);
|
|
78
|
-
const [isExpanded, setIsExpanded] = useState(false);
|
|
79
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
80
|
-
const [supportedOperators, setSupportedOperators] = useState<string[]>([]);
|
|
81
|
-
const [searchTerm, setSearchTerm] = useState('');
|
|
82
|
-
const [selectedOperators, setSelectedOperators] = useState<string[]>([]);
|
|
83
|
-
const [selectedBundles, setSelectedBundles] = useState<{ [key: string]: boolean }>({});
|
|
84
|
-
const [bundleOperators, setBundleOperators] = useState<string[]>([]);
|
|
85
|
-
const { updateUISettings, uiSettings } = useClusterWizardContext();
|
|
86
|
-
const { values, setFieldValue } = useFormikContext<OperatorsValues>();
|
|
87
|
-
const featureSupportLevelData = useNewFeatureSupportLevel();
|
|
88
|
-
|
|
89
|
-
useEffect(() => {
|
|
15
|
+
import { useClusterPreflightRequirements } from '../../hooks';
|
|
16
|
+
|
|
17
|
+
export const OperatorsStep = ({ cluster }: ClusterOperatorProps) => {
|
|
18
|
+
const { addAlert } = useAlerts();
|
|
19
|
+
const [bundlesLoading, setBundlesLoading] = React.useState(true);
|
|
20
|
+
const [bundles, setBundles] = React.useState<Bundle[]>([]);
|
|
21
|
+
const { preflightRequirements, isLoading } = useClusterPreflightRequirements(cluster.id);
|
|
22
|
+
React.useEffect(() => {
|
|
90
23
|
const fetchBundles = async () => {
|
|
91
24
|
try {
|
|
92
25
|
const fetchedBundles = await BundleService.listBundles();
|
|
93
|
-
|
|
94
26
|
setBundles(fetchedBundles);
|
|
95
27
|
} catch (error) {
|
|
96
|
-
|
|
97
|
-
|
|
28
|
+
handleApiError(error, () =>
|
|
29
|
+
addAlert({
|
|
30
|
+
title: 'Failed to fetch operator bundles',
|
|
31
|
+
message: getApiErrorMessage(error),
|
|
32
|
+
}),
|
|
33
|
+
);
|
|
34
|
+
} finally {
|
|
35
|
+
setBundlesLoading(false);
|
|
98
36
|
}
|
|
99
37
|
};
|
|
100
38
|
|
|
101
39
|
void fetchBundles();
|
|
102
|
-
}, []);
|
|
103
|
-
|
|
104
|
-
useEffect(() => {
|
|
105
|
-
const fetchSupportedOperators = async () => {
|
|
106
|
-
try {
|
|
107
|
-
const fetchedOperators = await OperatorsService.getSupportedOperators();
|
|
108
|
-
const sortedOperators = fetchedOperators.sort((a, b) => a.localeCompare(b));
|
|
40
|
+
}, [addAlert]);
|
|
109
41
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
console.error('Error getting operators:', error);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
void fetchSupportedOperators();
|
|
118
|
-
}, []);
|
|
119
|
-
|
|
120
|
-
const filteredBundles = bundles.filter(
|
|
121
|
-
(bundle) =>
|
|
122
|
-
bundle.title?.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
|
123
|
-
bundle.description?.toLowerCase().includes(searchTerm.toLowerCase()),
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
useEffect(() => {
|
|
127
|
-
if (uiSettings?.bundlesSelected) {
|
|
128
|
-
setSelectedBundles(
|
|
129
|
-
uiSettings.bundlesSelected.reduce((acc, id) => ({ ...acc, [id]: true }), {}),
|
|
130
|
-
);
|
|
131
|
-
|
|
132
|
-
setBundleOperators(() => {
|
|
133
|
-
const newSelection: string[] = [];
|
|
134
|
-
bundles
|
|
135
|
-
.filter((bundle) => uiSettings?.bundlesSelected?.includes(bundle.id ?? ''))
|
|
136
|
-
.forEach((bundle) => {
|
|
137
|
-
bundle.operators?.forEach((op) => {
|
|
138
|
-
newSelection.push(op);
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
return newSelection;
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
}, [bundles, uiSettings?.bundlesSelected]);
|
|
146
|
-
|
|
147
|
-
useEffect(() => {
|
|
148
|
-
const newSelection: string[] = [];
|
|
149
|
-
|
|
150
|
-
props.monitoredOperators?.forEach((operator) => {
|
|
151
|
-
if (operator.operatorType === 'olm') {
|
|
152
|
-
newSelection.push(operator.name ?? '');
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
setSelectedOperators(newSelection);
|
|
157
|
-
}, [props.monitoredOperators]);
|
|
158
|
-
|
|
159
|
-
const handleBundleSelection = async (bundleId: string, operators: string[], checked: boolean) => {
|
|
160
|
-
let bundlesSelected = uiSettings?.bundlesSelected ? [...uiSettings.bundlesSelected] : [];
|
|
161
|
-
let newBundleOperators = [...bundleOperators];
|
|
162
|
-
|
|
163
|
-
if (checked) {
|
|
164
|
-
// Agregar el bundle si se marca
|
|
165
|
-
bundlesSelected.push(bundleId);
|
|
166
|
-
operators.forEach((op) => {
|
|
167
|
-
if (!newBundleOperators.includes(op)) {
|
|
168
|
-
newBundleOperators.push(op);
|
|
169
|
-
const fieldId = mapOperatorsToFieldIds[op]; // Obtener el ID del campo correspondiente
|
|
170
|
-
setFieldValue(fieldId, checked);
|
|
171
|
-
if (op === OPERATOR_NAME_CNV || op === OPERATOR_NAME_ODF) {
|
|
172
|
-
if (featureSupportLevelData.isFeatureSupported('LSO')) setFieldValue('useLso', checked);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
} else {
|
|
177
|
-
// Eliminar el bundle si se desmarca
|
|
178
|
-
bundlesSelected = bundlesSelected.filter((id) => id !== bundleId);
|
|
179
|
-
newBundleOperators = newBundleOperators.filter((op) => !operators.includes(op));
|
|
180
|
-
operators.forEach((op) => {
|
|
181
|
-
const fieldId = mapOperatorsToFieldIds[op]; // Obtener el ID del campo correspondiente
|
|
182
|
-
setFieldValue(fieldId, checked);
|
|
183
|
-
if (op === OPERATOR_NAME_CNV || op === OPERATOR_NAME_ODF) {
|
|
184
|
-
if (featureSupportLevelData.isFeatureSupported('LSO')) setFieldValue('useLso', checked);
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
await updateUISettings({ bundlesSelected });
|
|
190
|
-
|
|
191
|
-
setSelectedBundles((prev) => ({
|
|
192
|
-
...prev,
|
|
193
|
-
[bundleId]: checked,
|
|
194
|
-
}));
|
|
195
|
-
|
|
196
|
-
setBundleOperators(newBundleOperators);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
const getBundleLabel = (bundle: Bundle) => {
|
|
200
|
-
let requirements: React.ReactElement | null = null;
|
|
201
|
-
switch (bundle.id) {
|
|
202
|
-
case 'virtualization':
|
|
203
|
-
requirements = <VirtualizationRequirements />;
|
|
204
|
-
break;
|
|
205
|
-
case 'openshift-ai-nvidia':
|
|
206
|
-
requirements = <OpenshiftAINvidiaRequirements />;
|
|
207
|
-
break;
|
|
208
|
-
case 'openshift-ai-amd':
|
|
209
|
-
requirements = <OpenshiftAIAmdRequirements />;
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
return (
|
|
214
|
-
<>
|
|
215
|
-
<span>{bundle.title} </span>
|
|
216
|
-
{requirements && (
|
|
217
|
-
<PopoverIcon
|
|
218
|
-
component={'a'}
|
|
219
|
-
bodyContent={
|
|
220
|
-
<>
|
|
221
|
-
<span style={{ fontSize: '1.1em' }}>{'Requirements and dependencies'}</span>
|
|
222
|
-
{requirements}
|
|
223
|
-
</>
|
|
224
|
-
}
|
|
225
|
-
/>
|
|
226
|
-
)}
|
|
227
|
-
</>
|
|
228
|
-
);
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
const bundleHasOperatorsNotSupported = React.useCallback(
|
|
232
|
-
(operators: string[] | undefined) => {
|
|
233
|
-
return (
|
|
234
|
-
operators?.some(
|
|
235
|
-
(operator) =>
|
|
236
|
-
!featureSupportLevelData.isFeatureSupported(mapOperatorIdToFeatureId[operator]),
|
|
237
|
-
) ?? false
|
|
238
|
-
);
|
|
239
|
-
},
|
|
240
|
-
[featureSupportLevelData],
|
|
241
|
-
);
|
|
242
|
-
|
|
243
|
-
const getDisabledReasonForOperator = React.useCallback(
|
|
244
|
-
(operatorKey: string, values: OperatorsValues) => {
|
|
245
|
-
let disabledReason = featureSupportLevelData.getFeatureDisabledReason(
|
|
246
|
-
mapOperatorIdToFeatureId[operatorKey],
|
|
247
|
-
);
|
|
248
|
-
if (operatorKey === 'cnv') {
|
|
249
|
-
if (!disabledReason) {
|
|
250
|
-
const lvmSupport = featureSupportLevelData.getFeatureSupportLevel('LVM');
|
|
251
|
-
disabledReason = getCnvIncompatibleWithLvmReason(values, lvmSupport);
|
|
252
|
-
}
|
|
253
|
-
if (!disabledReason) {
|
|
254
|
-
if (featureSupportLevelData.isFeatureSupported('MTV')) {
|
|
255
|
-
disabledReason = getCnvDisabledWithMtvReason(values);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
if (operatorKey === 'lvm') {
|
|
260
|
-
if (!disabledReason) {
|
|
261
|
-
const lvmSupport = featureSupportLevelData.getFeatureSupportLevel('LVM');
|
|
262
|
-
disabledReason = getLvmIncompatibleWithCnvReason(values, lvmSupport);
|
|
263
|
-
if (!disabledReason) {
|
|
264
|
-
disabledReason = getLvmsIncompatibleWithOdfReason(values);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
if (operatorKey === 'odf') {
|
|
269
|
-
if (!disabledReason) {
|
|
270
|
-
disabledReason = getOdfIncompatibleWithLvmsReason(values);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
if (operatorKey === 'openshift-ai') {
|
|
274
|
-
if (!disabledReason) {
|
|
275
|
-
disabledReason = getOpenShiftAIIncompatibleWithLvmsReason(values);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
return disabledReason;
|
|
279
|
-
},
|
|
280
|
-
[featureSupportLevelData],
|
|
281
|
-
);
|
|
282
|
-
|
|
283
|
-
const bundleHasOperatorsNotCompatibles = React.useCallback(
|
|
284
|
-
(operators: string[] | undefined, values: OperatorsValues, isSelected: boolean) => {
|
|
285
|
-
if (!isSelected) {
|
|
286
|
-
return (
|
|
287
|
-
operators?.some((operatorKey) => {
|
|
288
|
-
const disabledReason = getDisabledReasonForOperator(operatorKey, values);
|
|
289
|
-
return disabledReason !== undefined;
|
|
290
|
-
}) ?? false
|
|
291
|
-
);
|
|
292
|
-
} else return false;
|
|
293
|
-
},
|
|
294
|
-
[getDisabledReasonForOperator],
|
|
295
|
-
);
|
|
42
|
+
if (isLoading || bundlesLoading) {
|
|
43
|
+
return <LoadingState />;
|
|
44
|
+
}
|
|
296
45
|
|
|
297
46
|
return (
|
|
298
47
|
<Stack hasGutter data-testid={'operators-page'}>
|
|
299
48
|
<StackItem>
|
|
300
|
-
<
|
|
301
|
-
justifyContent={{ default: 'justifyContentSpaceBetween' }}
|
|
302
|
-
alignItems={{ default: 'alignItemsCenter' }}
|
|
303
|
-
>
|
|
304
|
-
<FlexItem>
|
|
305
|
-
<ClusterWizardStepHeader>Operators</ClusterWizardStepHeader>
|
|
306
|
-
</FlexItem>
|
|
307
|
-
<FlexItem hidden>
|
|
308
|
-
<TextInput
|
|
309
|
-
value={searchTerm}
|
|
310
|
-
type="text"
|
|
311
|
-
onChange={(_event, value) => setSearchTerm(value)}
|
|
312
|
-
placeholder="Search"
|
|
313
|
-
style={{ width: '400px' }}
|
|
314
|
-
/>
|
|
315
|
-
</FlexItem>
|
|
316
|
-
</Flex>
|
|
49
|
+
<ClusterWizardStepHeader>Operators</ClusterWizardStepHeader>
|
|
317
50
|
</StackItem>
|
|
318
51
|
<StackItem>
|
|
319
|
-
<
|
|
320
|
-
|
|
321
|
-
|
|
52
|
+
<OperatorsBundle bundles={bundles} preflightRequirements={preflightRequirements} />
|
|
53
|
+
</StackItem>
|
|
54
|
+
<StackItem>
|
|
55
|
+
<OperatorsSelect
|
|
56
|
+
bundles={bundles}
|
|
57
|
+
cluster={cluster}
|
|
58
|
+
preflightRequirements={preflightRequirements}
|
|
59
|
+
/>
|
|
322
60
|
</StackItem>
|
|
323
|
-
{/* Mostrar bundles como tarjetas */}
|
|
324
|
-
<Gallery hasGutter minWidths={{ default: '350px' }} maxWidths={{ default: '2fr' }}>
|
|
325
|
-
{filteredBundles.map((bundle) => {
|
|
326
|
-
const isSnoAndBlockedBundle =
|
|
327
|
-
isSNO && (bundle.id === 'openshift-ai-nvidia' || bundle.id === 'openshift-ai-amd');
|
|
328
|
-
const hasUnsupportedOperators = bundleHasOperatorsNotSupported(bundle.operators);
|
|
329
|
-
const hasIncompatibleOperators = bundleHasOperatorsNotCompatibles(
|
|
330
|
-
bundle.operators,
|
|
331
|
-
values,
|
|
332
|
-
bundle.id ? selectedBundles[bundle.id] : false,
|
|
333
|
-
);
|
|
334
|
-
const hasAnotherAIBundleSelected =
|
|
335
|
-
(bundle.id === 'openshift-ai-nvidia' && selectedBundles['openshift-ai-amd']) ||
|
|
336
|
-
(bundle.id === 'openshift-ai-amd' && selectedBundles['openshift-ai-nvidia']);
|
|
337
|
-
|
|
338
|
-
const tooltipContent = hasUnsupportedOperators
|
|
339
|
-
? 'Some operators in this bundle are not supported with the current configuration.'
|
|
340
|
-
: isSnoAndBlockedBundle
|
|
341
|
-
? 'This bundle is not available when deploying a Single Node OpenShift.'
|
|
342
|
-
: hasIncompatibleOperators
|
|
343
|
-
? 'Some operators in this bundle can not be installed with some single operators selected.'
|
|
344
|
-
: hasAnotherAIBundleSelected
|
|
345
|
-
? 'This bundle cannot be selected because you already have another OpenShift AI bundle selected.'
|
|
346
|
-
: '';
|
|
347
|
-
return (
|
|
348
|
-
<GalleryItem key={bundle.id}>
|
|
349
|
-
<Tooltip
|
|
350
|
-
content={tooltipContent}
|
|
351
|
-
hidden={
|
|
352
|
-
!hasUnsupportedOperators &&
|
|
353
|
-
!hasIncompatibleOperators &&
|
|
354
|
-
!isSnoAndBlockedBundle &&
|
|
355
|
-
!hasAnotherAIBundleSelected
|
|
356
|
-
}
|
|
357
|
-
>
|
|
358
|
-
<Card
|
|
359
|
-
style={
|
|
360
|
-
bundle.id && selectedBundles[bundle.id]
|
|
361
|
-
? { border: '1px solid #004080', height: '200px' }
|
|
362
|
-
: { height: '200px' }
|
|
363
|
-
}
|
|
364
|
-
isDisabled={
|
|
365
|
-
hasUnsupportedOperators ||
|
|
366
|
-
hasIncompatibleOperators ||
|
|
367
|
-
isSnoAndBlockedBundle ||
|
|
368
|
-
hasAnotherAIBundleSelected
|
|
369
|
-
}
|
|
370
|
-
>
|
|
371
|
-
<CardTitle
|
|
372
|
-
style={{
|
|
373
|
-
display: 'flex',
|
|
374
|
-
justifyContent: 'space-between',
|
|
375
|
-
alignItems: 'center',
|
|
376
|
-
}}
|
|
377
|
-
>
|
|
378
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
|
|
379
|
-
{getBundleLabel(bundle)}
|
|
380
|
-
</div>
|
|
381
|
-
<Checkbox
|
|
382
|
-
id={`bundle-${bundle.id || ''}`}
|
|
383
|
-
isChecked={bundle.id ? selectedBundles[bundle.id] : false}
|
|
384
|
-
onChange={(_event, checked) =>
|
|
385
|
-
void handleBundleSelection(bundle.id || '', bundle.operators || [], checked)
|
|
386
|
-
}
|
|
387
|
-
isDisabled={
|
|
388
|
-
hasUnsupportedOperators ||
|
|
389
|
-
hasIncompatibleOperators ||
|
|
390
|
-
isSnoAndBlockedBundle ||
|
|
391
|
-
hasAnotherAIBundleSelected
|
|
392
|
-
}
|
|
393
|
-
/>
|
|
394
|
-
</CardTitle>
|
|
395
|
-
<CardBody
|
|
396
|
-
style={{
|
|
397
|
-
display: 'flex',
|
|
398
|
-
flexDirection: 'column',
|
|
399
|
-
justifyContent: 'space-between',
|
|
400
|
-
height: '100%',
|
|
401
|
-
}}
|
|
402
|
-
>
|
|
403
|
-
<div>{bundle.description}</div>
|
|
404
|
-
|
|
405
|
-
{/* Badge aligned to the bottom-left */}
|
|
406
|
-
<div style={{ marginTop: '10px', alignSelf: 'flex-end', height: '25px' }}>
|
|
407
|
-
{(bundle.id === 'openshift-ai-nvidia' ||
|
|
408
|
-
bundle.id === 'openshift-ai-amd') && (
|
|
409
|
-
<NewFeatureSupportLevelBadge
|
|
410
|
-
featureId="OPENSHIFT_AI"
|
|
411
|
-
supportLevel="dev-preview"
|
|
412
|
-
/>
|
|
413
|
-
)}
|
|
414
|
-
</div>
|
|
415
|
-
</CardBody>
|
|
416
|
-
</Card>
|
|
417
|
-
</Tooltip>
|
|
418
|
-
</GalleryItem>
|
|
419
|
-
);
|
|
420
|
-
})}
|
|
421
|
-
</Gallery>
|
|
422
|
-
<ExpandableSection
|
|
423
|
-
toggleText={`Single Operators (${supportedOperators.length} | ${
|
|
424
|
-
props.monitoredOperators
|
|
425
|
-
? numberOfEnabledOperators(props.monitoredOperators)
|
|
426
|
-
: selectedOperators.length
|
|
427
|
-
} selected)`}
|
|
428
|
-
onToggle={() => setIsExpanded(!isExpanded)}
|
|
429
|
-
isExpanded={isExpanded}
|
|
430
|
-
data-testid="single-operators-section"
|
|
431
|
-
>
|
|
432
|
-
<Stack hasGutter data-testid={'operators-form'}>
|
|
433
|
-
{supportedOperators.map((operatorKey) => {
|
|
434
|
-
const isOperatorSelected = bundleOperators.includes(operatorKey);
|
|
435
|
-
const isOperatorNotAllowedAlone =
|
|
436
|
-
operatorsThatCanNotBeInstalledAlone.includes(operatorKey);
|
|
437
|
-
const disabledReason = getDisabledReasonForOperator(operatorKey, values);
|
|
438
|
-
const featureSupportLevel = featureSupportLevelData.getFeatureSupportLevel(
|
|
439
|
-
mapOperatorIdToFeatureId[operatorKey],
|
|
440
|
-
);
|
|
441
|
-
const OperatorComponent = operatorComponentMap[operatorKey];
|
|
442
|
-
if (!OperatorComponent) {
|
|
443
|
-
return null;
|
|
444
|
-
}
|
|
445
|
-
return (
|
|
446
|
-
<StackItem key={operatorKey}>
|
|
447
|
-
<OperatorComponent
|
|
448
|
-
clusterId={props.clusterId}
|
|
449
|
-
openshiftVersion={props.openshiftVersion}
|
|
450
|
-
isVersionEqualsOrMajorThan4_15={isVersionEqualsOrMajorThan4_15}
|
|
451
|
-
isSNO={isSNO}
|
|
452
|
-
disabledReason={
|
|
453
|
-
isOperatorSelected
|
|
454
|
-
? 'This operator is part of a bundle and cannot be deselected.'
|
|
455
|
-
: isOperatorNotAllowedAlone
|
|
456
|
-
? 'This operator cannot be installed as a standalone'
|
|
457
|
-
: disabledReason
|
|
458
|
-
}
|
|
459
|
-
supportLevel={featureSupportLevel}
|
|
460
|
-
/>
|
|
461
|
-
</StackItem>
|
|
462
|
-
);
|
|
463
|
-
})}
|
|
464
|
-
</Stack>
|
|
465
|
-
</ExpandableSection>
|
|
466
61
|
</Stack>
|
|
467
62
|
);
|
|
468
63
|
};
|
|
@@ -73,14 +73,10 @@ export const getClusterWizardFirstStep = (
|
|
|
73
73
|
staticIpInfo: StaticIpInfo | undefined,
|
|
74
74
|
state?: ClusterWizardFlowStateType,
|
|
75
75
|
hosts?: Host[] | undefined,
|
|
76
|
-
isSingleClusterFeatureEnabled?: boolean,
|
|
77
76
|
customManifestsStepNeedsToBeFilled?: boolean,
|
|
78
77
|
): ClusterWizardStepsType => {
|
|
79
78
|
// Just for the first time when the cluster is created
|
|
80
79
|
if (locationState === ClusterWizardFlowStateNew && !staticIpInfo) {
|
|
81
|
-
if (isSingleClusterFeatureEnabled) {
|
|
82
|
-
return 'host-discovery';
|
|
83
|
-
}
|
|
84
80
|
return 'operators';
|
|
85
81
|
}
|
|
86
82
|
|
|
@@ -3,9 +3,7 @@ import {
|
|
|
3
3
|
LogsState,
|
|
4
4
|
MonitoredOperator,
|
|
5
5
|
MonitoredOperatorsList,
|
|
6
|
-
OperatorCreateParams,
|
|
7
6
|
} from '@openshift-assisted/types/assisted-installer-service';
|
|
8
|
-
import { selectOlmOperators } from '../../../common';
|
|
9
7
|
|
|
10
8
|
// The Day2 cluster
|
|
11
9
|
export const isAddHostsCluster = (cluster: Cluster) => cluster.kind === 'AddHostsCluster';
|
|
@@ -24,23 +22,6 @@ export const calculateCollectedLogsCount = (cluster: Cluster) => {
|
|
|
24
22
|
export const getBuiltInOperators = (monitoredOperators: MonitoredOperatorsList = []) =>
|
|
25
23
|
monitoredOperators.filter((operator: MonitoredOperator) => operator.operatorType === 'builtin');
|
|
26
24
|
|
|
27
|
-
export const getOlmOperatorCreateParams = (cluster?: Cluster): OperatorCreateParams[] =>
|
|
28
|
-
selectOlmOperators(cluster).map((operator) => ({
|
|
29
|
-
name: operator.name,
|
|
30
|
-
properties: operator.properties,
|
|
31
|
-
}));
|
|
32
|
-
|
|
33
|
-
export const getOlmOperatorCreateParamsByName = (cluster?: Cluster) =>
|
|
34
|
-
getOlmOperatorCreateParams(cluster).reduce(
|
|
35
|
-
(result: { [key: string]: OperatorCreateParams }, operator) => {
|
|
36
|
-
if (operator.name) {
|
|
37
|
-
result[operator.name] = operator;
|
|
38
|
-
}
|
|
39
|
-
return result;
|
|
40
|
-
},
|
|
41
|
-
{},
|
|
42
|
-
);
|
|
43
|
-
|
|
44
25
|
export const canAbortInstallation = (cluster: Cluster) => {
|
|
45
26
|
const allowedClusterStates: Cluster['status'][] = [
|
|
46
27
|
'preparing-for-installation',
|
|
@@ -90,7 +90,6 @@ export const NewFeatureSupportLevelProvider: React.FC<NewSupportLevelProviderPro
|
|
|
90
90
|
featureId: FeatureId,
|
|
91
91
|
supportLevelDataNew?: NewFeatureSupportLevelMap,
|
|
92
92
|
): SupportLevel | undefined => {
|
|
93
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
94
93
|
if (supportLevelDataNew) {
|
|
95
94
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
96
95
|
// @ts-ignore
|