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

add node_repair_config to aws_eks_node_group #40698

Merged

Conversation

hjoshi123
Copy link
Contributor

@hjoshi123 hjoshi123 commented Dec 26, 2024

Description

This PR introduces node_repair_config to aws_eks_node_group resource which was introduced recently in the EKS CreateNodeGroup API. As part of this PR create, update and read have been update along with a new acceptance test to account for the option.

Relations

Closes #40641

References

Output from Acceptance Testing

%  make testacc TESTS=TestAccEKSNodeGroup_RepairConfig PKG=eks
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/eks/... -v -count 1 -parallel 20 -run='TestAccEKSNodeGroup_nodeRepairConfig'  -timeout 360m
2024/12/26 08:21:22 Initializing Terraform AWS Provider...
=== RUN   TestAccEKSNodeGroup_nodeRepairConfig
=== PAUSE TestAccEKSNodeGroup_nodeRepairConfig
=== CONT  TestAccEKSNodeGroup_nodeRepairConfig
--- PASS: TestAccEKSNodeGroup_nodeRepairConfig (1018.00s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/eks	1022.770s
...

@hjoshi123 hjoshi123 requested a review from a team as a code owner December 26, 2024 08:34
Copy link

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/eks Issues and PRs that pertain to the eks service. needs-triage Waiting for first response or review from a maintainer. labels Dec 26, 2024
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 @hjoshi123 👋

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 CONTRIBUTOR 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 added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 26, 2024
@ewbankkit ewbankkit self-assigned this Dec 26, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Dec 26, 2024
@hjoshi123
Copy link
Contributor Author

@ewbankkit I am running the acceptance tests in my local.. will update the comment once it runs

@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Dec 26, 2024
@hjoshi123
Copy link
Contributor Author

Added the acceptance test passing

ewbankkit
ewbankkit previously approved these changes Dec 26, 2024
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 🚀.

% make testacc TESTARGS='-run=TestAccEKSNodeGroup_' PKG=eks ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/eks/... -v -count 1 -parallel 4  -run=TestAccEKSNodeGroup_ -timeout 360m
2024/12/26 08:36:44 Initializing Terraform AWS Provider...
=== RUN   TestAccEKSNodeGroup_basic
=== PAUSE TestAccEKSNodeGroup_basic
=== RUN   TestAccEKSNodeGroup_Name_generated
=== PAUSE TestAccEKSNodeGroup_Name_generated
=== RUN   TestAccEKSNodeGroup_namePrefix
=== PAUSE TestAccEKSNodeGroup_namePrefix
=== RUN   TestAccEKSNodeGroup_disappears
=== PAUSE TestAccEKSNodeGroup_disappears
=== RUN   TestAccEKSNodeGroup_amiType
=== PAUSE TestAccEKSNodeGroup_amiType
=== RUN   TestAccEKSNodeGroup_CapacityType_spot
=== PAUSE TestAccEKSNodeGroup_CapacityType_spot
=== RUN   TestAccEKSNodeGroup_diskSize
=== PAUSE TestAccEKSNodeGroup_diskSize
=== RUN   TestAccEKSNodeGroup_forceUpdateVersion
=== PAUSE TestAccEKSNodeGroup_forceUpdateVersion
=== RUN   TestAccEKSNodeGroup_InstanceTypes_multiple
=== PAUSE TestAccEKSNodeGroup_InstanceTypes_multiple
=== RUN   TestAccEKSNodeGroup_InstanceTypes_single
=== PAUSE TestAccEKSNodeGroup_InstanceTypes_single
=== RUN   TestAccEKSNodeGroup_labels
=== PAUSE TestAccEKSNodeGroup_labels
=== RUN   TestAccEKSNodeGroup_LaunchTemplate_id
=== PAUSE TestAccEKSNodeGroup_LaunchTemplate_id
=== RUN   TestAccEKSNodeGroup_LaunchTemplate_name
=== PAUSE TestAccEKSNodeGroup_LaunchTemplate_name
=== RUN   TestAccEKSNodeGroup_LaunchTemplate_version
=== PAUSE TestAccEKSNodeGroup_LaunchTemplate_version
=== RUN   TestAccEKSNodeGroup_nodeRepairConfig
=== PAUSE TestAccEKSNodeGroup_nodeRepairConfig
=== RUN   TestAccEKSNodeGroup_releaseVersion
=== PAUSE TestAccEKSNodeGroup_releaseVersion
=== RUN   TestAccEKSNodeGroup_RemoteAccess_ec2SSHKey
=== PAUSE TestAccEKSNodeGroup_RemoteAccess_ec2SSHKey
=== RUN   TestAccEKSNodeGroup_RemoteAccess_sourceSecurityGroupIDs
=== PAUSE TestAccEKSNodeGroup_RemoteAccess_sourceSecurityGroupIDs
=== RUN   TestAccEKSNodeGroup_Scaling_desiredSize
=== PAUSE TestAccEKSNodeGroup_Scaling_desiredSize
=== RUN   TestAccEKSNodeGroup_Scaling_maxSize
=== PAUSE TestAccEKSNodeGroup_Scaling_maxSize
=== RUN   TestAccEKSNodeGroup_Scaling_minSize
=== PAUSE TestAccEKSNodeGroup_Scaling_minSize
=== RUN   TestAccEKSNodeGroup_ScalingZeroDesiredSize_minSize
=== PAUSE TestAccEKSNodeGroup_ScalingZeroDesiredSize_minSize
=== RUN   TestAccEKSNodeGroup_tags
=== PAUSE TestAccEKSNodeGroup_tags
=== RUN   TestAccEKSNodeGroup_taints
=== PAUSE TestAccEKSNodeGroup_taints
=== RUN   TestAccEKSNodeGroup_update
=== PAUSE TestAccEKSNodeGroup_update
=== RUN   TestAccEKSNodeGroup_version
=== PAUSE TestAccEKSNodeGroup_version
=== CONT  TestAccEKSNodeGroup_basic
=== CONT  TestAccEKSNodeGroup_LaunchTemplate_version
=== CONT  TestAccEKSNodeGroup_forceUpdateVersion
=== CONT  TestAccEKSNodeGroup_LaunchTemplate_name
--- PASS: TestAccEKSNodeGroup_basic (1225.11s)
=== CONT  TestAccEKSNodeGroup_LaunchTemplate_id
--- PASS: TestAccEKSNodeGroup_LaunchTemplate_version (1499.99s)
=== CONT  TestAccEKSNodeGroup_labels
--- PASS: TestAccEKSNodeGroup_LaunchTemplate_name (1504.65s)
=== CONT  TestAccEKSNodeGroup_InstanceTypes_single
--- PASS: TestAccEKSNodeGroup_forceUpdateVersion (1895.12s)
=== CONT  TestAccEKSNodeGroup_InstanceTypes_multiple
--- PASS: TestAccEKSNodeGroup_InstanceTypes_single (1106.04s)
=== CONT  TestAccEKSNodeGroup_amiType
--- PASS: TestAccEKSNodeGroup_labels (1114.11s)
=== CONT  TestAccEKSNodeGroup_diskSize
--- PASS: TestAccEKSNodeGroup_LaunchTemplate_id (1796.41s)
=== CONT  TestAccEKSNodeGroup_Scaling_minSize
--- PASS: TestAccEKSNodeGroup_InstanceTypes_multiple (1098.36s)
=== CONT  TestAccEKSNodeGroup_CapacityType_spot
--- PASS: TestAccEKSNodeGroup_diskSize (1233.28s)
=== CONT  TestAccEKSNodeGroup_version
--- PASS: TestAccEKSNodeGroup_Scaling_minSize (1143.58s)
=== CONT  TestAccEKSNodeGroup_taints
--- PASS: TestAccEKSNodeGroup_CapacityType_spot (1309.07s)
=== CONT  TestAccEKSNodeGroup_tags
--- PASS: TestAccEKSNodeGroup_taints (933.49s)
=== CONT  TestAccEKSNodeGroup_update
--- PASS: TestAccEKSNodeGroup_amiType (1249.75s)
=== CONT  TestAccEKSNodeGroup_ScalingZeroDesiredSize_minSize
--- PASS: TestAccEKSNodeGroup_tags (1322.67s)
=== CONT  TestAccEKSNodeGroup_RemoteAccess_sourceSecurityGroupIDs
--- PASS: TestAccEKSNodeGroup_update (1260.35s)
=== CONT  TestAccEKSNodeGroup_releaseVersion
--- PASS: TestAccEKSNodeGroup_ScalingZeroDesiredSize_minSize (930.51s)
=== CONT  TestAccEKSNodeGroup_Scaling_maxSize
--- PASS: TestAccEKSNodeGroup_version (2535.18s)
=== CONT  TestAccEKSNodeGroup_RemoteAccess_ec2SSHKey
--- PASS: TestAccEKSNodeGroup_RemoteAccess_sourceSecurityGroupIDs (1266.83s)
=== CONT  TestAccEKSNodeGroup_Scaling_desiredSize
--- PASS: TestAccEKSNodeGroup_RemoteAccess_ec2SSHKey (993.01s)
=== CONT  TestAccEKSNodeGroup_nodeRepairConfig
--- PASS: TestAccEKSNodeGroup_Scaling_maxSize (1304.63s)
=== CONT  TestAccEKSNodeGroup_namePrefix
--- PASS: TestAccEKSNodeGroup_Scaling_desiredSize (1022.75s)
=== CONT  TestAccEKSNodeGroup_disappears
--- PASS: TestAccEKSNodeGroup_releaseVersion (1987.35s)
=== CONT  TestAccEKSNodeGroup_Name_generated
--- PASS: TestAccEKSNodeGroup_namePrefix (485.11s)
--- PASS: TestAccEKSNodeGroup_nodeRepairConfig (709.72s)
--- PASS: TestAccEKSNodeGroup_disappears (425.93s)
--- PASS: TestAccEKSNodeGroup_Name_generated (560.43s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/eks	8606.553s

nam054
nam054 previously approved these changes Dec 26, 2024
Copy link
Contributor

@nam054 nam054 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@ewbankkit
Copy link
Contributor

@hjoshi123 Thanks for the contribution 🎉 👏.

@hjoshi123
Copy link
Contributor Author

@ewbankkit thank you for pushing necessary changes and making the PR more cleaner.. will keep a note and make my next contribution better

@ewbankkit ewbankkit dismissed stale reviews from nam054 and themself via eba80ff December 27, 2024 13:02
Copy link
Contributor

@nam054 nam054 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@ewbankkit ewbankkit merged commit 4dc4a3b into hashicorp:main Dec 27, 2024
41 checks passed
@github-actions github-actions bot added this to the v5.83.0 milestone Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/eks Issues and PRs that pertain to the eks service. 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.

[Enhancement]: support EKS node auto repair config on aws_eks_node_group
3 participants