Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EKS node group scaling_config.min_size can be 0 as well as desired #19810

Merged

Conversation

MRostanski
Copy link
Contributor

As aws/containers-roadmap#724 (comment)

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #13984

resource/aws_eks_node_group: Allow for 0 min_size and desired_size for scaling config of a node group.

@github-actions github-actions bot added service/eks Issues and PRs that pertain to the eks service. needs-triage Waiting for first response or review from a maintainer. size/XS Managed by automation to categorize the size of a PR. labels Jun 15, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @MRostanski 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Jun 16, 2021
@ewbankkit
Copy link
Contributor

API Reference.

…min_size'.

Acceptance test output:

% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize -timeout 180m
=== RUN   TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize
=== PAUSE TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize
=== CONT  TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize (1044.31s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1047.577s
@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. and removed size/XS Managed by automation to categorize the size of a PR. labels Jun 17, 2021
@ewbankkit
Copy link
Contributor

@MRostanski Thanks for the contribution 🎉 👏.
I pushed a CHANGELOG entry file and added an acceptance test.

Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEksNodeGroup_'                                      
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEksNodeGroup_ -timeout 180m
=== RUN   TestAccAWSEksNodeGroup_basic
=== PAUSE TestAccAWSEksNodeGroup_basic
=== RUN   TestAccAWSEksNodeGroup_Name_Generated
=== PAUSE TestAccAWSEksNodeGroup_Name_Generated
=== RUN   TestAccAWSEksNodeGroup_NamePrefix
=== PAUSE TestAccAWSEksNodeGroup_NamePrefix
=== RUN   TestAccAWSEksNodeGroup_disappears
=== PAUSE TestAccAWSEksNodeGroup_disappears
=== RUN   TestAccAWSEksNodeGroup_AmiType
=== PAUSE TestAccAWSEksNodeGroup_AmiType
=== RUN   TestAccAWSEksNodeGroup_CapacityType_Spot
=== PAUSE TestAccAWSEksNodeGroup_CapacityType_Spot
=== RUN   TestAccAWSEksNodeGroup_DiskSize
=== PAUSE TestAccAWSEksNodeGroup_DiskSize
=== RUN   TestAccAWSEksNodeGroup_ForceUpdateVersion
=== PAUSE TestAccAWSEksNodeGroup_ForceUpdateVersion
=== RUN   TestAccAWSEksNodeGroup_InstanceTypes_Multiple
=== PAUSE TestAccAWSEksNodeGroup_InstanceTypes_Multiple
=== RUN   TestAccAWSEksNodeGroup_InstanceTypes_Single
=== PAUSE TestAccAWSEksNodeGroup_InstanceTypes_Single
=== RUN   TestAccAWSEksNodeGroup_Labels
=== PAUSE TestAccAWSEksNodeGroup_Labels
=== RUN   TestAccAWSEksNodeGroup_LaunchTemplate_Id
=== PAUSE TestAccAWSEksNodeGroup_LaunchTemplate_Id
=== RUN   TestAccAWSEksNodeGroup_LaunchTemplate_Name
=== PAUSE TestAccAWSEksNodeGroup_LaunchTemplate_Name
=== RUN   TestAccAWSEksNodeGroup_LaunchTemplate_Version
=== PAUSE TestAccAWSEksNodeGroup_LaunchTemplate_Version
=== RUN   TestAccAWSEksNodeGroup_ReleaseVersion
=== PAUSE TestAccAWSEksNodeGroup_ReleaseVersion
=== RUN   TestAccAWSEksNodeGroup_RemoteAccess_Ec2SshKey
=== PAUSE TestAccAWSEksNodeGroup_RemoteAccess_Ec2SshKey
=== RUN   TestAccAWSEksNodeGroup_RemoteAccess_SourceSecurityGroupIds
=== PAUSE TestAccAWSEksNodeGroup_RemoteAccess_SourceSecurityGroupIds
=== RUN   TestAccAWSEksNodeGroup_ScalingConfig_DesiredSize
=== PAUSE TestAccAWSEksNodeGroup_ScalingConfig_DesiredSize
=== RUN   TestAccAWSEksNodeGroup_ScalingConfig_MaxSize
=== PAUSE TestAccAWSEksNodeGroup_ScalingConfig_MaxSize
=== RUN   TestAccAWSEksNodeGroup_ScalingConfig_MinSize
=== PAUSE TestAccAWSEksNodeGroup_ScalingConfig_MinSize
=== RUN   TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize
=== PAUSE TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize
=== RUN   TestAccAWSEksNodeGroup_Tags
=== PAUSE TestAccAWSEksNodeGroup_Tags
=== RUN   TestAccAWSEksNodeGroup_Taints
=== PAUSE TestAccAWSEksNodeGroup_Taints
=== RUN   TestAccAWSEksNodeGroup_Version
=== PAUSE TestAccAWSEksNodeGroup_Version
=== CONT  TestAccAWSEksNodeGroup_basic
=== CONT  TestAccAWSEksNodeGroup_LaunchTemplate_Version
=== CONT  TestAccAWSEksNodeGroup_Version
=== CONT  TestAccAWSEksNodeGroup_ReleaseVersion
=== CONT  TestAccAWSEksNodeGroup_ScalingConfig_DesiredSize
=== CONT  TestAccAWSEksNodeGroup_ForceUpdateVersion
=== CONT  TestAccAWSEksNodeGroup_LaunchTemplate_Name
=== CONT  TestAccAWSEksNodeGroup_LaunchTemplate_Id
=== CONT  TestAccAWSEksNodeGroup_Labels
=== CONT  TestAccAWSEksNodeGroup_InstanceTypes_Single
=== CONT  TestAccAWSEksNodeGroup_InstanceTypes_Multiple
=== CONT  TestAccAWSEksNodeGroup_NamePrefix
=== CONT  TestAccAWSEksNodeGroup_ScalingConfig_MinSize
=== CONT  TestAccAWSEksNodeGroup_disappears
=== CONT  TestAccAWSEksNodeGroup_AmiType
=== CONT  TestAccAWSEksNodeGroup_DiskSize
=== CONT  TestAccAWSEksNodeGroup_ScalingConfig_MaxSize
=== CONT  TestAccAWSEksNodeGroup_CapacityType_Spot
=== CONT  TestAccAWSEksNodeGroup_RemoteAccess_Ec2SshKey
=== CONT  TestAccAWSEksNodeGroup_Name_Generated
=== CONT  TestAccAWSEksNodeGroup_Version
--- PASS: TestAccAWSEksNodeGroup_Version (3788.64s)
=== CONT  TestAccAWSEksNodeGroup_Tags
=== CONT  TestAccAWSEksNodeGroup_ForceUpdateVersion
--- PASS: TestAccAWSEksNodeGroup_ForceUpdateVersion (3851.48s)
=== CONT  TestAccAWSEksNodeGroup_RemoteAccess_SourceSecurityGroupIds
--- PASS: TestAccAWSEksNodeGroup_InstanceTypes_Multiple (1026.53s)
=== CONT  TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize
--- PASS: TestAccAWSEksNodeGroup_RemoteAccess_Ec2SshKey (1069.54s)
=== CONT  TestAccAWSEksNodeGroup_Taints
--- PASS: TestAccAWSEksNodeGroup_InstanceTypes_Single (1073.42s)
--- PASS: TestAccAWSEksNodeGroup_Name_Generated (1078.76s)
--- PASS: TestAccAWSEksNodeGroup_basic (1086.98s)
--- PASS: TestAccAWSEksNodeGroup_disappears (1091.57s)
--- PASS: TestAccAWSEksNodeGroup_CapacityType_Spot (1097.75s)
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_DesiredSize (1111.68s)
--- PASS: TestAccAWSEksNodeGroup_Tags (1060.49s)
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_MinSize (1136.55s)
--- PASS: TestAccAWSEksNodeGroup_NamePrefix (1216.80s)
--- PASS: TestAccAWSEksNodeGroup_DiskSize (1227.80s)
--- PASS: TestAccAWSEksNodeGroup_RemoteAccess_SourceSecurityGroupIds (1053.41s)
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_MaxSize (1242.50s)
--- PASS: TestAccAWSEksNodeGroup_Labels (1269.00s)
--- PASS: TestAccAWSEksNodeGroup_LaunchTemplate_Id (1411.06s)
--- PASS: TestAccAWSEksNodeGroup_AmiType (1447.82s)
--- PASS: TestAccAWSEksNodeGroup_LaunchTemplate_Name (1478.13s)
--- PASS: TestAccAWSEksNodeGroup_LaunchTemplate_Version (2138.93s)
--- PASS: TestAccAWSEksNodeGroup_Taints (1092.71s)
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize (1205.66s)
--- PASS: TestAccAWSEksNodeGroup_ReleaseVersion (3749.98s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3855.073s
GovCloud
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_Zero_DesiredSize_MinSize (799.89s)
--- PASS: TestAccAWSEksNodeGroup_InstanceTypes_Multiple (1027.95s)
--- FAIL: TestAccAWSEksNodeGroup_LaunchTemplate_Version (1047.20s)
--- PASS: TestAccAWSEksNodeGroup_InstanceTypes_Single (1059.16s)
--- PASS: TestAccAWSEksNodeGroup_CapacityType_Spot (1007.91s)
--- FAIL: TestAccAWSEksNodeGroup_ScalingConfig_MaxSize (1089.03s)
--- PASS: TestAccAWSEksNodeGroup_RemoteAccess_SourceSecurityGroupIds (1090.82s)
--- SKIP: TestAccAWSEksNodeGroup_AmiType (1092.48s)
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_MinSize (1094.83s)
--- PASS: TestAccAWSEksNodeGroup_ScalingConfig_DesiredSize (1113.64s)
--- PASS: TestAccAWSEksNodeGroup_Tags (1119.80s)
--- PASS: TestAccAWSEksNodeGroup_Taints (1120.22s)
--- PASS: TestAccAWSEksNodeGroup_NamePrefix (1057.82s)
--- PASS: TestAccAWSEksNodeGroup_basic (1122.85s)
--- PASS: TestAccAWSEksNodeGroup_Labels (1160.89s)
--- PASS: TestAccAWSEksNodeGroup_LaunchTemplate_Id (1436.30s)
--- PASS: TestAccAWSEksNodeGroup_LaunchTemplate_Name (1489.91s)
--- PASS: TestAccAWSEksNodeGroup_disappears (939.99s)
--- PASS: TestAccAWSEksNodeGroup_Name_Generated (975.15s)
--- PASS: TestAccAWSEksNodeGroup_ReleaseVersion (3490.06s)

@ewbankkit ewbankkit merged commit 9024f57 into hashicorp:main Jun 17, 2021
@github-actions github-actions bot added this to the v3.46.0 milestone Jun 17, 2021
@github-actions
Copy link

This functionality has been released in v3.46.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/eks Issues and PRs that pertain to the eks service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants