Skip to content

Commit

Permalink
Merge pull request #1736 from aws-observability/add-eks-clusters
Browse files Browse the repository at this point in the history
add EKS 1.30 and 1.31 for testing
  • Loading branch information
roystchiang authored Jan 14, 2025
2 parents c3866db + 581979d commit ba065af
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 1 deletion.
52 changes: 52 additions & 0 deletions cdk_infra/lib/config/cluster-config/clusters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@ clusters:
- name: collector-ci-fargate-1-27
version: "1.27"
launch_type: fargate
- name: collector-ci-arm64-1-30
version: "1.30"
launch_type: ec2
instance_type: m6g.large
- name: collector-ci-amd64-1-30
version: "1.30"
launch_type: ec2
instance_type: "m5.large"
- name: collector-ci-fargate-1-30
version: "1.30"
launch_type: fargate
- name: collector-ci-arm64-1-31
version: "1.31"
launch_type: ec2
instance_type: m6g.large
- name: collector-ci-amd64-1-31
version: "1.31"
launch_type: ec2
instance_type: "m5.large"
- name: collector-ci-fargate-1-31
version: "1.31"
launch_type: fargate
# java agent test clustesr
- name: java-instrumentation-operator-ci-amd64-1-24
version: "1.24"
Expand All @@ -66,6 +88,16 @@ clusters:
launch_type: ec2
instance_type: m6g.large
cert_manager: true
- name: java-instrumentation-operator-ci-arm64-1-30
version: "1.30"
launch_type: ec2
instance_type: m6g.large
cert_manager: true
- name: java-instrumentation-operator-ci-arm64-1-31
version: "1.31"
launch_type: ec2
instance_type: m6g.large
cert_manager: true
# operator test clusters
- name: operator-ci-amd64-1-24
version: "1.24"
Expand Down Expand Up @@ -107,3 +139,23 @@ clusters:
launch_type: ec2
instance_type: m6g.large
cert_manager: true
- name: operator-ci-amd64-1-30
version: "1.30"
launch_type: ec2
instance_type: m5.large
cert_manager: true
- name: operator-ci-arm64-1-30
version: "1.30"
launch_type: ec2
instance_type: m6g.large
cert_manager: true
- name: operator-ci-amd64-1-31
version: "1.31"
launch_type: ec2
instance_type: m5.large
cert_manager: true
- name: operator-ci-arm64-1-31
version: "1.31"
launch_type: ec2
instance_type: m6g.large
cert_manager: true
6 changes: 6 additions & 0 deletions cdk_infra/lib/utils/eks/kubectlLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { KubectlV24Layer } from '@aws-cdk/lambda-layer-kubectl-v24';
import { KubectlV25Layer } from '@aws-cdk/lambda-layer-kubectl-v25';
import { KubectlV26Layer } from '@aws-cdk/lambda-layer-kubectl-v26';
import { KubectlV27Layer } from '@aws-cdk/lambda-layer-kubectl-v27';
import { KubectlV30Layer } from '@aws-cdk/lambda-layer-kubectl-v30';
import { KubectlV31Layer } from '@aws-cdk/lambda-layer-kubectl-v31';

export function GetLayer(
scope: Construct,
Expand All @@ -19,6 +21,10 @@ export function GetLayer(
return new KubectlV26Layer(scope, 'v26Layer');
case '1.27':
return new KubectlV27Layer(scope, 'v27Layer');
case '1.30':
return new KubectlV30Layer(scope, 'v30Layer');
case '1.31':
return new KubectlV31Layer(scope, 'v31Layer');
default:
throw new Error(`invalid kubernetes version: ${k8sVersion.version}`);
}
Expand Down
2 changes: 1 addition & 1 deletion cdk_infra/lib/utils/eks/validate-interface-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ec2ClusterInterface } from '../../interfaces/eks/ec2cluster-interface';
const validateSchema = require('yaml-schema-validator');

const supportedLaunchTypes = new Set(['fargate', 'ec2']);
const supportedVersions = new Set(['1.24', '1.25', '1.26', '1.27']);
const supportedVersions = new Set(['1.24', '1.25', '1.26', '1.27', '1.30', '1.31']);
const supportedCPUArchitectures = new Set(['m5', 'm6g', 't4g']);
const supportedNodeSizes = new Set([
'medium',
Expand Down
32 changes: 32 additions & 0 deletions cdk_infra/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cdk_infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"@aws-cdk/lambda-layer-kubectl-v25": "^2.0.4",
"@aws-cdk/lambda-layer-kubectl-v26": "^2.1.0",
"@aws-cdk/lambda-layer-kubectl-v27": "^2.1.0",
"@aws-cdk/lambda-layer-kubectl-v30": "^2.0.0",
"@aws-cdk/lambda-layer-kubectl-v31": "^2.0.0",
"aws-cdk-lib": "^2.174.0",
"constructs": "^10.4.2",
"js-yaml": "^4.1.0",
Expand Down
8 changes: 8 additions & 0 deletions cdk_infra/test/test_config/test_clusters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ clusters:
launch_type: ec2
instance_type: m6g.large
version: "1.27"
- name: m6g-arm64-Cluster-1-30
launch_type: ec2
instance_type: m6g.large
version: "1.30"
- name: m6g-arm64-Cluster-1-31
launch_type: ec2
instance_type: m6g.large
version: "1.31"

0 comments on commit ba065af

Please sign in to comment.