diff --git a/packages/manager/src/features/NodeBalancers/constants.ts b/packages/manager/src/features/NodeBalancers/constants.ts index 9c5d5e05787..80f45922cdf 100644 --- a/packages/manager/src/features/NodeBalancers/constants.ts +++ b/packages/manager/src/features/NodeBalancers/constants.ts @@ -1,14 +1,10 @@ -const ROUND_ROBIN_ALGORITHM_HELPER_TEXT = - 'Round robin distributes connection requests to backend servers in weighted circular order.'; +import type { Algorithm } from '@linode/api-v4'; -const LEAST_CONNECTIONS_ALGORITHM_HELPER_TEXT = - 'Least connections assigns connections to the backend with the least connections.'; - -const SOURCE_ALGORITHM_HELPER_TEXT = "Source uses the client's IPv4 address."; - -export const ALGORITHM_HELPER_TEXT = { - leastconn: LEAST_CONNECTIONS_ALGORITHM_HELPER_TEXT, +export const ALGORITHM_HELPER_TEXT: Record = { + leastconn: + 'Least connections assigns connections to the backend with the least connections.', ring_hash: '', // @todo M3-9019 - Add copy as part of UDP NodeBalancer project - roundrobin: ROUND_ROBIN_ALGORITHM_HELPER_TEXT, - source: SOURCE_ALGORITHM_HELPER_TEXT, + roundrobin: + 'Round robin distributes connection requests to backend servers in weighted circular order.', + source: "Source uses the client's IPv4 address.", };