Skip to content

Commit

Permalink
Show correct requirements for MTV operator (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 authored Nov 15, 2024
1 parent f805cf5 commit a4fcfff
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { useSelector } from 'react-redux';
import { List, ListItem } from '@patternfly/react-core';
import { useClusterPreflightRequirements } from '../../../hooks';
import { ErrorState, LoadingState, OPERATOR_NAME_CNV, RenderIf } from '../../../../common';
import { ErrorState, LoadingState, OPERATOR_NAME_MTV, RenderIf } from '../../../../common';
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
import { selectIsCurrentClusterSNO } from '../../../store/slices/current-cluster/selectors';

Expand All @@ -18,17 +18,14 @@ const MtvRequirements = ({ clusterId }: { clusterId: Cluster['id'] }) => {
}

const mtvRequirements = preflightRequirements?.operators?.find(
(operatorRequirements) => operatorRequirements.operatorName === OPERATOR_NAME_CNV,
(operatorRequirements) => operatorRequirements.operatorName === OPERATOR_NAME_MTV,
);

const workerRequirements = mtvRequirements?.requirements?.worker?.quantitative;
const masterRequirements = mtvRequirements?.requirements?.master?.quantitative;
return (
<>
<List>
<ListItem>
Enabled CPU virtualization support in BIOS (Intel-VT / AMD-V) on all nodes
</ListItem>
<RenderIf condition={!isSingleNode}>
<ListItem>
Each worker node requires an additional {workerRequirements?.ramMib || 360} MiB of
Expand Down

0 comments on commit a4fcfff

Please sign in to comment.