@openshift-assisted/ui-lib 2.37.2 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
- package/build/@types/cim/components/common/constants.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
- package/build/@types/cim/types/k8s/infra-env-k8s-resource.d.ts +1 -0
- package/build/@types/cim/types/k8s/infra-env-k8s-resource.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/BundleAPI.d.ts +8 -0
- package/build/@types/common/api/assisted-service/BundleAPI.d.ts.map +1 -0
- package/build/@types/common/api/assisted-service/OperatorsAPI.d.ts +6 -0
- package/build/@types/common/api/assisted-service/OperatorsAPI.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +7 -0
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts +2 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/types.d.ts +3 -1
- package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +6 -0
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +1 -1
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/selectors/clusterSelectors.d.ts +1 -0
- package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
- package/build/@types/common/types/clusters.d.ts +8 -0
- package/build/@types/common/types/clusters.d.ts.map +1 -1
- package/build/@types/common/types/ui-settings.d.ts +1 -0
- package/build/@types/common/types/ui-settings.d.ts.map +1 -1
- package/build/@types/ocm/components/SentryErrorMonitorContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MceCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts +4 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts +10 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts +7 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NmstateRequirements.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts +5 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts +5 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts +5 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OscCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts +24 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/@types/ocm/config/constants.d.ts +2 -0
- package/build/@types/ocm/config/constants.d.ts.map +1 -1
- package/build/@types/ocm/sentry.d.ts +2 -2
- package/build/@types/ocm/sentry.d.ts.map +1 -1
- package/build/@types/ocm/services/BundleService.d.ts +6 -0
- package/build/@types/ocm/services/BundleService.d.ts.map +1 -0
- package/build/@types/ocm/services/ClustersService.d.ts +1 -0
- package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
- package/build/@types/ocm/services/OperatorsService.d.ts +1 -0
- package/build/@types/ocm/services/OperatorsService.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +1 -0
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +4 -5
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js +1 -1
- package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js.map +1 -1
- package/build/cjs/cim/components/common/constants.js +1 -1
- package/build/cjs/cim/components/common/constants.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/modals/AddHostModal.js +4 -5
- package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
- package/build/cjs/common/api/assisted-service/BundleAPI.js +16 -0
- package/build/cjs/common/api/assisted-service/BundleAPI.js.map +1 -0
- package/build/cjs/common/api/assisted-service/OperatorsAPI.js +13 -0
- package/build/cjs/common/api/assisted-service/OperatorsAPI.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +41 -0
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +4 -5
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.js +5 -5
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +6 -2
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +2 -2
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/hosts/AITableMemo.js +16 -13
- package/build/cjs/common/components/hosts/AITableMemo.js.map +1 -1
- package/build/cjs/common/components/hosts/HostRowDetail.js +35 -1
- package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +16 -10
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/config/constants.js +12 -1
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +1 -1
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/selectors/clusterSelectors.js +7 -1
- package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
- package/build/cjs/common/types/clusters.js.map +1 -1
- package/build/cjs/ocm/components/SentryErrorMonitorContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +10 -9
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +14 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +3 -20
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +5 -21
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +6 -7
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js +8 -13
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js +30 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js +48 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateRequirements.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +7 -18
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js +4 -17
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js +3 -12
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js +29 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js +73 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +4 -0
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +9 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +209 -22
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +40 -0
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/build/cjs/ocm/config/constants.js +155 -1
- package/build/cjs/ocm/config/constants.js.map +1 -1
- package/build/cjs/ocm/sentry.js +1 -1
- package/build/cjs/ocm/sentry.js.map +1 -1
- package/build/cjs/ocm/services/BundleService.js +20 -0
- package/build/cjs/ocm/services/BundleService.js.map +1 -0
- package/build/cjs/ocm/services/ClustersService.js +33 -1
- package/build/cjs/ocm/services/ClustersService.js.map +1 -1
- package/build/cjs/ocm/services/OperatorsService.js +16 -8
- package/build/cjs/ocm/services/OperatorsService.js.map +1 -1
- package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +4 -6
- package/lib/cim/components/InfraEnv/OpenshiftVersionDropdown.tsx +1 -1
- package/lib/cim/components/common/constants.ts +1 -2
- package/lib/cim/components/helpers/toAssisted.ts +1 -0
- package/lib/cim/components/modals/AddHostModal.tsx +4 -5
- package/lib/cim/types/k8s/infra-env-k8s-resource.ts +1 -0
- package/lib/common/api/assisted-service/BundleAPI.ts +18 -0
- package/lib/common/api/assisted-service/OperatorsAPI.ts +13 -0
- package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +93 -0
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +10 -12
- package/lib/common/components/clusterConfiguration/DiscoveryImageTypeControlGroup.tsx +9 -9
- package/lib/common/components/clusterConfiguration/DownloadIso.tsx +9 -1
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +1 -1
- package/lib/common/components/clusterWizard/types.ts +4 -2
- package/lib/common/components/hosts/AITableMemo.tsx +1 -1
- package/lib/common/components/hosts/HostRowDetail.tsx +71 -1
- package/lib/common/components/storage/DisksTable.tsx +25 -18
- package/lib/common/config/constants.ts +12 -0
- package/lib/common/config/docs_links.ts +1 -1
- package/lib/common/selectors/clusterSelectors.ts +8 -0
- package/lib/common/types/clusters.ts +8 -0
- package/lib/common/types/ui-settings.ts +1 -0
- package/lib/ocm/components/SentryErrorMonitorContextProvider.tsx +1 -2
- package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +13 -12
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +24 -1
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +7 -31
- package/lib/ocm/components/clusterConfiguration/operators/LsoCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/LvmCheckbox.tsx +8 -26
- package/lib/ocm/components/clusterConfiguration/operators/MceCheckbox.tsx +10 -3
- package/lib/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.tsx +23 -12
- package/lib/ocm/components/clusterConfiguration/operators/NmstateCheckbox.tsx +76 -0
- package/lib/ocm/components/clusterConfiguration/operators/NmstateRequirements.tsx +53 -0
- package/lib/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.tsx +66 -0
- package/lib/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +20 -25
- package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.tsx +11 -24
- package/lib/ocm/components/clusterConfiguration/operators/OscCheckbox.tsx +10 -25
- package/lib/ocm/components/clusterConfiguration/operators/PipelinesChekbox.tsx +64 -0
- package/lib/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.tsx +63 -0
- package/lib/ocm/components/clusterConfiguration/operators/SupportedOperators.tsx +105 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -1
- package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -0
- package/lib/ocm/components/clusterWizard/Operators.tsx +21 -1
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +374 -38
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +1 -1
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +40 -0
- package/lib/ocm/config/constants.ts +156 -0
- package/lib/ocm/sentry.ts +2 -1
- package/lib/ocm/services/BundleService.ts +14 -0
- package/lib/ocm/services/ClustersService.ts +39 -2
- package/lib/ocm/services/OperatorsService.tsx +21 -10
- package/package.json +3 -3
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
+
import { getFieldId, PopoverIcon } from '../../../../common';
|
|
4
|
+
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
5
|
+
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
6
|
+
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
7
|
+
|
|
8
|
+
const SERVERLESS_FIELD_NAME = 'useServerless';
|
|
9
|
+
|
|
10
|
+
const ServerlessLabel = ({
|
|
11
|
+
disabledReason,
|
|
12
|
+
supportLevel,
|
|
13
|
+
}: {
|
|
14
|
+
disabledReason?: string;
|
|
15
|
+
supportLevel?: SupportLevel;
|
|
16
|
+
}) => {
|
|
17
|
+
return (
|
|
18
|
+
<>
|
|
19
|
+
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
20
|
+
<span>Install Serverless </span>
|
|
21
|
+
</Tooltip>
|
|
22
|
+
<PopoverIcon
|
|
23
|
+
id={SERVERLESS_FIELD_NAME}
|
|
24
|
+
component={'a'}
|
|
25
|
+
bodyContent={'No additional requirements needed'}
|
|
26
|
+
/>
|
|
27
|
+
<NewFeatureSupportLevelBadge featureId="SERVERLESS" supportLevel={supportLevel} />
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const ServerlessHelperText = () => {
|
|
33
|
+
return (
|
|
34
|
+
<HelperText>
|
|
35
|
+
<HelperTextItem variant="indeterminate">
|
|
36
|
+
Deploy workflow applications based on the CNCF Serverless Workflow specification.{' '}
|
|
37
|
+
</HelperTextItem>
|
|
38
|
+
</HelperText>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const ServerlessCheckbox = ({
|
|
43
|
+
disabledReason,
|
|
44
|
+
supportLevel,
|
|
45
|
+
}: {
|
|
46
|
+
disabledReason?: string;
|
|
47
|
+
supportLevel?: SupportLevel | undefined;
|
|
48
|
+
}) => {
|
|
49
|
+
const fieldId = getFieldId(SERVERLESS_FIELD_NAME, 'input');
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<FormGroup isInline fieldId={fieldId}>
|
|
53
|
+
<OcmCheckboxField
|
|
54
|
+
name={SERVERLESS_FIELD_NAME}
|
|
55
|
+
label={<ServerlessLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
|
|
56
|
+
helperText={<ServerlessHelperText />}
|
|
57
|
+
isDisabled={!!disabledReason}
|
|
58
|
+
/>
|
|
59
|
+
</FormGroup>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default ServerlessCheckbox;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormGroup, HelperText, HelperTextItem, Tooltip } from '@patternfly/react-core';
|
|
3
|
+
import { getFieldId, PopoverIcon } from '../../../../common';
|
|
4
|
+
import { OcmCheckboxField } from '../../ui/OcmFormFields';
|
|
5
|
+
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
6
|
+
import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
|
|
7
|
+
|
|
8
|
+
const SERVICEMESH_FIELD_NAME = 'useServiceMesh';
|
|
9
|
+
|
|
10
|
+
const ServiceMeshLabel = ({
|
|
11
|
+
disabledReason,
|
|
12
|
+
supportLevel,
|
|
13
|
+
}: {
|
|
14
|
+
disabledReason?: string;
|
|
15
|
+
supportLevel?: SupportLevel;
|
|
16
|
+
}) => {
|
|
17
|
+
return (
|
|
18
|
+
<>
|
|
19
|
+
<Tooltip hidden={!disabledReason} content={disabledReason}>
|
|
20
|
+
<span>Install Service Mesh </span>
|
|
21
|
+
</Tooltip>
|
|
22
|
+
<PopoverIcon
|
|
23
|
+
id={SERVICEMESH_FIELD_NAME}
|
|
24
|
+
component={'a'}
|
|
25
|
+
bodyContent={'No additional requirements needed'}
|
|
26
|
+
/>
|
|
27
|
+
<NewFeatureSupportLevelBadge featureId="SERVICEMESH" supportLevel={supportLevel} />
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const ServiceMeshHelperText = () => {
|
|
33
|
+
return (
|
|
34
|
+
<HelperText>
|
|
35
|
+
<HelperTextItem variant="indeterminate">
|
|
36
|
+
Platform that provides behavioral insight and operational control over a service mesh.{' '}
|
|
37
|
+
</HelperTextItem>
|
|
38
|
+
</HelperText>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const ServiceMeshCheckbox = ({
|
|
43
|
+
disabledReason,
|
|
44
|
+
supportLevel,
|
|
45
|
+
}: {
|
|
46
|
+
disabledReason?: string;
|
|
47
|
+
supportLevel?: SupportLevel | undefined;
|
|
48
|
+
}) => {
|
|
49
|
+
const fieldId = getFieldId(SERVICEMESH_FIELD_NAME, 'input');
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<FormGroup isInline fieldId={fieldId}>
|
|
53
|
+
<OcmCheckboxField
|
|
54
|
+
name={SERVICEMESH_FIELD_NAME}
|
|
55
|
+
label={<ServiceMeshLabel disabledReason={disabledReason} supportLevel={supportLevel} />}
|
|
56
|
+
helperText={<ServiceMeshHelperText />}
|
|
57
|
+
isDisabled={!!disabledReason}
|
|
58
|
+
/>
|
|
59
|
+
</FormGroup>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default ServiceMeshCheckbox;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CnvCheckbox from './CnvCheckbox';
|
|
3
|
+
import MtvOperatorCheckbox from './MtvOperatorCheckbox';
|
|
4
|
+
import MceCheckbox from './MceCheckbox';
|
|
5
|
+
import LvmCheckbox from './LvmCheckbox';
|
|
6
|
+
import OdfCheckbox from './OdfCheckbox';
|
|
7
|
+
import OpenShiftAICheckbox from './OpenShiftAICheckbox';
|
|
8
|
+
import OscCheckbox from './OscCheckbox';
|
|
9
|
+
import LsoCheckbox from './LsoCheckbox';
|
|
10
|
+
import NodeFeatureDiscoveryCheckbox from './NodeFeatureDiscoveryCheckbox';
|
|
11
|
+
import NmstateCheckbox from './NmstateCheckbox';
|
|
12
|
+
import ServerlessCheckbox from './ServerlessCheckbox';
|
|
13
|
+
import AuthorinoCheckbox from './AuthorinoCheckbox';
|
|
14
|
+
import PipelinesCheckbox from './PipelinesChekbox';
|
|
15
|
+
import ServiceMeshCheckbox from './ServicemeshCheckbox';
|
|
16
|
+
import NvidiaGpuCheckbox from './NvidiaGpuCheckbox';
|
|
17
|
+
import {
|
|
18
|
+
FeatureId,
|
|
19
|
+
OPERATOR_NAME_AUTHORINO,
|
|
20
|
+
OPERATOR_NAME_CNV,
|
|
21
|
+
OPERATOR_NAME_LSO,
|
|
22
|
+
OPERATOR_NAME_LVM,
|
|
23
|
+
OPERATOR_NAME_MCE,
|
|
24
|
+
OPERATOR_NAME_MTV,
|
|
25
|
+
OPERATOR_NAME_NMSTATE,
|
|
26
|
+
OPERATOR_NAME_NODE_FEATURE_DISCOVERY,
|
|
27
|
+
OPERATOR_NAME_NVIDIA_GPU,
|
|
28
|
+
OPERATOR_NAME_ODF,
|
|
29
|
+
OPERATOR_NAME_OPENSHIFT_AI,
|
|
30
|
+
OPERATOR_NAME_OSC,
|
|
31
|
+
OPERATOR_NAME_PIPELINES,
|
|
32
|
+
OPERATOR_NAME_SERVERLESS,
|
|
33
|
+
OPERATOR_NAME_SERVICEMESH,
|
|
34
|
+
} from '../../../../common';
|
|
35
|
+
import { SupportLevel } from '@openshift-assisted/types/./assisted-installer-service';
|
|
36
|
+
|
|
37
|
+
interface OperatorProps {
|
|
38
|
+
clusterId: string;
|
|
39
|
+
openshiftVersion?: string;
|
|
40
|
+
isVersionEqualsOrMajorThan4_15: boolean;
|
|
41
|
+
isSNO: boolean;
|
|
42
|
+
disabledReason?: string;
|
|
43
|
+
supportLevel?: SupportLevel | undefined;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ComponentItem {
|
|
47
|
+
component: JSX.Element;
|
|
48
|
+
label: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const operatorComponentMap: Record<string, (props: OperatorProps) => JSX.Element> = {
|
|
52
|
+
cnv: (props) => (
|
|
53
|
+
<CnvCheckbox {...props} isVersionEqualsOrMajorThan4_15={props.isVersionEqualsOrMajorThan4_15} />
|
|
54
|
+
),
|
|
55
|
+
mtv: (props) => <MtvOperatorCheckbox {...props} />,
|
|
56
|
+
mce: (props) => <MceCheckbox {...props} />,
|
|
57
|
+
lvm: (props) => <LvmCheckbox {...props} />,
|
|
58
|
+
odf: (props) => <OdfCheckbox {...props} />,
|
|
59
|
+
'openshift-ai': (props) => <OpenShiftAICheckbox {...props} />,
|
|
60
|
+
osc: (props) => <OscCheckbox {...props} />,
|
|
61
|
+
lso: (props) => <LsoCheckbox {...props} />,
|
|
62
|
+
'node-feature-discovery': (props) => <NodeFeatureDiscoveryCheckbox {...props} />,
|
|
63
|
+
nmstate: (props) => <NmstateCheckbox {...props} />,
|
|
64
|
+
serverless: (props) => <ServerlessCheckbox {...props} />,
|
|
65
|
+
authorino: (props) => <AuthorinoCheckbox {...props} />,
|
|
66
|
+
pipelines: (props) => <PipelinesCheckbox {...props} />,
|
|
67
|
+
servicemesh: (props) => <ServiceMeshCheckbox {...props} />,
|
|
68
|
+
'nvidia-gpu': (props) => <NvidiaGpuCheckbox {...props} />,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const mapOperatorsToFieldIds: { [key: string]: string } = {
|
|
72
|
+
[OPERATOR_NAME_ODF]: 'useOpenShiftDataFoundation',
|
|
73
|
+
[OPERATOR_NAME_LVM]: 'useOdfLogicalVolumeManager',
|
|
74
|
+
[OPERATOR_NAME_CNV]: 'useContainerNativeVirtualization',
|
|
75
|
+
[OPERATOR_NAME_MCE]: 'useMultiClusterEngine',
|
|
76
|
+
[OPERATOR_NAME_MTV]: 'useMigrationToolkitforVirtualization',
|
|
77
|
+
[OPERATOR_NAME_OPENSHIFT_AI]: 'useOpenShiftAI',
|
|
78
|
+
[OPERATOR_NAME_OSC]: 'useOsc',
|
|
79
|
+
[OPERATOR_NAME_NODE_FEATURE_DISCOVERY]: 'useNodeFeatureDiscovery',
|
|
80
|
+
[OPERATOR_NAME_NMSTATE]: 'useNmstate',
|
|
81
|
+
[OPERATOR_NAME_LSO]: 'useLso',
|
|
82
|
+
[OPERATOR_NAME_SERVERLESS]: 'useServerless',
|
|
83
|
+
[OPERATOR_NAME_AUTHORINO]: 'useAuthorino',
|
|
84
|
+
[OPERATOR_NAME_PIPELINES]: 'usePipelines',
|
|
85
|
+
[OPERATOR_NAME_SERVICEMESH]: 'useServicemesh',
|
|
86
|
+
[OPERATOR_NAME_NVIDIA_GPU]: 'useNvidiaGpu',
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const mapOperatorIdToFeatureId: { [key: string]: FeatureId } = {
|
|
90
|
+
[OPERATOR_NAME_ODF]: 'ODF',
|
|
91
|
+
[OPERATOR_NAME_LVM]: 'LVM',
|
|
92
|
+
[OPERATOR_NAME_CNV]: 'CNV',
|
|
93
|
+
[OPERATOR_NAME_MCE]: 'MCE',
|
|
94
|
+
[OPERATOR_NAME_MTV]: 'MTV',
|
|
95
|
+
[OPERATOR_NAME_OPENSHIFT_AI]: 'OPENSHIFT_AI',
|
|
96
|
+
[OPERATOR_NAME_OSC]: 'OSC',
|
|
97
|
+
[OPERATOR_NAME_NODE_FEATURE_DISCOVERY]: 'NODE_FEATURE_DISCOVERY',
|
|
98
|
+
[OPERATOR_NAME_NMSTATE]: 'NMSTATE',
|
|
99
|
+
[OPERATOR_NAME_LSO]: 'LSO',
|
|
100
|
+
[OPERATOR_NAME_SERVERLESS]: 'SERVERLESS',
|
|
101
|
+
[OPERATOR_NAME_AUTHORINO]: 'AUTHORINO',
|
|
102
|
+
[OPERATOR_NAME_PIPELINES]: 'PIPELINES',
|
|
103
|
+
[OPERATOR_NAME_SERVICEMESH]: 'SERVICEMESH',
|
|
104
|
+
[OPERATOR_NAME_NVIDIA_GPU]: 'NVIDIA_GPU',
|
|
105
|
+
};
|
|
@@ -76,7 +76,7 @@ const getExpandedHostComponent = (protocolType: StaticProtocolType) => {
|
|
|
76
76
|
/>{' '}
|
|
77
77
|
<OcmInputField
|
|
78
78
|
name={`${fieldName}.bondSecondaryInterface`}
|
|
79
|
-
label="Port 2 MAC
|
|
79
|
+
label="Port 2 MAC Address"
|
|
80
80
|
data-testid={`bond-secondary-interface-${hostIdx}`}
|
|
81
81
|
isRequired
|
|
82
82
|
/>
|
|
@@ -78,6 +78,10 @@ const ClusterDetails = ({ cluster, infraEnv }: ClusterDetailsProps) => {
|
|
|
78
78
|
const cluster = await ClustersService.create(params, isAssistedMigration);
|
|
79
79
|
navigate(`../${cluster.id}`, { state: ClusterWizardFlowStateNew });
|
|
80
80
|
await UISettingService.update(cluster.id, { addCustomManifests });
|
|
81
|
+
//TO-DO: Assisted-Migration. Provisional code. Needs to be removed when MTV integration be finished
|
|
82
|
+
if (isAssistedMigration) {
|
|
83
|
+
await ClustersService.createClusterManifestsForAssistedMigration(cluster.id);
|
|
84
|
+
}
|
|
81
85
|
} catch (e) {
|
|
82
86
|
handleApiError(e, () =>
|
|
83
87
|
addAlert({ title: 'Failed to create new cluster', message: getApiErrorMessage(e) }),
|
|
@@ -5,13 +5,21 @@ import { Formik, FormikConfig, useFormikContext } from 'formik';
|
|
|
5
5
|
import {
|
|
6
6
|
ClusterWizardStep,
|
|
7
7
|
getFormikErrorFields,
|
|
8
|
+
OPERATOR_NAME_AUTHORINO,
|
|
8
9
|
OPERATOR_NAME_CNV,
|
|
10
|
+
OPERATOR_NAME_LSO,
|
|
9
11
|
OPERATOR_NAME_LVM,
|
|
10
12
|
OPERATOR_NAME_MCE,
|
|
11
13
|
OPERATOR_NAME_MTV,
|
|
14
|
+
OPERATOR_NAME_NMSTATE,
|
|
15
|
+
OPERATOR_NAME_NODE_FEATURE_DISCOVERY,
|
|
16
|
+
OPERATOR_NAME_NVIDIA_GPU,
|
|
12
17
|
OPERATOR_NAME_ODF,
|
|
13
18
|
OPERATOR_NAME_OPENSHIFT_AI,
|
|
14
19
|
OPERATOR_NAME_OSC,
|
|
20
|
+
OPERATOR_NAME_PIPELINES,
|
|
21
|
+
OPERATOR_NAME_SERVERLESS,
|
|
22
|
+
OPERATOR_NAME_SERVICEMESH,
|
|
15
23
|
OperatorsValues,
|
|
16
24
|
selectMonitoredOperators,
|
|
17
25
|
useAlerts,
|
|
@@ -40,6 +48,14 @@ export const getOperatorsInitialValues = (
|
|
|
40
48
|
useMigrationToolkitforVirtualization: isOperatorEnabled([OPERATOR_NAME_MTV]),
|
|
41
49
|
useOpenShiftAI: isOperatorEnabled([OPERATOR_NAME_OPENSHIFT_AI]),
|
|
42
50
|
useOsc: isOperatorEnabled([OPERATOR_NAME_OSC]),
|
|
51
|
+
useNodeFeatureDiscovery: isOperatorEnabled([OPERATOR_NAME_NODE_FEATURE_DISCOVERY]),
|
|
52
|
+
useNmstate: isOperatorEnabled([OPERATOR_NAME_NMSTATE]),
|
|
53
|
+
useLso: isOperatorEnabled([OPERATOR_NAME_LSO]),
|
|
54
|
+
useServerless: isOperatorEnabled([OPERATOR_NAME_SERVERLESS]),
|
|
55
|
+
useAuthorino: isOperatorEnabled([OPERATOR_NAME_AUTHORINO]),
|
|
56
|
+
usePipelines: isOperatorEnabled([OPERATOR_NAME_PIPELINES]),
|
|
57
|
+
useServicemesh: isOperatorEnabled([OPERATOR_NAME_SERVICEMESH]),
|
|
58
|
+
useNvidiaGpu: isOperatorEnabled([OPERATOR_NAME_NVIDIA_GPU]),
|
|
43
59
|
};
|
|
44
60
|
};
|
|
45
61
|
|
|
@@ -80,7 +96,11 @@ const OperatorsForm = ({ cluster }: { cluster: Cluster }) => {
|
|
|
80
96
|
/>
|
|
81
97
|
}
|
|
82
98
|
>
|
|
83
|
-
<OperatorsStep
|
|
99
|
+
<OperatorsStep
|
|
100
|
+
clusterId={cluster.id}
|
|
101
|
+
openshiftVersion={cluster.openshiftVersion}
|
|
102
|
+
monitoredOperators={cluster.monitoredOperators}
|
|
103
|
+
/>
|
|
84
104
|
</ClusterWizardStep>
|
|
85
105
|
);
|
|
86
106
|
};
|