Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #6891
Browse files Browse the repository at this point in the history
Elad Ben-Israel authored Apr 30, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 80b33e2 commit f616a2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-eks/lib/cluster.ts
Original file line number Diff line number Diff line change
@@ -959,9 +959,9 @@ export class EksOptimizedImage implements ec2.IMachineImage {
/**
* Constructs a new instance of the EcsOptimizedAmi class.
*/
public constructor(props: EksOptimizedImageProps) {
this.nodeType = props && props.nodeType;
this.kubernetesVersion = props && props.kubernetesVersion || LATEST_KUBERNETES_VERSION;
public constructor(props: EksOptimizedImageProps = { }) {
this.nodeType = props.nodeType ?? NodeType.STANDARD;
this.kubernetesVersion = props.kubernetesVersion ?? LATEST_KUBERNETES_VERSION;

// set the SSM parameter name
this.amiParameterName = `/aws/service/eks/optimized-ami/${this.kubernetesVersion}/`

0 comments on commit f616a2e

Please sign in to comment.