Skip to content

Commit

Permalink
Update versions type for util - need to test
Browse files Browse the repository at this point in the history
  • Loading branch information
mjac0bs committed Dec 12, 2024
1 parent d4b9909 commit 6db07ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/manager/src/features/Kubernetes/kubeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { Account } from '@linode/api-v4/lib/account';
import type {
KubeNodePoolResponse,
KubernetesCluster,
KubernetesTieredVersion,
KubernetesVersion,
} from '@linode/api-v4/lib/kubernetes';
import type { Region } from '@linode/api-v4/lib/regions';
Expand Down Expand Up @@ -68,12 +69,11 @@ export const getDescriptionForCluster = (

export const getNextVersion = (
currentVersion: string,
versions: KubernetesVersion[]
versions: KubernetesTieredVersion[] | KubernetesVersion[] // TODO LKE-E: remove KubernetesVersion from type after GA.
) => {
if (versions.length === 0) {
return null;
}

const versionStrings = versions.map((v) => v.id).sort();
const currentIdx = versionStrings.findIndex(
(thisVersion) => currentVersion === thisVersion
Expand Down

0 comments on commit 6db07ca

Please sign in to comment.