Skip to content

Commit

Permalink
fix(cli): remove deprecated validation around ARM build image types
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterEckIII committed Jul 17, 2024
1 parent ffd9d9c commit 223785f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/aws-cdk-lib/aws-codebuild/lib/linux-arm-build-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,6 @@ export class LinuxArmBuildImage implements IBuildImage {
this.repository = props.repository;
}

/**
* Validates by checking the BuildEnvironment computeType as aarch64 images only support ComputeType.SMALL and
* ComputeType.LARGE
* @param buildEnvironment BuildEnvironment
*/
public validate(buildEnvironment: BuildEnvironment): string[] {
const ret = [];
if (buildEnvironment.computeType &&
buildEnvironment.computeType !== ComputeType.SMALL &&
buildEnvironment.computeType !== ComputeType.LARGE) {
ret.push(`ARM images only support ComputeTypes '${ComputeType.SMALL}' and '${ComputeType.LARGE}' - ` +
`'${buildEnvironment.computeType}' was given`);
}
return ret;
}

public runScriptBuildspec(entrypoint: string): BuildSpec {
return runScriptLinuxBuildSpec(entrypoint);
}
Expand Down

0 comments on commit 223785f

Please sign in to comment.