diff --git a/packages/manager/.changeset/pr-12814-removed-1757010425024.md b/packages/manager/.changeset/pr-12814-removed-1757010425024.md new file mode 100644 index 00000000000..7d5b7792823 --- /dev/null +++ b/packages/manager/.changeset/pr-12814-removed-1757010425024.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Removed +--- + +Update strategy from the Node Pool summary item in LKE checkout bar ([#12814](https://github.com/linode/manager/pull/12814)) diff --git a/packages/manager/src/features/Kubernetes/KubeCheckoutBar/NodePoolSummaryItem.tsx b/packages/manager/src/features/Kubernetes/KubeCheckoutBar/NodePoolSummaryItem.tsx index 41406e1a9df..7d9ed1f4319 100644 --- a/packages/manager/src/features/Kubernetes/KubeCheckoutBar/NodePoolSummaryItem.tsx +++ b/packages/manager/src/features/Kubernetes/KubeCheckoutBar/NodePoolSummaryItem.tsx @@ -8,7 +8,6 @@ import { } from '@linode/ui'; import { pluralize } from '@linode/utilities'; import * as React from 'react'; -import { useFormContext, useWatch } from 'react-hook-form'; import { DisplayPrice } from 'src/components/DisplayPrice'; import { EnhancedNumberInput } from 'src/components/EnhancedNumberInput/EnhancedNumberInput'; @@ -16,15 +15,11 @@ import { StyledLinkButtonBox } from 'src/components/SelectFirewallPanel/SelectFi import { MAX_NODES_PER_POOL_ENTERPRISE_TIER, MAX_NODES_PER_POOL_STANDARD_TIER, - UPDATE_STRATEGY_OPTIONS, } from 'src/features/Kubernetes/constants'; import { useIsLkeEnterpriseEnabled } from '../kubeUtils'; -import type { - CreateClusterFormValues, - NodePoolConfigDrawerHandlerParams, -} from '../CreateCluster/CreateCluster'; +import type { NodePoolConfigDrawerHandlerParams } from '../CreateCluster/CreateCluster'; import type { KubernetesTier } from '@linode/api-v4'; import type { ExtendedType } from 'src/utilities/extendType'; @@ -53,13 +48,6 @@ export const NodePoolSummaryItem = React.memo((props: Props) => { const { isLkeEnterprisePostLAFeatureEnabled } = useIsLkeEnterpriseEnabled(); - const { control } = useFormContext(); - const nodePoolsWatcher = useWatch({ - control, - name: 'nodePools', - }); - const thisPool = nodePoolsWatcher[poolIndex]; - // This should never happen but TS wants us to account for the situation // where we fail to match a selected type against our types list. if (poolType === null) { @@ -78,13 +66,6 @@ export const NodePoolSummaryItem = React.memo((props: Props) => { {pluralize('CPU', 'CPUs', poolType.vcpus)}, {poolType.disk / 1024}{' '} GB Storage - - {isLkeEnterprisePostLAFeatureEnabled && thisPool - ? UPDATE_STRATEGY_OPTIONS.find( - (option) => option.value === thisPool?.update_strategy - )?.label - : ''} -