fix: Allow instance Name tag to be overwritten#1538
Conversation
Allow instance `Name` tag to be overwritten by the user-defined node-group variable `additional_tags`.
daroga0002
left a comment
There was a problem hiding this comment.
@aidan-mundy very smart solution 🥇
|
@bryantbiggs @barryib This is going to be a breaking change and users expect this feature to be in a major release, right? I will mark it with the @barryib What do you normally do with this kind of change? |
|
Why this will be breaking change? I dont think it will change anything as terraform-aws-eks/variables.tf Lines 322 to 326 in 3b12298 var.tags is also empty: In worst case change with will be done is overwrite To summarise I think this can be safely merged |
|
@daroga0002 I think you are right. This change is definitely a PS: I will merge it tomorrow morning if other guys don't have anything against it. |
|
Is this (v17.18.0) only for launch_template? Instances generated by node_groups still have no |
|
this is for node groups which are creating AMI launch template when you have |
|
@goetzc As far as I know, |
|
Folks, it's a nice idea, but what about worker groups? Should we provide the same option to define custom names to instances for worker groups as well? There is quite a different approach, but it's hardcoded to the exact pattern without the option to redefine. |
|
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. |
PR o'clock
Description
Allow instance
Nametag to be overwritten by the user-defined node-group variableadditional_tags. Without this PR, it is impossible to define custom names for instances created as part of a managed node group while using a generated launch template. It was possible to affect the name of the instance by setting a different name for the node-group, but there does not appear to be a technical reason for this to be mandated.Checklist