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: Add autoscaling_group_tags variable to self-managed-node-groups #2084

Merged

Conversation

gferon
Copy link
Contributor

@gferon gferon commented May 20, 2022

Description

cluster-autoscaler discovers ASGs using tags, which could currently only be set by setting tags on all resources. This helps setting tags like k8s.io/cluster-autoscaler/enabled on the aws_autoscaling_group resources only.

Motivation and Context

Fixes #2072

Breaking Changes

None

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Gabriel Féron added 2 commits May 20, 2022 14:24
The cluster-autoscaler discovers ASGs using those tags, which could currently only be set by setting tags on all resources.
@gferon gferon changed the title Add autoscaling_group_tags variable to self-managed-node-group module feat: Add autoscaling_group_tags variable to self-managed-node-group module May 20, 2022
@bryantbiggs
Copy link
Member

Thanks for the PR @gferon - lets add an entry in node_groups.tf for this below the default tags https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/node_groups.tf#L391 as well

@gferon
Copy link
Contributor Author

gferon commented May 23, 2022

Thanks for the PR @gferon - lets add an entry in node_groups.tf for this below the default tags https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/node_groups.tf#L391 as well

Indeed, I forgot to push my last commit.

# enable discovery of autoscaling groups by cluster-autoscaler
autoscaling_group_tags = {
"k8s.io/cluster-autoscaler/enabled" : true,
"k8s.io/cluster-autoscaler/${local.name}" : true,

Choose a reason for hiding this comment

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

chore: Update variable description to be clear on tag propagation
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @gferon !

@bryantbiggs bryantbiggs changed the title feat: Add autoscaling_group_tags variable to self-managed-node-group module feat: Add autoscaling_group_tags variable to self-managed-node-groups Jun 2, 2022
@bryantbiggs bryantbiggs merged commit 8584dcb into terraform-aws-modules:master Jun 2, 2022
antonbabenko pushed a commit that referenced this pull request Jun 2, 2022
## [18.23.0](v18.22.0...v18.23.0) (2022-06-02)

### Features

* Add `autoscaling_group_tags` variable to self-managed-node-groups ([#2084](#2084)) ([8584dcb](8584dcb))
@antonbabenko
Copy link
Member

This PR is included in version 18.23.0 🎉

spr-mweber3 pushed a commit to spring-media/terraform-aws-eks that referenced this pull request Jun 7, 2022
spr-mweber3 pushed a commit to spring-media/terraform-aws-eks that referenced this pull request Jun 7, 2022
baibailiha added a commit to baibailiha/terraform-aws-eks that referenced this pull request Sep 13, 2022
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

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 8, 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.

Support for autoscaling_group_tags in self-managed-node-group module
4 participants