Skip to content

Commit

Permalink
Merge branch 'main' into fix-s3
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 13, 2025
2 parents f4b4861 + 04811ff commit c70eda2
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 111 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-eks-v2-alpha/lib/addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface AddonProps {
*/
readonly addonName: string;
/**
* Version of the Add-On. You can check all available versions with describe-addon-versons.
* Version of the Add-On. You can check all available versions with describe-addon-versions.
* For example, this lists all available versions for the `eks-pod-identity-agent` addon:
* $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \
* --query 'addons[*].addonVersions[*].addonVersion'
Expand Down
6 changes: 5 additions & 1 deletion packages/aws-cdk-lib/core/lib/aspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export class Aspects {
* @param options Options to apply on this aspect.
*/
public add(aspect: IAspect, options?: AspectOptions) {
this._appliedAspects.push(new AspectApplication(this._scope, aspect, options?.priority ?? AspectPriority.DEFAULT));
const newApplication = new AspectApplication(this._scope, aspect, options?.priority ?? AspectPriority.DEFAULT);
if (this._appliedAspects.some(a => a.aspect === newApplication.aspect && a.priority === newApplication.priority)) {
return;
}
this._appliedAspects.push(newApplication);
}

/**
Expand Down
Loading

0 comments on commit c70eda2

Please # to comment.