Skip to content

Commit

Permalink
added 1.31 default version for cloudwatch addon
Browse files Browse the repository at this point in the history
  • Loading branch information
shapirov103 committed Oct 22, 2024
1 parent e940547 commit c156a54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/addons/adot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { getAdotCollectorPolicyDocument } from "./iam-policy";
import { KubernetesVersion } from "aws-cdk-lib/aws-eks";

const versionMap: Map<KubernetesVersion, string> = new Map([
// 1.31 not supported for adot as of 10/20/2024
[KubernetesVersion.V1_30, "v0.102.1-eksbuild.1"],
[KubernetesVersion.V1_29, "v0.102.1-eksbuild.1"],
[KubernetesVersion.V1_28, "v0.102.1-eksbuild.1"],
Expand Down
11 changes: 6 additions & 5 deletions lib/addons/cloud-watch-insights/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import {CoreAddOn, CoreAddOnProps} from "../core-addon";
import {ebsCollectorPolicy} from "./iam-policy";
import {KubernetesVersion} from "aws-cdk-lib/aws-eks";

// Can be easily retrived from the aws cli with:
// Can be easily retrieved from the aws cli with:
// aws eks describe-addon-versions --kubernetes-version <kubernetes-version> --addon-name amazon-cloudwatch-observability \
// --query 'addons[].addonVersions[].{Version: addonVersion, Defaultversion: compatibilities[0].defaultVersion}' --output table
const versionMap: Map<KubernetesVersion, string> = new Map([
[KubernetesVersion.V1_30, "v2.1.3-eksbuild.1"],
[KubernetesVersion.V1_29, "v2.1.3-eksbuild.1"],
[KubernetesVersion.V1_28, "v2.1.3-eksbuild.1"],
[KubernetesVersion.V1_27, "v2.1.3-eksbuild.1"]
[KubernetesVersion.V1_31, "v2.1.3-eksbuild.1"],
[KubernetesVersion.V1_30, "v2.1.3-eksbuild.1"],
[KubernetesVersion.V1_29, "v2.1.3-eksbuild.1"],
[KubernetesVersion.V1_28, "v2.1.3-eksbuild.1"],
[KubernetesVersion.V1_27, "v2.1.3-eksbuild.1"]
]);


Expand Down

0 comments on commit c156a54

Please sign in to comment.