Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ export const CreateCluster = () => {
? UNKNOWN_PRICE
: highAvailabilityPrice
}
isAPLEnabled={aplEnabled}
isErrorKubernetesTypes={isErrorKubernetesTypes}
isLoadingKubernetesTypes={isLoadingKubernetesTypes}
selectedRegionId={selectedRegion?.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
Notice,
Radio,
RadioGroup,
TooltipIcon,
} from '@linode/ui';
import { FormLabel } from '@mui/material';
import * as React from 'react';
Expand All @@ -15,7 +14,6 @@ import { Link } from 'src/components/Link';

export interface HAControlPlaneProps {
highAvailabilityPrice: string;
isAPLEnabled?: boolean;
isErrorKubernetesTypes: boolean;
isLoadingKubernetesTypes: boolean;
selectedRegionId: string | undefined;
Expand Down Expand Up @@ -46,7 +44,6 @@ export const getRegionPriceLink = (selectedRegionId: string) => {
export const HAControlPlane = (props: HAControlPlaneProps) => {
const {
highAvailabilityPrice,
isAPLEnabled,
isErrorKubernetesTypes,
isLoadingKubernetesTypes,
selectedRegionId,
Expand All @@ -58,7 +55,7 @@ export const HAControlPlane = (props: HAControlPlaneProps) => {
};

return (
<FormControl data-testid="ha-control-plane-form" disabled={isAPLEnabled}>
<FormControl data-testid="ha-control-plane-form">
<FormLabel
id="ha-radio-buttons-group-label"
sx={(theme) => ({
Expand Down Expand Up @@ -88,10 +85,8 @@ export const HAControlPlane = (props: HAControlPlaneProps) => {
aria-labelledby="ha-radio-buttons-group-label"
name="ha-radio-buttons-group"
onChange={(e) => handleChange(e)}
value={isAPLEnabled ? 'yes' : undefined}
>
<FormControlLabel
checked={isAPLEnabled ? true : undefined}
control={<Radio data-testid="ha-radio-button-yes" />}
label={
<Box alignItems="center" display="flex" flexDirection="row">
Expand All @@ -101,23 +96,13 @@ export const HAControlPlane = (props: HAControlPlaneProps) => {
? `For this region, HA control plane costs $${highAvailabilityPrice}/month.`
: '(Select a region to view price information.)'}
</Typography>
{isAPLEnabled && (
<TooltipIcon
status="info"
sxTooltipIcon={{ padding: '8px', marginLeft: '4px' }}
text={
'Enabled by default when Akamai App Platform is enabled.'
}
/>
)}
</Box>
}
name="yes"
value="yes"
/>

<FormControlLabel
checked={isAPLEnabled ? false : undefined}
control={<Radio data-testid="ha-radio-button-no" />}
label="No"
name="no"
Expand Down
Loading