Skip to content

Commit c686656

Browse files
authored
change: [M3-10586] - Remove update strategy from node pool summary item in LKE checkout bar (linode#12814)
* Remove update strategy from node pool summary item in checkout bar * Added changeset: Update strategy from the Node Pool summary item in LKE checkout bar
1 parent ac94a3a commit c686656

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Removed
3+
---
4+
5+
Update strategy from the Node Pool summary item in LKE checkout bar ([#12814](https://github.com/linode/manager/pull/12814))

packages/manager/src/features/Kubernetes/KubeCheckoutBar/NodePoolSummaryItem.tsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,18 @@ import {
88
} from '@linode/ui';
99
import { pluralize } from '@linode/utilities';
1010
import * as React from 'react';
11-
import { useFormContext, useWatch } from 'react-hook-form';
1211

1312
import { DisplayPrice } from 'src/components/DisplayPrice';
1413
import { EnhancedNumberInput } from 'src/components/EnhancedNumberInput/EnhancedNumberInput';
1514
import { StyledLinkButtonBox } from 'src/components/SelectFirewallPanel/SelectFirewallPanel';
1615
import {
1716
MAX_NODES_PER_POOL_ENTERPRISE_TIER,
1817
MAX_NODES_PER_POOL_STANDARD_TIER,
19-
UPDATE_STRATEGY_OPTIONS,
2018
} from 'src/features/Kubernetes/constants';
2119

2220
import { useIsLkeEnterpriseEnabled } from '../kubeUtils';
2321

24-
import type {
25-
CreateClusterFormValues,
26-
NodePoolConfigDrawerHandlerParams,
27-
} from '../CreateCluster/CreateCluster';
22+
import type { NodePoolConfigDrawerHandlerParams } from '../CreateCluster/CreateCluster';
2823
import type { KubernetesTier } from '@linode/api-v4';
2924
import type { ExtendedType } from 'src/utilities/extendType';
3025

@@ -53,13 +48,6 @@ export const NodePoolSummaryItem = React.memo((props: Props) => {
5348

5449
const { isLkeEnterprisePostLAFeatureEnabled } = useIsLkeEnterpriseEnabled();
5550

56-
const { control } = useFormContext<CreateClusterFormValues>();
57-
const nodePoolsWatcher = useWatch({
58-
control,
59-
name: 'nodePools',
60-
});
61-
const thisPool = nodePoolsWatcher[poolIndex];
62-
6351
// This should never happen but TS wants us to account for the situation
6452
// where we fail to match a selected type against our types list.
6553
if (poolType === null) {
@@ -78,13 +66,6 @@ export const NodePoolSummaryItem = React.memo((props: Props) => {
7866
{pluralize('CPU', 'CPUs', poolType.vcpus)}, {poolType.disk / 1024}{' '}
7967
GB Storage
8068
</Typography>
81-
<Typography>
82-
{isLkeEnterprisePostLAFeatureEnabled && thisPool
83-
? UPDATE_STRATEGY_OPTIONS.find(
84-
(option) => option.value === thisPool?.update_strategy
85-
)?.label
86-
: ''}
87-
</Typography>
8869
</Stack>
8970
<IconButton
9071
data-testid="remove-pool-button"

0 commit comments

Comments
 (0)