Skip to content

Commit

Permalink
fix test with correct kubectl version
Browse files Browse the repository at this point in the history
  • Loading branch information
lmouhib committed Aug 5, 2024
1 parent 7c2a431 commit a40ef1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ import { DEFAULT_KARPENTER_VERSION } from '../../karpenter-releases';
*
* @example
* import { ManagedPolicy, PolicyDocument, PolicyStatement } from 'aws-cdk-lib/aws-iam';
* import { KubectlV27Layer } from '@aws-cdk/lambda-layer-kubectl-v27';
* import { KubectlV30Layer } from '@aws-cdk/lambda-layer-kubectl-v30';
*
* const kubectlLayer = new KubectlV27Layer(this, 'kubectlLayer');
* const kubectlLayer = new KubectlV30Layer(this, 'kubectlLayer');
*
* const emrEksCluster = dsf.processing.SparkEmrContainersRuntime.getOrCreate(this, {
* publicAccessCIDRs: ['10.0.0.0/16'],
Expand Down
4 changes: 2 additions & 2 deletions framework/test/e2e/spark-emr-containers.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @group e2e/processing/spark-emr-containers
*/

import { KubectlV27Layer } from '@aws-cdk/lambda-layer-kubectl-v27';
import { KubectlV30Layer } from '@aws-cdk/lambda-layer-kubectl-v30';
import * as cdk from 'aws-cdk-lib';
import { ManagedPolicy, PolicyDocument, PolicyStatement, Role } from 'aws-cdk-lib/aws-iam';
import { Bucket } from 'aws-cdk-lib/aws-s3';
Expand All @@ -26,7 +26,7 @@ const { stack } = testStack;

stack.node.setContext('@data-solutions-framework-on-aws/removeDataOnDestroy', true);

const kubectlLayer = new KubectlV27Layer(stack, 'kubectlLayer');
const kubectlLayer = new KubectlV30Layer(stack, 'kubectlLayer');
const eksAdminRole = Role.fromRoleArn(stack, 'EksAdminRole', `arn:aws:iam::${stack.account}:role/role-name-with-path`);

const randomName = Utils.generateUniqueHash(stack, cdk.Stack.of(stack).stackName.slice(0, 5));
Expand Down

0 comments on commit a40ef1a

Please sign in to comment.