Skip to content

fix(aws-eks): Allow desiredsize minsize and maxsize to accept CfnParameters.#15487

Merged
mergify[bot] merged 3 commits intoaws:masterfrom
hemandee:master
Jul 30, 2021
Merged

fix(aws-eks): Allow desiredsize minsize and maxsize to accept CfnParameters.#15487
mergify[bot] merged 3 commits intoaws:masterfrom
hemandee:master

Conversation

@hemandee
Copy link
Copy Markdown
Contributor


Added logic similar to AutoscalngGroup module to allow EKS NodeGroups to accept CfnParameters for desiredsize minsize and maxsize as CfnParameter.valueAsNumber.

Helps with issue #15485
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 10, 2021

@peterwoodworth peterwoodworth added the @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service label Jul 20, 2021
cluster: cluster,
minSize: cdk.Lazy.number({ produce: () => 2 }),
maxSize: cdk.Lazy.number({ produce: () => 6 }),
desiredSize: cdk.Lazy.number({ produce: () => 4 }),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the desired size is within the [min, max] bound, we can't really tell from this test that validation is not being performed. For all we know, it might have been performed and passed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, got it, updated to show:

      minSize: cdk.Lazy.number({ produce: () => 5 }),
      maxSize: cdk.Lazy.number({ produce: () => 1 }),
      desiredSize: cdk.Lazy.number({ produce: () => 20 }),

otaviomacedo
otaviomacedo previously approved these changes Jul 30, 2021
Copy link
Copy Markdown
Contributor

@otaviomacedo otaviomacedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@mergify mergify bot dismissed otaviomacedo’s stale review July 30, 2021 07:42

Pull request has been modified.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 30, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: a17773d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit fb43769 into aws:master Jul 30, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 30, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Aug 3, 2021
…meters. (aws#15487)

----
Added logic similar to AutoscalngGroup    module to allow EKS NodeGroups to accept CfnParameters for desiredsize minsize and maxsize as CfnParameter.valueAsNumber. 

Helps with issue aws#15485
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…meters. (aws#15487)

----
Added logic similar to AutoscalngGroup    module to allow EKS NodeGroups to accept CfnParameters for desiredsize minsize and maxsize as CfnParameter.valueAsNumber. 

Helps with issue aws#15485
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants