@openshift-assisted/ui-lib 2.39.1 → 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 -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 +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 -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,105 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
4
|
-
import {
|
|
5
|
-
ClusterOperatorProps,
|
|
6
|
-
CNV_LINK,
|
|
7
|
-
getFieldId,
|
|
8
|
-
OperatorsValues,
|
|
9
|
-
PopoverIcon,
|
|
10
|
-
} from '../../../../common';
|
|
11
|
-
import CnvHostRequirements from './CnvHostRequirements';
|
|
12
|
-
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
13
|
-
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
14
|
-
import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
|
|
15
|
-
import { useFormikContext } from 'formik';
|
|
16
|
-
import { useNewFeatureSupportLevel } from '../../../../common/components/newFeatureSupportLevels';
|
|
17
|
-
|
|
18
|
-
const CNV_FIELD_NAME = 'useContainerNativeVirtualization';
|
|
19
|
-
|
|
20
|
-
type CnvLabelProps = {
|
|
21
|
-
clusterId: string;
|
|
22
|
-
disabledReason?: string;
|
|
23
|
-
isVersionEqualsOrMajorThan4_15: boolean;
|
|
24
|
-
supportLevel?: SupportLevel;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const CnvLabel = ({
|
|
28
|
-
clusterId,
|
|
29
|
-
disabledReason,
|
|
30
|
-
isVersionEqualsOrMajorThan4_15,
|
|
31
|
-
supportLevel,
|
|
32
|
-
}: CnvLabelProps) => {
|
|
33
|
-
return (
|
|
34
|
-
<>
|
|
35
|
-
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
36
|
-
<span>OpenShift Virtualization </span>
|
|
37
|
-
</Tooltip>
|
|
38
|
-
<PopoverIcon
|
|
39
|
-
component={'a'}
|
|
40
|
-
headerContent="Additional requirements"
|
|
41
|
-
bodyContent={
|
|
42
|
-
<CnvHostRequirements
|
|
43
|
-
clusterId={clusterId}
|
|
44
|
-
isVersionEqualsOrMajorThan4_15={isVersionEqualsOrMajorThan4_15}
|
|
45
|
-
/>
|
|
46
|
-
}
|
|
47
|
-
/>
|
|
48
|
-
<NewFeatureSupportLevelBadge featureId="CNV" supportLevel={supportLevel} />
|
|
49
|
-
</>
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const CnvHelperText = () => {
|
|
54
|
-
return (
|
|
55
|
-
<HelperText>
|
|
56
|
-
<HelperTextItem variant="indeterminate">
|
|
57
|
-
Run virtual machines alongside containers on one platform.{' '}
|
|
58
|
-
<a href={CNV_LINK} target="_blank" rel="noopener noreferrer">
|
|
59
|
-
{'Learn more'} <ExternalLinkAltIcon />
|
|
60
|
-
</a>
|
|
61
|
-
</HelperTextItem>
|
|
62
|
-
</HelperText>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const CnvCheckbox = ({
|
|
67
|
-
clusterId,
|
|
68
|
-
isVersionEqualsOrMajorThan4_15,
|
|
69
|
-
disabledReason,
|
|
70
|
-
supportLevel,
|
|
71
|
-
}: {
|
|
72
|
-
clusterId: ClusterOperatorProps['clusterId'];
|
|
73
|
-
isVersionEqualsOrMajorThan4_15: boolean;
|
|
74
|
-
disabledReason?: string;
|
|
75
|
-
supportLevel?: SupportLevel | undefined;
|
|
76
|
-
}) => {
|
|
77
|
-
const featureSupportLevelData = useNewFeatureSupportLevel();
|
|
78
|
-
const { setFieldValue } = useFormikContext<OperatorsValues>();
|
|
79
|
-
const fieldId = getFieldId(CNV_FIELD_NAME, 'input');
|
|
80
|
-
const selectOperatorsNeeded = (checked: boolean) => {
|
|
81
|
-
if (featureSupportLevelData.isFeatureSupported('LSO')) setFieldValue('useLso', checked);
|
|
82
|
-
if (featureSupportLevelData.isFeatureSupported('MTV'))
|
|
83
|
-
setFieldValue('useMigrationToolkitforVirtualization', checked);
|
|
84
|
-
};
|
|
85
|
-
return (
|
|
86
|
-
<FormGroup isInline fieldId={fieldId}>
|
|
87
|
-
<OcmCheckboxField
|
|
88
|
-
name={CNV_FIELD_NAME}
|
|
89
|
-
label={
|
|
90
|
-
<CnvLabel
|
|
91
|
-
clusterId={clusterId}
|
|
92
|
-
disabledReason={disabledReason}
|
|
93
|
-
isVersionEqualsOrMajorThan4_15={isVersionEqualsOrMajorThan4_15}
|
|
94
|
-
supportLevel={supportLevel}
|
|
95
|
-
/>
|
|
96
|
-
}
|
|
97
|
-
helperText={<CnvHelperText />}
|
|
98
|
-
isDisabled={!!disabledReason}
|
|
99
|
-
onChange={selectOperatorsNeeded}
|
|
100
|
-
/>
|
|
101
|
-
</FormGroup>
|
|
102
|
-
);
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export default CnvCheckbox;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
|
-
import { List, ListItem } from '@patternfly/react-core';
|
|
4
|
-
import { useClusterPreflightRequirements } from '../../../hooks';
|
|
5
|
-
import { ErrorState, LoadingState, OPERATOR_NAME_CNV, RenderIf } from '../../../../common';
|
|
6
|
-
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
7
|
-
import { selectIsCurrentClusterSNO } from '../../../store/slices/current-cluster/selectors';
|
|
8
|
-
import { getOdfLvmsText } from './utils';
|
|
9
|
-
|
|
10
|
-
const CnvHostRequirements = ({
|
|
11
|
-
clusterId,
|
|
12
|
-
isVersionEqualsOrMajorThan4_15,
|
|
13
|
-
}: {
|
|
14
|
-
clusterId: Cluster['id'];
|
|
15
|
-
isVersionEqualsOrMajorThan4_15: boolean;
|
|
16
|
-
}) => {
|
|
17
|
-
const { preflightRequirements, error, isLoading } = useClusterPreflightRequirements(clusterId);
|
|
18
|
-
const isSingleNode = useSelector(selectIsCurrentClusterSNO);
|
|
19
|
-
|
|
20
|
-
if (isLoading) {
|
|
21
|
-
return <LoadingState content="Loading hardware requirements ..." />;
|
|
22
|
-
}
|
|
23
|
-
if (error) {
|
|
24
|
-
return <ErrorState />;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const cnvRequirements = preflightRequirements?.operators?.find(
|
|
28
|
-
(operatorRequirements) => operatorRequirements.operatorName === OPERATOR_NAME_CNV,
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
const workerRequirements = cnvRequirements?.requirements?.worker?.quantitative;
|
|
32
|
-
const masterRequirements = cnvRequirements?.requirements?.master?.quantitative;
|
|
33
|
-
const odfLvmsText = getOdfLvmsText(isSingleNode, isVersionEqualsOrMajorThan4_15);
|
|
34
|
-
return (
|
|
35
|
-
<>
|
|
36
|
-
<List>
|
|
37
|
-
<ListItem>
|
|
38
|
-
Enabled CPU virtualization support in BIOS (Intel-VT / AMD-V) on all nodes
|
|
39
|
-
</ListItem>
|
|
40
|
-
<RenderIf condition={!isSingleNode}>
|
|
41
|
-
<ListItem>
|
|
42
|
-
Each worker node requires an additional {workerRequirements?.ramMib || 360} MiB of
|
|
43
|
-
memory {workerRequirements?.diskSizeGb ? ',' : ' and'}{' '}
|
|
44
|
-
{workerRequirements?.cpuCores || 2} CPUs
|
|
45
|
-
{workerRequirements?.diskSizeGb
|
|
46
|
-
? ` and ${workerRequirements?.diskSizeGb} storage space`
|
|
47
|
-
: ''}
|
|
48
|
-
</ListItem>
|
|
49
|
-
</RenderIf>
|
|
50
|
-
<ListItem>
|
|
51
|
-
Each control plane node requires an additional {masterRequirements?.ramMib || 150} MiB of
|
|
52
|
-
memory {masterRequirements?.diskSizeGb ? ',' : ' and'} {masterRequirements?.cpuCores || 4}{' '}
|
|
53
|
-
CPUs
|
|
54
|
-
{masterRequirements?.diskSizeGb
|
|
55
|
-
? ` and ${masterRequirements?.diskSizeGb} storage space`
|
|
56
|
-
: ''}
|
|
57
|
-
</ListItem>
|
|
58
|
-
<ListItem>{odfLvmsText}</ListItem>
|
|
59
|
-
</List>
|
|
60
|
-
</>
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export default CnvHostRequirements;
|
package/lib/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.tsx
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import { getFieldId, FENCE_AGENTS_REMEDIATION_LINK } from '../../../../common';
|
|
4
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
5
|
-
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
6
|
-
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
7
|
-
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
8
|
-
|
|
9
|
-
const FENCE_AGENTS_REMEDIATION_FIELD_NAME = 'useFenceAgentsRemediation';
|
|
10
|
-
const FENCE_AGENTS_REMEDIATION_FEATURE_ID = 'FENCE_AGENTS_REMEDIATION';
|
|
11
|
-
|
|
12
|
-
const FenceAgentsRemediationLabel = ({
|
|
13
|
-
disabledReason,
|
|
14
|
-
supportLevel,
|
|
15
|
-
}: {
|
|
16
|
-
disabledReason?: string;
|
|
17
|
-
supportLevel?: SupportLevel;
|
|
18
|
-
}) => {
|
|
19
|
-
return (
|
|
20
|
-
<>
|
|
21
|
-
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
22
|
-
<span>Fence Agents Remediation </span>
|
|
23
|
-
</Tooltip>
|
|
24
|
-
<NewFeatureSupportLevelBadge
|
|
25
|
-
featureId={FENCE_AGENTS_REMEDIATION_FEATURE_ID}
|
|
26
|
-
supportLevel={supportLevel}
|
|
27
|
-
/>
|
|
28
|
-
</>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const FenceAgentsRemediationHelperText = () => {
|
|
33
|
-
return (
|
|
34
|
-
<HelperText>
|
|
35
|
-
<HelperTextItem variant="indeterminate">
|
|
36
|
-
Externally fences failed nodes using power controllers.{' '}
|
|
37
|
-
<a href={FENCE_AGENTS_REMEDIATION_LINK} target="_blank" rel="noopener noreferrer">
|
|
38
|
-
{'Learn more'} <ExternalLinkAltIcon />
|
|
39
|
-
</a>
|
|
40
|
-
</HelperTextItem>
|
|
41
|
-
</HelperText>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const FenceAgentsRemediationCheckbox = ({
|
|
46
|
-
disabledReason,
|
|
47
|
-
supportLevel,
|
|
48
|
-
}: {
|
|
49
|
-
disabledReason?: string;
|
|
50
|
-
supportLevel?: SupportLevel | undefined;
|
|
51
|
-
}) => {
|
|
52
|
-
const fieldId = getFieldId(FENCE_AGENTS_REMEDIATION_FIELD_NAME, 'input');
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<FormGroup isInline fieldId={fieldId}>
|
|
56
|
-
<OcmCheckboxField
|
|
57
|
-
name={FENCE_AGENTS_REMEDIATION_FIELD_NAME}
|
|
58
|
-
label={
|
|
59
|
-
<FenceAgentsRemediationLabel
|
|
60
|
-
disabledReason={disabledReason}
|
|
61
|
-
supportLevel={supportLevel}
|
|
62
|
-
/>
|
|
63
|
-
}
|
|
64
|
-
helperText={<FenceAgentsRemediationHelperText />}
|
|
65
|
-
isDisabled={!!disabledReason}
|
|
66
|
-
/>
|
|
67
|
-
</FormGroup>
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export default FenceAgentsRemediationCheckbox;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import { getFieldId, KMM_LINK } from '../../../../common';
|
|
4
|
-
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
5
|
-
import { useNewFeatureSupportLevel } from '../../../../common/components/newFeatureSupportLevels';
|
|
6
|
-
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
7
|
-
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
8
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
9
|
-
|
|
10
|
-
const KMM_FIELD_NAME = 'useKmm';
|
|
11
|
-
|
|
12
|
-
const KmmLabel = ({
|
|
13
|
-
disabledReason,
|
|
14
|
-
supportLevel,
|
|
15
|
-
}: {
|
|
16
|
-
disabledReason?: string;
|
|
17
|
-
supportLevel?: SupportLevel;
|
|
18
|
-
}) => {
|
|
19
|
-
return (
|
|
20
|
-
<>
|
|
21
|
-
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
22
|
-
<span>Kernel Module Management </span>
|
|
23
|
-
</Tooltip>
|
|
24
|
-
<NewFeatureSupportLevelBadge featureId="KMM" supportLevel={supportLevel} />
|
|
25
|
-
</>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const KmmHelperText = () => {
|
|
30
|
-
return (
|
|
31
|
-
<HelperText>
|
|
32
|
-
<HelperTextItem variant="indeterminate">
|
|
33
|
-
Management of kernel modules.{' '}
|
|
34
|
-
<a href={KMM_LINK} target="_blank" rel="noopener noreferrer">
|
|
35
|
-
{'Learn more'} <ExternalLinkAltIcon />
|
|
36
|
-
</a>
|
|
37
|
-
</HelperTextItem>
|
|
38
|
-
</HelperText>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const KmmCheckbox = ({ disabledReason }: { disabledReason?: string }) => {
|
|
43
|
-
const fieldId = getFieldId(KMM_FIELD_NAME, 'input');
|
|
44
|
-
const featureSupportLevel = useNewFeatureSupportLevel();
|
|
45
|
-
const [disabledReasonKmm, setDisabledReason] = useState<string | undefined>();
|
|
46
|
-
|
|
47
|
-
React.useEffect(() => {
|
|
48
|
-
const reason = featureSupportLevel.getFeatureDisabledReason('KMM');
|
|
49
|
-
setDisabledReason(reason);
|
|
50
|
-
}, [featureSupportLevel]);
|
|
51
|
-
|
|
52
|
-
return (
|
|
53
|
-
<FormGroup isInline fieldId={fieldId}>
|
|
54
|
-
<OcmCheckboxField
|
|
55
|
-
name={KMM_FIELD_NAME}
|
|
56
|
-
label={
|
|
57
|
-
<KmmLabel
|
|
58
|
-
disabledReason={disabledReason ? disabledReason : disabledReasonKmm}
|
|
59
|
-
supportLevel={featureSupportLevel.getFeatureSupportLevel('KMM')}
|
|
60
|
-
/>
|
|
61
|
-
}
|
|
62
|
-
helperText={<KmmHelperText />}
|
|
63
|
-
isDisabled={!!disabledReason || !!disabledReasonKmm}
|
|
64
|
-
/>
|
|
65
|
-
</FormGroup>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export default KmmCheckbox;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import { getFieldId, NODE_HEALTHCHECK_LINK } from '../../../../common';
|
|
4
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
5
|
-
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
6
|
-
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
7
|
-
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
8
|
-
|
|
9
|
-
const KUBE_DESCHEDULER_FIELD_NAME = 'useKubeDescheduler';
|
|
10
|
-
const KUBE_DESCHEDULER_FEATURE_ID = 'KUBE_DESCHEDULER';
|
|
11
|
-
|
|
12
|
-
const KubeDeschedulerLabel = ({
|
|
13
|
-
disabledReason,
|
|
14
|
-
supportLevel,
|
|
15
|
-
}: {
|
|
16
|
-
disabledReason?: string;
|
|
17
|
-
supportLevel?: SupportLevel;
|
|
18
|
-
}) => {
|
|
19
|
-
return (
|
|
20
|
-
<>
|
|
21
|
-
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
22
|
-
<span>Kube Descheduler </span>
|
|
23
|
-
</Tooltip>
|
|
24
|
-
<NewFeatureSupportLevelBadge
|
|
25
|
-
featureId={KUBE_DESCHEDULER_FEATURE_ID}
|
|
26
|
-
supportLevel={supportLevel}
|
|
27
|
-
/>
|
|
28
|
-
</>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const KubeDeschedulerHelperText = () => {
|
|
33
|
-
return (
|
|
34
|
-
<HelperText>
|
|
35
|
-
<HelperTextItem variant="indeterminate">
|
|
36
|
-
Evicts pods to reschedule them onto more suitable nodes.{' '}
|
|
37
|
-
<a href={NODE_HEALTHCHECK_LINK} target="_blank" rel="noopener noreferrer">
|
|
38
|
-
{'Learn more'} <ExternalLinkAltIcon />
|
|
39
|
-
</a>
|
|
40
|
-
</HelperTextItem>
|
|
41
|
-
</HelperText>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const KubeDeschedulerCheckbox = ({
|
|
46
|
-
disabledReason,
|
|
47
|
-
supportLevel,
|
|
48
|
-
}: {
|
|
49
|
-
disabledReason?: string;
|
|
50
|
-
supportLevel?: SupportLevel | undefined;
|
|
51
|
-
}) => {
|
|
52
|
-
const fieldId = getFieldId(KUBE_DESCHEDULER_FIELD_NAME, 'input');
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<FormGroup isInline fieldId={fieldId}>
|
|
56
|
-
<OcmCheckboxField
|
|
57
|
-
name={KUBE_DESCHEDULER_FIELD_NAME}
|
|
58
|
-
label={<KubeDeschedulerLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
|
|
59
|
-
helperText={<KubeDeschedulerHelperText />}
|
|
60
|
-
isDisabled={!!disabledReason}
|
|
61
|
-
/>
|
|
62
|
-
</FormGroup>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export default KubeDeschedulerCheckbox;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import { getFieldId, getLsoLink } from '../../../../common';
|
|
4
|
-
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
5
|
-
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
6
|
-
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
7
|
-
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
8
|
-
|
|
9
|
-
const LSO_FIELD_NAME = 'useLso';
|
|
10
|
-
|
|
11
|
-
const LsoLabel = ({
|
|
12
|
-
disabledReason,
|
|
13
|
-
supportLevel,
|
|
14
|
-
}: {
|
|
15
|
-
disabledReason?: string;
|
|
16
|
-
supportLevel?: SupportLevel;
|
|
17
|
-
}) => {
|
|
18
|
-
return (
|
|
19
|
-
<>
|
|
20
|
-
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
21
|
-
<span>Local Storage Operator </span>
|
|
22
|
-
</Tooltip>
|
|
23
|
-
<NewFeatureSupportLevelBadge featureId="LSO" supportLevel={supportLevel} />
|
|
24
|
-
</>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const LsoHelperText = ({ openshiftVersion }: { openshiftVersion?: string }) => {
|
|
29
|
-
return (
|
|
30
|
-
<HelperText>
|
|
31
|
-
<HelperTextItem variant="indeterminate">
|
|
32
|
-
Allows provisioning of persistent storage by using local volumes.{' '}
|
|
33
|
-
<a href={getLsoLink(openshiftVersion)} target="_blank" rel="noopener noreferrer">
|
|
34
|
-
{'Learn more'} <ExternalLinkAltIcon />
|
|
35
|
-
</a>
|
|
36
|
-
</HelperTextItem>
|
|
37
|
-
</HelperText>
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const LsoCheckbox = ({
|
|
42
|
-
disabledReason,
|
|
43
|
-
supportLevel,
|
|
44
|
-
openshiftVersion,
|
|
45
|
-
}: {
|
|
46
|
-
disabledReason?: string;
|
|
47
|
-
supportLevel?: SupportLevel | undefined;
|
|
48
|
-
openshiftVersion?: string;
|
|
49
|
-
}) => {
|
|
50
|
-
const fieldId = getFieldId(LSO_FIELD_NAME, 'input');
|
|
51
|
-
|
|
52
|
-
return (
|
|
53
|
-
<FormGroup isInline fieldId={fieldId}>
|
|
54
|
-
<OcmCheckboxField
|
|
55
|
-
name={LSO_FIELD_NAME}
|
|
56
|
-
label={<LsoLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
|
|
57
|
-
helperText={<LsoHelperText openshiftVersion={openshiftVersion || '4.17'} />}
|
|
58
|
-
isDisabled={!!disabledReason}
|
|
59
|
-
/>
|
|
60
|
-
</FormGroup>
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export default LsoCheckbox;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import {
|
|
4
|
-
ClusterOperatorProps,
|
|
5
|
-
getFieldId,
|
|
6
|
-
PopoverIcon,
|
|
7
|
-
operatorLabels,
|
|
8
|
-
OPERATOR_NAME_LVM,
|
|
9
|
-
ExposedOperatorName,
|
|
10
|
-
ExternalLink,
|
|
11
|
-
OPERATOR_NAME_LVMS,
|
|
12
|
-
getLvmsDocsLink,
|
|
13
|
-
} from '../../../../common';
|
|
14
|
-
import LvmHostRequirements from './LvmHostRequirements';
|
|
15
|
-
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
16
|
-
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
17
|
-
import { useNewFeatureSupportLevel } from '../../../../common/components/newFeatureSupportLevels';
|
|
18
|
-
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
19
|
-
import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
|
|
20
|
-
|
|
21
|
-
const LVM_FIELD_NAME = 'useOdfLogicalVolumeManager';
|
|
22
|
-
|
|
23
|
-
type LvmLabelProps = ClusterOperatorProps & {
|
|
24
|
-
disabledReason?: string;
|
|
25
|
-
operatorLabel: string;
|
|
26
|
-
supportLevel?: SupportLevel;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const LvmHelperText = ({
|
|
30
|
-
operatorName,
|
|
31
|
-
docsVersion,
|
|
32
|
-
}: {
|
|
33
|
-
operatorName: ExposedOperatorName;
|
|
34
|
-
docsVersion: string;
|
|
35
|
-
}) => {
|
|
36
|
-
return (
|
|
37
|
-
<HelperText>
|
|
38
|
-
<HelperTextItem variant="indeterminate">
|
|
39
|
-
Storage virtualization that offers a more flexible approach for disk space management.{' '}
|
|
40
|
-
{operatorName === OPERATOR_NAME_LVMS && (
|
|
41
|
-
<ExternalLink href={getLvmsDocsLink(docsVersion)}>Learn more</ExternalLink>
|
|
42
|
-
)}
|
|
43
|
-
</HelperTextItem>
|
|
44
|
-
</HelperText>
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const LvmLabel = ({ clusterId, operatorLabel, disabledReason, supportLevel }: LvmLabelProps) => {
|
|
49
|
-
return (
|
|
50
|
-
<>
|
|
51
|
-
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
52
|
-
<span>{operatorLabel} </span>
|
|
53
|
-
</Tooltip>
|
|
54
|
-
<PopoverIcon
|
|
55
|
-
component={'a'}
|
|
56
|
-
headerContent="Additional requirements"
|
|
57
|
-
bodyContent={<LvmHostRequirements clusterId={clusterId} />}
|
|
58
|
-
/>
|
|
59
|
-
<NewFeatureSupportLevelBadge featureId="LVM" supportLevel={supportLevel} />
|
|
60
|
-
</>
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const LvmCheckbox = ({
|
|
65
|
-
clusterId,
|
|
66
|
-
openshiftVersion,
|
|
67
|
-
disabledReason,
|
|
68
|
-
supportLevel,
|
|
69
|
-
}: {
|
|
70
|
-
clusterId: ClusterOperatorProps['clusterId'];
|
|
71
|
-
openshiftVersion?: ClusterOperatorProps['openshiftVersion'];
|
|
72
|
-
disabledReason?: string;
|
|
73
|
-
supportLevel?: SupportLevel | undefined;
|
|
74
|
-
}) => {
|
|
75
|
-
const fieldId = getFieldId(LVM_FIELD_NAME, 'input');
|
|
76
|
-
|
|
77
|
-
const featureSupportLevel = useNewFeatureSupportLevel();
|
|
78
|
-
const { t } = useTranslation();
|
|
79
|
-
|
|
80
|
-
const operatorInfo = React.useMemo(() => {
|
|
81
|
-
const operatorLabel = operatorLabels(t, featureSupportLevel)[OPERATOR_NAME_LVM];
|
|
82
|
-
return {
|
|
83
|
-
operatorLabel,
|
|
84
|
-
operatorName: supportLevel === 'supported' ? OPERATOR_NAME_LVMS : OPERATOR_NAME_LVM,
|
|
85
|
-
};
|
|
86
|
-
}, [featureSupportLevel, supportLevel, t]);
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<FormGroup isInline fieldId={fieldId}>
|
|
90
|
-
<OcmCheckboxField
|
|
91
|
-
name={LVM_FIELD_NAME}
|
|
92
|
-
label={
|
|
93
|
-
<LvmLabel
|
|
94
|
-
clusterId={clusterId}
|
|
95
|
-
operatorLabel={operatorInfo.operatorLabel}
|
|
96
|
-
disabledReason={disabledReason}
|
|
97
|
-
supportLevel={supportLevel}
|
|
98
|
-
/>
|
|
99
|
-
}
|
|
100
|
-
helperText={
|
|
101
|
-
<LvmHelperText
|
|
102
|
-
operatorName={operatorInfo.operatorName}
|
|
103
|
-
docsVersion={openshiftVersion || ''}
|
|
104
|
-
/>
|
|
105
|
-
}
|
|
106
|
-
isDisabled={!!disabledReason}
|
|
107
|
-
/>
|
|
108
|
-
</FormGroup>
|
|
109
|
-
);
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export default LvmCheckbox;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { List, ListItem } from '@patternfly/react-core';
|
|
3
|
-
import { useClusterPreflightRequirements } from '../../../hooks';
|
|
4
|
-
import {
|
|
5
|
-
ClusterOperatorProps,
|
|
6
|
-
ErrorState,
|
|
7
|
-
LoadingState,
|
|
8
|
-
OPERATOR_NAME_LVM,
|
|
9
|
-
} from '../../../../common';
|
|
10
|
-
import { HostTypeHardwareRequirements } from '@openshift-assisted/types/assisted-installer-service';
|
|
11
|
-
|
|
12
|
-
const LvmHostRequirements = ({ clusterId }: { clusterId: ClusterOperatorProps['clusterId'] }) => {
|
|
13
|
-
const { preflightRequirements, error, isLoading } = useClusterPreflightRequirements(clusterId);
|
|
14
|
-
|
|
15
|
-
if (isLoading) {
|
|
16
|
-
return <LoadingState content="Loading hardware requirements ..." />;
|
|
17
|
-
}
|
|
18
|
-
if (error) {
|
|
19
|
-
return <ErrorState />;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const lvmRequirements = preflightRequirements?.operators?.find(
|
|
23
|
-
(operatorRequirements) => operatorRequirements.operatorName === OPERATOR_NAME_LVM,
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
const { qualitative = [] } = lvmRequirements?.requirements
|
|
27
|
-
?.master as HostTypeHardwareRequirements;
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<List>
|
|
31
|
-
{qualitative.map((qualitativeItem, index) => (
|
|
32
|
-
<ListItem key={index}>{qualitativeItem}</ListItem>
|
|
33
|
-
))}
|
|
34
|
-
</List>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default LvmHostRequirements;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
4
|
-
import { getFieldId, PopoverIcon, getMceDocsLink, ClusterOperatorProps } from '../../../../common';
|
|
5
|
-
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
6
|
-
import MceRequirements from './MceRequirements';
|
|
7
|
-
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
8
|
-
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
9
|
-
|
|
10
|
-
const MCE_FIELD_NAME = 'useMultiClusterEngine';
|
|
11
|
-
|
|
12
|
-
const MceLabel = ({
|
|
13
|
-
disabledReason,
|
|
14
|
-
isVersionEqualsOrMajorThan4_15,
|
|
15
|
-
clusterId,
|
|
16
|
-
supportLevel,
|
|
17
|
-
}: {
|
|
18
|
-
disabledReason?: string;
|
|
19
|
-
isVersionEqualsOrMajorThan4_15: boolean;
|
|
20
|
-
clusterId: ClusterOperatorProps['clusterId'];
|
|
21
|
-
supportLevel?: SupportLevel;
|
|
22
|
-
}) => {
|
|
23
|
-
return (
|
|
24
|
-
<>
|
|
25
|
-
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
26
|
-
<span>Multicluster engine </span>
|
|
27
|
-
</Tooltip>
|
|
28
|
-
<PopoverIcon
|
|
29
|
-
id={MCE_FIELD_NAME}
|
|
30
|
-
component={'a'}
|
|
31
|
-
headerContent="Additional requirements"
|
|
32
|
-
bodyContent={
|
|
33
|
-
<MceRequirements
|
|
34
|
-
clusterId={clusterId}
|
|
35
|
-
isVersionEqualsOrMajorThan4_15={isVersionEqualsOrMajorThan4_15}
|
|
36
|
-
/>
|
|
37
|
-
}
|
|
38
|
-
/>
|
|
39
|
-
<NewFeatureSupportLevelBadge featureId="MCE" supportLevel={supportLevel} />
|
|
40
|
-
</>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const MceHelperText = ({ docsVersion }: { docsVersion: string }) => {
|
|
45
|
-
return (
|
|
46
|
-
<HelperText>
|
|
47
|
-
<HelperTextItem variant="indeterminate">
|
|
48
|
-
Create, import, and manage multiple clusters from this cluster.{' '}
|
|
49
|
-
<a href={getMceDocsLink(docsVersion)} target="_blank" rel="noopener noreferrer">
|
|
50
|
-
{'Learn more'} <ExternalLinkAltIcon />
|
|
51
|
-
</a>
|
|
52
|
-
</HelperTextItem>
|
|
53
|
-
</HelperText>
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const MceCheckbox = ({
|
|
58
|
-
clusterId,
|
|
59
|
-
isVersionEqualsOrMajorThan4_15,
|
|
60
|
-
openshiftVersion,
|
|
61
|
-
supportLevel,
|
|
62
|
-
disabledReason,
|
|
63
|
-
}: {
|
|
64
|
-
isVersionEqualsOrMajorThan4_15: boolean;
|
|
65
|
-
openshiftVersion?: string;
|
|
66
|
-
clusterId: ClusterOperatorProps['clusterId'];
|
|
67
|
-
supportLevel?: SupportLevel | undefined;
|
|
68
|
-
disabledReason?: string;
|
|
69
|
-
}) => {
|
|
70
|
-
const fieldId = getFieldId(MCE_FIELD_NAME, 'input');
|
|
71
|
-
return (
|
|
72
|
-
<FormGroup isInline fieldId={fieldId}>
|
|
73
|
-
<OcmCheckboxField
|
|
74
|
-
name={MCE_FIELD_NAME}
|
|
75
|
-
label={
|
|
76
|
-
<MceLabel
|
|
77
|
-
disabledReason={disabledReason}
|
|
78
|
-
isVersionEqualsOrMajorThan4_15={isVersionEqualsOrMajorThan4_15}
|
|
79
|
-
clusterId={clusterId}
|
|
80
|
-
supportLevel={supportLevel}
|
|
81
|
-
/>
|
|
82
|
-
}
|
|
83
|
-
isDisabled={!!disabledReason}
|
|
84
|
-
helperText={<MceHelperText docsVersion={openshiftVersion || ''} />}
|
|
85
|
-
/>
|
|
86
|
-
</FormGroup>
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export default MceCheckbox;
|