-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eks): kubectl layer must contain AWS CLI (#22559)
The EKS Cluster construct has a property called `kubectlLayer`. When this property was not given, it would add a two default layers to the custom resource: - One with kubectl - One with the AWS CLI However, if the property was given, the one layer must contain both kubectl as well as the AWS CLI. This makes the `kubectl` layer unnecessarily large -- it must also contain the AWS CLI which the CDK already has and can bundle itself. Add a separate `awscliLayer` parameter to control the AWS CLI layer, if the user so wants. If not, the default AWS CLI layer will be added. If some user is already using a `kubectlLayer` which includes the AWS CLI, we now add both the default AWS CLI layer as well as the user's kubectl layer with the AWS CLI in it. There is no conflict: multiple layers can contain the same files. Last layer wins (which is the kubectl layer with the user's preferred AWS CLI). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
210 changed files
with
12,739 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...pshot/asset.2c98a634e36e3f2a1c1a78958953ed173e2c6cf8446c15dabbef67d4e30b33d6/cluster.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { IsCompleteResponse, OnEventResponse } from '@aws-cdk/custom-resources/lib/provider-framework/types'; | ||
import { EksClient, ResourceEvent, ResourceHandler } from './common'; | ||
export declare class ClusterResourceHandler extends ResourceHandler { | ||
get clusterName(): string; | ||
private readonly newProps; | ||
private readonly oldProps; | ||
constructor(eks: EksClient, event: ResourceEvent); | ||
protected onCreate(): Promise<OnEventResponse>; | ||
protected isCreateComplete(): Promise<IsCompleteResponse>; | ||
protected onDelete(): Promise<OnEventResponse>; | ||
protected isDeleteComplete(): Promise<IsCompleteResponse>; | ||
protected onUpdate(): Promise<OnEventResponse | { | ||
EksUpdateId: string | undefined; | ||
} | undefined>; | ||
protected isUpdateComplete(): Promise<IsCompleteResponse>; | ||
private updateClusterVersion; | ||
private isActive; | ||
private isEksUpdateComplete; | ||
private generateClusterName; | ||
} |
Oops, something went wrong.