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

feat: Supporting update_config in EKS managed node groups #1560

Merged
merged 6 commits into from
Sep 3, 2021

Conversation

marianobilli
Copy link
Contributor

@marianobilli marianobilli commented Sep 1, 2021

PR o'clock

Fixes #1554

Description

Adding functionality proposed in Supporting update_config in EKS managed node groups

Checklist

@marianobilli marianobilli changed the title Supporting update_config in EKS managed node groups #1554 feat: Supporting update_config in EKS managed node groups #1554 Sep 1, 2021
@marianobilli marianobilli changed the title feat: Supporting update_config in EKS managed node groups #1554 feat: Supporting update_config in EKS managed node groups (#1554) Sep 1, 2021
@marianobilli marianobilli changed the title feat: Supporting update_config in EKS managed node groups (#1554) feat: Supporting update_config in EKS managed node groups Sep 1, 2021
Copy link
Member

@antonbabenko antonbabenko 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, but minor things are left.

modules/node_groups/node_groups.tf Show resolved Hide resolved
@@ -95,6 +95,8 @@ module "eks" {
effect = "NO_SCHEDULE"
}
]
max_unavailable_type = "percent"
max_unavailable = 50
Copy link
Member

Choose a reason for hiding this comment

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

Make sure to run pre-commit run -a to fix formatting and documentation.

…aws-modules#1554)

Setting default as max_unavailable=1, same as default for the tf aws_eks_node_group resource.

Using a 2 level map in order to be able to set node_group_defaults and be able to overwrite with node_group specific config
@marianobilli
Copy link
Contributor Author

@antonbabenko regarding the conflict due to the version change by pre-commit you will be resolving them right?

@antonbabenko
Copy link
Member

antonbabenko commented Sep 2, 2021

Yes, I will fix that later tonight or tomorrow during week-ends.

@antonbabenko antonbabenko merged commit f23f729 into terraform-aws-modules:master Sep 3, 2021
@antonbabenko
Copy link
Member

Thanks, @marianobilli for the PR. I have simplified code a bit and verified it locally.

v17.10.0 has been just released.

@marianobilli
Copy link
Contributor Author

Thanks, @marianobilli for the PR. I have simplified code a bit and verified it locally.

v17.10.0 has been just released.

Thank you @antonbabenko ! I was not sure about using lookup() vs try(), and also i didnt know i could put two tries inside the same try() function. So I learnt something new. Thanks again!

@antonbabenko
Copy link
Member

Since we agreed to increase the minimum supported version of Terraform to 0.13 across all terraform-aws-modules, we can use try() and depends_on in modules (sometimes helpful in examples). It is a bit more elegant than lookup() in most places.

@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 Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supporting update_config in EKS managed node groups
3 participants