@openshift-assisted/ui-lib 2.39.1 → 2.39.3
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 -8
- 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 -272
- 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 -78
- 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 +210 -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 -445
- 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 -86
- 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 -45
- 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 -105
- 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,35 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.hostsNetworkConfigurationDisabledReason = exports.isFeatureSupportedAndAvailable = exports.getNewFeatureDisabledReason = exports.clusterExistsReason = void 0;
|
|
4
4
|
const common_1 = require("../../../common");
|
|
5
5
|
const constants_1 = require("../clusterConfiguration/platformIntegration/constants");
|
|
6
|
-
const
|
|
7
|
-
const LVMS_OPERATOR_LABEL = 'Logical Volume Manager Storage';
|
|
8
|
-
const LVM_OPERATOR_LABEL = 'Logical Volume Manager';
|
|
9
|
-
const ODF_OPERATOR_LABEL = 'OpenShift Data Foundation';
|
|
10
|
-
const OPENSHIFT_AI_OPERATOR_LABEL = 'OpenShift AI';
|
|
11
|
-
const MTV_OPERATOR_LABEL = 'Migration Toolkit for Virtualization';
|
|
12
|
-
const OSC_OPERATOR_LABEL = 'OpenShift sandboxed containers';
|
|
6
|
+
const operatorSpecs_1 = require("../../../common/components/operators/operatorSpecs");
|
|
13
7
|
exports.clusterExistsReason = 'This option is not editable after the draft cluster is created';
|
|
14
|
-
const getCnvIncompatibleWithLvmReason = (operatorValues, lvmSupport) => {
|
|
15
|
-
const mustDisableCnv = !operatorValues.useContainerNativeVirtualization &&
|
|
16
|
-
operatorValues.useOdfLogicalVolumeManager &&
|
|
17
|
-
lvmSupport !== 'supported';
|
|
18
|
-
// In versions with none or limited support for LVM (< 4.12), it's not possible to select CNV + LVM
|
|
19
|
-
return mustDisableCnv
|
|
20
|
-
? `Currently, you cannot install ${CNV_OPERATOR_LABEL} operator at the same time as ${LVM_OPERATOR_LABEL} operator.`
|
|
21
|
-
: undefined;
|
|
22
|
-
};
|
|
23
|
-
exports.getCnvIncompatibleWithLvmReason = getCnvIncompatibleWithLvmReason;
|
|
24
|
-
const getLvmIncompatibleWithCnvReason = (operatorValues, lvmSupport) => {
|
|
25
|
-
const hasSelectedCnv = operatorValues.useContainerNativeVirtualization;
|
|
26
|
-
// In versions with none or limited support for LVM (< 4.12), it's not possible to select CNV + LVM
|
|
27
|
-
if (hasSelectedCnv && lvmSupport !== 'supported') {
|
|
28
|
-
return `Currently, you cannot install ${LVM_OPERATOR_LABEL} operator at the same time as ${CNV_OPERATOR_LABEL} operator.`;
|
|
29
|
-
}
|
|
30
|
-
return undefined;
|
|
31
|
-
};
|
|
32
|
-
exports.getLvmIncompatibleWithCnvReason = getLvmIncompatibleWithCnvReason;
|
|
33
8
|
const getSNODisabledReason = (cluster, isSupported) => {
|
|
34
9
|
if (cluster) {
|
|
35
10
|
return exports.clusterExistsReason;
|
|
@@ -47,34 +22,40 @@ const getArmDisabledReason = (cluster) => {
|
|
|
47
22
|
return 'arm64 is not supported in this OpenShift version';
|
|
48
23
|
};
|
|
49
24
|
const getOdfDisabledReason = (cluster, activeFeatureConfiguration, isSupported) => {
|
|
25
|
+
var _a;
|
|
50
26
|
if (!cluster) {
|
|
51
27
|
return undefined;
|
|
52
28
|
}
|
|
29
|
+
const opSpecs = (0, operatorSpecs_1.getOperatorSpecs)();
|
|
30
|
+
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_ODF]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
53
31
|
const isArm = (activeFeatureConfiguration === null || activeFeatureConfiguration === void 0 ? void 0 : activeFeatureConfiguration.underlyingCpuArchitecture) === common_1.CpuArchitecture.ARM;
|
|
54
32
|
if (isArm && (0, common_1.isSNO)(cluster)) {
|
|
55
|
-
return `${
|
|
33
|
+
return `${operatorTitle} is not available when using Single Node OpenShift or ARM CPU architecture.`;
|
|
56
34
|
}
|
|
57
35
|
if (isArm) {
|
|
58
|
-
return `${
|
|
36
|
+
return `${operatorTitle} is not available when ARM CPU architecture is selected.`;
|
|
59
37
|
}
|
|
60
38
|
if ((0, common_1.isSNO)(cluster)) {
|
|
61
|
-
return `${
|
|
39
|
+
return `${operatorTitle} is not available when deploying a Single Node OpenShift.`;
|
|
62
40
|
}
|
|
63
41
|
if (!isSupported) {
|
|
64
|
-
return `The installer cannot currently enable ${
|
|
42
|
+
return `The installer cannot currently enable ${operatorTitle} with the selected OpenShift version, but it can be enabled later through the OpenShift Console once the installation is complete.`;
|
|
65
43
|
}
|
|
66
44
|
return undefined;
|
|
67
45
|
};
|
|
68
46
|
const getCnvDisabledReason = (activeFeatureConfiguration, isSupported, platformType) => {
|
|
47
|
+
var _a;
|
|
69
48
|
if (!activeFeatureConfiguration) {
|
|
70
49
|
return undefined;
|
|
71
50
|
}
|
|
51
|
+
const opSpecs = (0, operatorSpecs_1.getOperatorSpecs)();
|
|
52
|
+
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_CNV]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
72
53
|
if (platformType === 'nutanix') {
|
|
73
|
-
return `${
|
|
54
|
+
return `${operatorTitle} is not available when Nutanix platform type is selected.`;
|
|
74
55
|
}
|
|
75
56
|
if (!isSupported) {
|
|
76
57
|
const cpuArchitectureLabel = common_1.architectureData[activeFeatureConfiguration.underlyingCpuArchitecture].label;
|
|
77
|
-
return `${
|
|
58
|
+
return `${operatorTitle} is not available when ${cpuArchitectureLabel
|
|
78
59
|
? cpuArchitectureLabel
|
|
79
60
|
: activeFeatureConfiguration.underlyingCpuArchitecture} CPU architecture is selected.`;
|
|
80
61
|
}
|
|
@@ -83,24 +64,29 @@ const getCnvDisabledReason = (activeFeatureConfiguration, isSupported, platformT
|
|
|
83
64
|
}
|
|
84
65
|
};
|
|
85
66
|
const getLvmDisabledReason = (activeFeatureConfiguration, isSupported, platformType) => {
|
|
67
|
+
var _a;
|
|
86
68
|
if (!activeFeatureConfiguration) {
|
|
87
69
|
return undefined;
|
|
88
70
|
}
|
|
89
|
-
const
|
|
71
|
+
const opSpecs = (0, operatorSpecs_1.getOperatorSpecs)();
|
|
72
|
+
const operatorTitle = (_a = opSpecs[common_1.OPERATOR_NAME_LVM]) === null || _a === void 0 ? void 0 : _a.title;
|
|
90
73
|
if (platformType === 'nutanix') {
|
|
91
|
-
return `${
|
|
74
|
+
return `${operatorTitle} is not supported when Nutanix platform type is selected.`;
|
|
92
75
|
}
|
|
93
76
|
if (!isSupported) {
|
|
94
|
-
return `${
|
|
77
|
+
return `${operatorTitle} is not supported in this OpenShift version.`;
|
|
95
78
|
}
|
|
96
79
|
return undefined;
|
|
97
80
|
};
|
|
98
81
|
const getOscDisabledReason = (cluster, activeFeatureConfiguration, isSupported) => {
|
|
82
|
+
var _a;
|
|
99
83
|
if (!cluster) {
|
|
100
84
|
return undefined;
|
|
101
85
|
}
|
|
86
|
+
const opSpecs = (0, operatorSpecs_1.getOperatorSpecs)();
|
|
87
|
+
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_OSC]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
102
88
|
if (!isSupported) {
|
|
103
|
-
return `${
|
|
89
|
+
return `${operatorTitle} is not supported in this OpenShift version.`;
|
|
104
90
|
}
|
|
105
91
|
return undefined;
|
|
106
92
|
};
|
|
@@ -240,58 +226,23 @@ const isFeatureSupportedAndAvailable = (supportLevel) => {
|
|
|
240
226
|
};
|
|
241
227
|
exports.isFeatureSupportedAndAvailable = isFeatureSupportedAndAvailable;
|
|
242
228
|
exports.hostsNetworkConfigurationDisabledReason = "DHCP only is the supported hosts' network configuration when external partner integrations is selected";
|
|
243
|
-
const getOdfIncompatibleWithLvmsReason = (operatorValues) => {
|
|
244
|
-
const mustDisableOdf = operatorValues.useOdfLogicalVolumeManager;
|
|
245
|
-
// In versions >= 4.15, it's not possible to select ODF + LVMS
|
|
246
|
-
return mustDisableOdf
|
|
247
|
-
? `Currently, you cannot install ${ODF_OPERATOR_LABEL} operator at the same time as ${LVMS_OPERATOR_LABEL} operator.`
|
|
248
|
-
: undefined;
|
|
249
|
-
};
|
|
250
|
-
exports.getOdfIncompatibleWithLvmsReason = getOdfIncompatibleWithLvmsReason;
|
|
251
|
-
const getOpenShiftAIIncompatibleWithLvmsReason = (operatorValues) => {
|
|
252
|
-
// Currently OpenShift AI requires ODF, and that is incompatible with LVM.
|
|
253
|
-
const mustDisableOpenShiftAI = operatorValues.useOdfLogicalVolumeManager;
|
|
254
|
-
return mustDisableOpenShiftAI
|
|
255
|
-
? `Currently the ${OPENSHIFT_AI_OPERATOR_LABEL} requires ${ODF_OPERATOR_LABEL}, and you cannot install that at the same time as ${LVMS_OPERATOR_LABEL} operator.`
|
|
256
|
-
: undefined;
|
|
257
|
-
};
|
|
258
|
-
exports.getOpenShiftAIIncompatibleWithLvmsReason = getOpenShiftAIIncompatibleWithLvmsReason;
|
|
259
|
-
const getLvmsIncompatibleWithOdfReason = (operatorValues) => {
|
|
260
|
-
const mustDisableLvms = operatorValues.useOpenShiftDataFoundation;
|
|
261
|
-
// In versions >= 4.15, it's not possible to select ODF + LVMS
|
|
262
|
-
return mustDisableLvms
|
|
263
|
-
? `Currently, you cannot install ${LVMS_OPERATOR_LABEL} operator at the same time as ${ODF_OPERATOR_LABEL} operator.`
|
|
264
|
-
: undefined;
|
|
265
|
-
};
|
|
266
|
-
exports.getLvmsIncompatibleWithOdfReason = getLvmsIncompatibleWithOdfReason;
|
|
267
|
-
const getLvmsIncompatibleWithOpenShiftAIReason = (operatorValues) => {
|
|
268
|
-
const mustDisableLvms = operatorValues.useOpenShiftAI;
|
|
269
|
-
return mustDisableLvms
|
|
270
|
-
? `Currently, you cannot install ${LVMS_OPERATOR_LABEL} operator at the same time as ${OPENSHIFT_AI_OPERATOR_LABEL} operator.`
|
|
271
|
-
: undefined;
|
|
272
|
-
};
|
|
273
|
-
exports.getLvmsIncompatibleWithOpenShiftAIReason = getLvmsIncompatibleWithOpenShiftAIReason;
|
|
274
229
|
const getOpenShiftAIDisabledReason = (cluster, activeFeatureConfiguration, isSupported) => {
|
|
230
|
+
var _a;
|
|
275
231
|
if (!cluster) {
|
|
276
232
|
return undefined;
|
|
277
233
|
}
|
|
234
|
+
const opSpecs = (0, operatorSpecs_1.getOperatorSpecs)();
|
|
235
|
+
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_OPENSHIFT_AI]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
278
236
|
const isArm = (activeFeatureConfiguration === null || activeFeatureConfiguration === void 0 ? void 0 : activeFeatureConfiguration.underlyingCpuArchitecture) === common_1.CpuArchitecture.ARM;
|
|
279
237
|
if (isArm) {
|
|
280
|
-
return `${
|
|
238
|
+
return `${operatorTitle} is not available when ARM CPU architecture is selected.`;
|
|
281
239
|
}
|
|
282
240
|
if ((0, common_1.isSNO)(cluster)) {
|
|
283
|
-
return `${
|
|
241
|
+
return `${operatorTitle} is not available when deploying a Single Node OpenShift.`;
|
|
284
242
|
}
|
|
285
243
|
if (!isSupported) {
|
|
286
|
-
return `The installer cannot currently enable ${
|
|
244
|
+
return `The installer cannot currently enable ${operatorTitle} with the selected OpenShift version, but it can be enabled later through the OpenShift Console once the installation is complete.`;
|
|
287
245
|
}
|
|
288
246
|
return undefined;
|
|
289
247
|
};
|
|
290
|
-
const getCnvDisabledWithMtvReason = (operatorValues) => {
|
|
291
|
-
const mustDisableCnv = !operatorValues.useMigrationToolkitforVirtualization;
|
|
292
|
-
return mustDisableCnv
|
|
293
|
-
? `Currently, you need to install ${CNV_OPERATOR_LABEL} operator at the same time as ${MTV_OPERATOR_LABEL} operator.`
|
|
294
|
-
: undefined;
|
|
295
|
-
};
|
|
296
|
-
exports.getCnvDisabledWithMtvReason = getCnvDisabledWithMtvReason;
|
|
297
248
|
//# sourceMappingURL=featureStateUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureStateUtils.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/featureStateUtils.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"featureStateUtils.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/featureStateUtils.ts"],"names":[],"mappings":";;;AAAA,4CAYyB;AAMzB,qFAA+F;AAC/F,sFAAsF;AAEzE,QAAA,mBAAmB,GAAG,gEAAgE,CAAC;AAEpG,MAAM,oBAAoB,GAAG,CAAC,OAA4B,EAAE,WAAoB,EAAE,EAAE;IAClF,IAAI,OAAO,EAAE;QACX,OAAO,2BAAmB,CAAC;KAC5B;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,kEAAkE,CAAC;KAC3E;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,OAA4B,EAAE,EAAE;IAC5D,IAAI,OAAO,EAAE;QACX,OAAO,2BAAmB,CAAC;KAC5B;;QAAM,OAAO,kDAAkD,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAC3B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AgB,GAAE,CAAC;IACnC,MAAM,aAAa,GAAG,CAAA,MAAA,OAAO,CAAC,mCAA0B,CAAC,0CAAE,KAAK,KAAI,EAAE,CAAC;IACvE,MAAM,KAAK,GAAG,CAAA,0BAA0B,aAA1B,0BAA0B,uBAA1B,0BAA0B,CAAE,yBAAyB,MAAK,wBAAe,CAAC,GAAG,CAAC;IAC5F,IAAI,KAAK,EAAE;QACT,OAAO,GAAG,aAAa,0DAA0D,CAAC;KACnF;IACD,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,EAAE;QAClB,OAAO,GAAG,aAAa,2DAA2D,CAAC;KACpF;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,yCAAyC,aAAa,oIAAoI,CAAC;KACnM;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isOciPlatformType = void 0;
|
|
4
4
|
const isOciPlatformType = (cluster) => {
|
|
5
5
|
var _a, _b, _c;
|
|
6
6
|
return (((_a = cluster.platform) === null || _a === void 0 ? void 0 : _a.type) === 'external' && ((_c = (_b = cluster.platform) === null || _b === void 0 ? void 0 : _b.external) === null || _c === void 0 ? void 0 : _c.platformName) === 'oci');
|
|
7
7
|
};
|
|
8
8
|
exports.isOciPlatformType = isOciPlatformType;
|
|
9
|
-
const getMajorMinorVersion = (version = '') => {
|
|
10
|
-
const match = /[0-9].[0-9][0-9]?/g.exec(version);
|
|
11
|
-
return (match === null || match === void 0 ? void 0 : match[0]) || '';
|
|
12
|
-
};
|
|
13
|
-
exports.getMajorMinorVersion = getMajorMinorVersion;
|
|
14
|
-
const isOCPVersionEqualsOrMajor = (openshiftVersion, ocpVersionToCompare) => {
|
|
15
|
-
return parseFloat((0, exports.getMajorMinorVersion)(openshiftVersion)) >= parseFloat(ocpVersionToCompare);
|
|
16
|
-
};
|
|
17
|
-
exports.isOCPVersionEqualsOrMajor = isOCPVersionEqualsOrMajor;
|
|
18
9
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../lib/ocm/components/utils.ts"],"names":[],"mappings":";;;AAEO,MAAM,iBAAiB,GAAG,CAAC,OAAgB,EAAW,EAAE;;IAC7D,OAAO,CACL,CAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAI,MAAK,UAAU,IAAI,CAAA,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,0CAAE,YAAY,MAAK,KAAK,CAC5F,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,iBAAiB,qBAI5B
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../lib/ocm/components/utils.ts"],"names":[],"mappings":";;;AAEO,MAAM,iBAAiB,GAAG,CAAC,OAAgB,EAAW,EAAE;;IAC7D,OAAO,CACL,CAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAI,MAAK,UAAU,IAAI,CAAA,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,0CAAE,YAAY,MAAK,KAAK,CAC5F,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,iBAAiB,qBAI5B"}
|
|
@@ -1,72 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const common_1 = require("../../common");
|
|
5
|
-
const utils_1 = require("../components/clusters/utils");
|
|
6
4
|
const OperatorsAPI_1 = tslib_1.__importDefault(require("../../common/api/assisted-service/OperatorsAPI"));
|
|
7
5
|
const OperatorsService = {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (enabled) {
|
|
13
|
-
enabledOlmOperatorsByName[name] = { name };
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
delete enabledOlmOperatorsByName[name];
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
setOperator(common_1.OPERATOR_NAME_LVM, values.useOdfLogicalVolumeManager);
|
|
20
|
-
setOperator(common_1.OPERATOR_NAME_CNV, values.useContainerNativeVirtualization);
|
|
21
|
-
setOperator(common_1.OPERATOR_NAME_ODF, values.useOpenShiftDataFoundation);
|
|
22
|
-
setOperator(common_1.OPERATOR_NAME_MCE, values.useMultiClusterEngine);
|
|
23
|
-
setOperator(common_1.OPERATOR_NAME_MTV, values.useMigrationToolkitforVirtualization);
|
|
24
|
-
setOperator(common_1.OPERATOR_NAME_OPENSHIFT_AI, values.useOpenShiftAI);
|
|
25
|
-
setOperator(common_1.OPERATOR_NAME_OSC, values.useOsc);
|
|
26
|
-
setOperator(common_1.OPERATOR_NAME_NODE_FEATURE_DISCOVERY, values.useNodeFeatureDiscovery);
|
|
27
|
-
setOperator(common_1.OPERATOR_NAME_NMSTATE, values.useNmstate);
|
|
28
|
-
setOperator(common_1.OPERATOR_NAME_LSO, values.useLso);
|
|
29
|
-
setOperator(common_1.OPERATOR_NAME_SERVERLESS, values.useServerless);
|
|
30
|
-
setOperator(common_1.OPERATOR_NAME_AUTHORINO, values.useAuthorino);
|
|
31
|
-
setOperator(common_1.OPERATOR_NAME_PIPELINES, values.usePipelines);
|
|
32
|
-
setOperator(common_1.OPERATOR_NAME_SERVICEMESH, values.useServicemesh);
|
|
33
|
-
setOperator(common_1.OPERATOR_NAME_NVIDIA_GPU, values.useNvidiaGpu);
|
|
34
|
-
setOperator(common_1.OPERATOR_NAME_AMD_GPU, values.useAmdGpu);
|
|
35
|
-
setOperator(common_1.OPERATOR_NAME_KMM, values.useKmm);
|
|
36
|
-
setOperator(common_1.OPERATOR_NAME_NODE_HEALTHCHECK, values.useNodeHealthcheck);
|
|
37
|
-
setOperator(common_1.OPERATOR_NAME_SELF_NODE_REMEDIATION, values.useNodeMaintenance);
|
|
38
|
-
setOperator(common_1.OPERATOR_NAME_FENCE_AGENTS_REMEDIATION, values.useFenceAgentsRemediation);
|
|
39
|
-
setOperator(common_1.OPERATOR_NAME_NODE_MAINTENANCE, values.useNodeMaintenance);
|
|
40
|
-
setOperator(common_1.OPERATOR_NAME_KUBE_DESCHEDULER, values.useKubeDescheduler);
|
|
41
|
-
return Object.values(enabledOlmOperatorsByName);
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Depending on the OpenShift version and certain selected operators, the
|
|
45
|
-
* Backend can activate some other operators.
|
|
46
|
-
* We need to synchronise them back to the form
|
|
47
|
-
*/
|
|
48
|
-
syncOperators(uiOperators, updatedOperators) {
|
|
49
|
-
const updates = {};
|
|
50
|
-
// LVM operator can be automatically selected depending on OpenShift version + other operators
|
|
51
|
-
const lvmPrevInactive = (uiOperators === null || uiOperators === void 0 ? void 0 : uiOperators.find((op) => op.name === common_1.OPERATOR_NAME_LVM)) === undefined;
|
|
52
|
-
const lvmNowActive = (updatedOperators === null || updatedOperators === void 0 ? void 0 : updatedOperators.find((op) => op.name === common_1.OPERATOR_NAME_LVM)) !== undefined;
|
|
53
|
-
if (lvmPrevInactive && lvmNowActive) {
|
|
54
|
-
updates.useOdfLogicalVolumeManager = true;
|
|
55
|
-
}
|
|
56
|
-
// ODF operator will be automatically selected when the OpenShift AI operator is selected:
|
|
57
|
-
const odfPrevInactive = (uiOperators === null || uiOperators === void 0 ? void 0 : uiOperators.find((op) => op.name === common_1.OPERATOR_NAME_ODF)) === undefined;
|
|
58
|
-
const odfNowActive = (updatedOperators === null || updatedOperators === void 0 ? void 0 : updatedOperators.find((op) => op.name === common_1.OPERATOR_NAME_ODF)) !== undefined;
|
|
59
|
-
if (odfPrevInactive && odfNowActive) {
|
|
60
|
-
updates.useOpenShiftDataFoundation = true;
|
|
61
|
-
}
|
|
62
|
-
return updates;
|
|
63
|
-
},
|
|
64
|
-
getSupportedOperators() {
|
|
65
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
const { data: operators } = yield OperatorsAPI_1.default.list();
|
|
67
|
-
return operators;
|
|
68
|
-
});
|
|
69
|
-
},
|
|
6
|
+
getSupportedOperators: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
7
|
+
const { data: operators } = yield OperatorsAPI_1.default.list();
|
|
8
|
+
return operators;
|
|
9
|
+
}),
|
|
70
10
|
};
|
|
71
11
|
exports.default = OperatorsService;
|
|
72
12
|
//# sourceMappingURL=OperatorsService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsService.js","sourceRoot":"","sources":["../../../../lib/ocm/services/OperatorsService.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"OperatorsService.js","sourceRoot":"","sources":["../../../../lib/ocm/services/OperatorsService.tsx"],"names":[],"mappings":";;;AAAA,0GAA0E;AAE1E,MAAM,gBAAgB,GAAG;IACvB,qBAAqB,EAAE,GAA4B,EAAE;QACnD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,sBAAY,CAAC,IAAI,EAAE,CAAC;QACtD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAA;CACF,CAAC;AACF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -9,9 +9,10 @@ import {
|
|
|
9
9
|
import { ClusterImageSetK8sResource } from '../../types';
|
|
10
10
|
import { featureSupportLevelsACM } from '../../config/constants';
|
|
11
11
|
import { getFeatureDisabledReason, isFeatureSupported } from './featureStateUtils';
|
|
12
|
-
import { getOCPVersions, getVersionFromReleaseImage
|
|
12
|
+
import { getOCPVersions, getVersionFromReleaseImage } from '../helpers';
|
|
13
13
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
14
14
|
import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
|
|
15
|
+
import { getMajorMinorVersion } from '../../../common/utils';
|
|
15
16
|
|
|
16
17
|
export type ACMFeatureSupportLevelProvider = PropsWithChildren<{
|
|
17
18
|
clusterImages: ClusterImageSetK8sResource[];
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
} from '../../types';
|
|
9
9
|
import { CpuArchitecture, OpenshiftVersionOptionType } from '../../../common';
|
|
10
10
|
import { OpenshiftVersion } from '@openshift-assisted/types/assisted-installer-service';
|
|
11
|
+
import { getMajorMinorVersion } from '../../../common/utils';
|
|
11
12
|
|
|
12
13
|
export const getVersionFromReleaseImage = (releaseImage = '') => {
|
|
13
14
|
const match = /.+:(.*)/gm.exec(releaseImage);
|
|
@@ -120,11 +121,6 @@ export const getSelectedVersion = (
|
|
|
120
121
|
export const getCurrentClusterVersion = (cv?: ClusterVersionK8sResource): string | undefined =>
|
|
121
122
|
cv?.status?.history?.[0]?.version || cv?.spec?.desiredUpdate?.version;
|
|
122
123
|
|
|
123
|
-
export const getMajorMinorVersion = (version = '') => {
|
|
124
|
-
const match = /[0-9].[0-9][0-9]?/g.exec(version);
|
|
125
|
-
return match?.[0] || '';
|
|
126
|
-
};
|
|
127
|
-
|
|
128
124
|
export const getNetworkType = (
|
|
129
125
|
ocpVersion: OpenshiftVersionOptionType | undefined,
|
|
130
126
|
): 'OVNKubernetes' | 'OpenShiftSDN' =>
|
|
@@ -50,10 +50,7 @@ const ClusterProgressItems = ({
|
|
|
50
50
|
</GridItem>
|
|
51
51
|
<RenderIf condition={olmOperators.length > 0}>
|
|
52
52
|
<GridItem span={3}>
|
|
53
|
-
<OperatorsProgressItem
|
|
54
|
-
operators={olmOperators}
|
|
55
|
-
openshiftVersion={cluster.openshiftVersion}
|
|
56
|
-
/>
|
|
53
|
+
<OperatorsProgressItem operators={olmOperators} />
|
|
57
54
|
</GridItem>
|
|
58
55
|
</RenderIf>
|
|
59
56
|
</Grid>
|
|
@@ -9,15 +9,13 @@ import { global_success_color_100 as okColor } from '@patternfly/react-tokens/di
|
|
|
9
9
|
import { pluralize } from 'humanize-plus';
|
|
10
10
|
import { TFunction } from 'i18next';
|
|
11
11
|
import {
|
|
12
|
-
Cluster,
|
|
13
12
|
MonitoredOperator,
|
|
14
13
|
MonitoredOperatorsList,
|
|
15
14
|
OperatorStatus,
|
|
16
15
|
} from '@openshift-assisted/types/assisted-installer-service';
|
|
17
|
-
import { operatorLabelsCim, OperatorName } from '../../config';
|
|
18
16
|
import ClusterProgressItem from './ClusterProgressItem';
|
|
19
17
|
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
20
|
-
import {
|
|
18
|
+
import { useOperatorSpecs } from '../operators/operatorSpecs';
|
|
21
19
|
|
|
22
20
|
import './OperatorsProgressItem.css';
|
|
23
21
|
|
|
@@ -74,16 +72,15 @@ export function getOperatorsIcon(status: OperatorStatus | 'pending') {
|
|
|
74
72
|
|
|
75
73
|
type OperatorListProps = {
|
|
76
74
|
operators: MonitoredOperatorsList;
|
|
77
|
-
openshiftVersion: Cluster['openshiftVersion'];
|
|
78
75
|
};
|
|
79
76
|
|
|
80
77
|
type OperatorsPopoverProps = OperatorListProps & {
|
|
81
78
|
children: React.ComponentProps<typeof Popover>['children'];
|
|
82
79
|
};
|
|
83
80
|
|
|
84
|
-
const OperatorsPopover = ({ operators,
|
|
81
|
+
const OperatorsPopover = ({ operators, children }: OperatorsPopoverProps) => {
|
|
85
82
|
const { t } = useTranslation();
|
|
86
|
-
const
|
|
83
|
+
const opSpecs = useOperatorSpecs();
|
|
87
84
|
|
|
88
85
|
return (
|
|
89
86
|
<Popover
|
|
@@ -95,10 +92,7 @@ const OperatorsPopover = ({ operators, openshiftVersion, children }: OperatorsPo
|
|
|
95
92
|
if (operator.status === 'available') {
|
|
96
93
|
status = 'installed';
|
|
97
94
|
}
|
|
98
|
-
const name =
|
|
99
|
-
operatorLabelsCim(t, openshiftVersion, featureSupportLevel)[
|
|
100
|
-
operator.name as OperatorName
|
|
101
|
-
] || operator.name;
|
|
95
|
+
const name = opSpecs[operator.name || '']?.title || operator.name;
|
|
102
96
|
return (
|
|
103
97
|
<ListItem key={operator.name} title={operator.statusInfo}>
|
|
104
98
|
{name} {status}
|
|
@@ -115,14 +109,14 @@ const OperatorsPopover = ({ operators, openshiftVersion, children }: OperatorsPo
|
|
|
115
109
|
);
|
|
116
110
|
};
|
|
117
111
|
|
|
118
|
-
const OperatorsProgressItem = ({ operators
|
|
112
|
+
const OperatorsProgressItem = ({ operators }: OperatorListProps) => {
|
|
119
113
|
const { t } = useTranslation();
|
|
120
114
|
const icon = getOperatorsIcon(getAggregatedStatus(operators));
|
|
121
115
|
const label = getOperatorsLabel(operators, t);
|
|
122
116
|
return (
|
|
123
117
|
<ClusterProgressItem icon={icon}>
|
|
124
118
|
<>
|
|
125
|
-
<OperatorsPopover operators={operators}
|
|
119
|
+
<OperatorsPopover operators={operators}>
|
|
126
120
|
<Button variant={ButtonVariant.link} isInline data-testid="operators-progress-item">
|
|
127
121
|
{t('ai:Operators')}
|
|
128
122
|
</Button>
|
|
@@ -69,9 +69,9 @@ export type ValidationActionLinkProps<S extends string> = {
|
|
|
69
69
|
wizardStepNames: { [key in S]: string };
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
export type ClusterOperatorProps =
|
|
73
|
-
|
|
74
|
-
}
|
|
72
|
+
export type ClusterOperatorProps = {
|
|
73
|
+
cluster: Cluster;
|
|
74
|
+
};
|
|
75
75
|
|
|
76
76
|
export type ItemDropdown = {
|
|
77
77
|
label: string;
|
|
@@ -31,6 +31,9 @@ export type NewFeatureSupportLevelData = {
|
|
|
31
31
|
getFeatureSupportLevel: GetFeatureSupportLevel;
|
|
32
32
|
isFeatureDisabled(featureId: FeatureId, supportLevelData?: NewFeatureSupportLevelMap): boolean;
|
|
33
33
|
getFeatureDisabledReason: GetFeatureDisabledReason;
|
|
34
|
-
isFeatureSupported
|
|
34
|
+
isFeatureSupported: (
|
|
35
|
+
featureId: FeatureId,
|
|
36
|
+
supportLevelData?: NewFeatureSupportLevelMap,
|
|
37
|
+
) => boolean;
|
|
35
38
|
activeFeatureConfiguration?: ActiveFeatureConfiguration;
|
|
36
39
|
};
|