Skip to content

Commit 7801428

Browse files
authored
Merge pull request #309 from sunkavar/downgrade-to-eksv1.31
Downgrade EKS version to 1.31 to support adot addon installation
2 parents 2fc64bf + 3ab7130 commit 7801428

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

PetAdoptions/cdk/pet_stack/lib/applications.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { readFileSync } from 'fs';
99
import { Construct } from 'constructs'
1010
import { ContainerImageBuilderProps, ContainerImageBuilder } from './common/container-image-builder'
1111
import { PetAdoptionsHistory } from './applications/pet-adoptions-history-application'
12-
import { KubectlV32Layer } from '@aws-cdk/lambda-layer-kubectl-v32';
12+
import { KubectlV31Layer } from '@aws-cdk/lambda-layer-kubectl-v31';
1313

1414
export class Applications extends Stack {
1515
constructor(scope: Construct, id: string, props?: StackProps) {
@@ -26,7 +26,7 @@ export class Applications extends Stack {
2626

2727
const cluster = eks.Cluster.fromClusterAttributes(this, 'MyCluster', {
2828
clusterName: 'PetSite',
29-
kubectlLayer: new KubectlV32Layer(this, 'kubectl'),
29+
kubectlLayer: new KubectlV31Layer(this, 'kubectl'),
3030
kubectlRoleArn: roleArn,
3131
});
3232
// ClusterID is not available for creating the proper conditions https://github.com/aws/aws-cdk/issues/10347

PetAdoptions/cdk/pet_stack/lib/services.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { CfnJson, RemovalPolicy, Fn, Duration, Stack, StackProps, CfnOutput } fr
3131
import { readFileSync } from 'fs';
3232
import 'ts-replace-all'
3333
import { TreatMissingData, ComparisonOperator } from 'aws-cdk-lib/aws-cloudwatch';
34-
import { KubectlV32Layer } from '@aws-cdk/lambda-layer-kubectl-v32';
34+
import { KubectlV31Layer } from '@aws-cdk/lambda-layer-kubectl-v31';
3535

3636
export class Services extends Stack {
3737
constructor(scope: Construct, id: string, props?: StackProps) {
@@ -344,8 +344,8 @@ export class Services extends Stack {
344344
defaultCapacity: 2,
345345
defaultCapacityInstance: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MEDIUM),
346346
secretsEncryptionKey: secretsKey,
347-
version: eks.KubernetesVersion.V1_32,
348-
kubectlLayer: new KubectlV32Layer(this, 'kubectl'),
347+
version: eks.KubernetesVersion.V1_31,
348+
kubectlLayer: new KubectlV31Layer(this, 'kubectl'),
349349
authenticationMode: eks.AuthenticationMode.API_AND_CONFIG_MAP,
350350
});
351351

PetAdoptions/cdk/pet_stack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@aws-cdk/aws-lambda-python-alpha": "^2.179.0-alpha.0",
16-
"@aws-cdk/lambda-layer-kubectl-v32": "^2.0.3",
16+
"@aws-cdk/lambda-layer-kubectl-v31": "^2.0.3",
1717
"@types/js-yaml": "^4.0.9",
1818
"aws-cdk-lib": "^2.179.0",
1919
"cdk-ecr-deployment": "^3.1.9",
@@ -32,4 +32,4 @@
3232
"ts-replace-all": "^1.0.0",
3333
"typescript": "^5.7.3"
3434
}
35-
}
35+
}

0 commit comments

Comments
 (0)