From 72104078e3495a360c4d9aa3be445b84dce09a0b Mon Sep 17 00:00:00 2001 From: Chris Garvis Date: Tue, 18 Oct 2022 12:02:07 -0400 Subject: [PATCH] chore(eks): add k8s version 1.22, 1.23, deprecate 1.18, 1.19, 1.20 EKS supported versions: ```md * 1.23 * 1.22 * 1.21 * 1.20 ``` https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html --- packages/@aws-cdk/aws-eks/lib/cluster.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/@aws-cdk/aws-eks/lib/cluster.ts b/packages/@aws-cdk/aws-eks/lib/cluster.ts index c3a71fdb2256f..fdbc7a8ecfa6b 100644 --- a/packages/@aws-cdk/aws-eks/lib/cluster.ts +++ b/packages/@aws-cdk/aws-eks/lib/cluster.ts @@ -791,16 +791,19 @@ export class KubernetesVersion { /** * Kubernetes version 1.18 + * @deprecated Use newer version of EKS */ public static readonly V1_18 = KubernetesVersion.of('1.18'); /** * Kubernetes version 1.19 + * @deprecated Use newer version of EKS */ public static readonly V1_19 = KubernetesVersion.of('1.19'); /** * Kubernetes version 1.20 + * @deprecated Use newer version of EKS */ public static readonly V1_20 = KubernetesVersion.of('1.20'); @@ -808,6 +811,16 @@ export class KubernetesVersion { * Kubernetes version 1.21 */ public static readonly V1_21 = KubernetesVersion.of('1.21'); + + /** + * Kubernetes version 1.22 + */ + public static readonly V1_22 = KubernetesVersion.of('1.22'); + + /** + * Kubernetes version 1.23 + */ + public static readonly V1_23 = KubernetesVersion.of('1.23'); /** * Custom cluster version