mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 16:47:20 +01:00
Fix default worker autoscaling_enabled not working (#130)
This commit is contained in:
committed by
Max Williams
parent
50404a785b
commit
0448350468
@@ -15,6 +15,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
- A subtle but thoughtful change. (Boomshakalaka, @self 🏀)
|
||||
- fix default worker subnets not working (by @erks)
|
||||
- fix default worker autoscaling_enabled not working (by @erks)
|
||||
|
||||
## [[v1.6.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.5.0...v1.6.0)] - 2018-09-04]
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ resource "aws_autoscaling_group" "workers" {
|
||||
list(
|
||||
map("key", "Name", "value", "${aws_eks_cluster.this.name}-${lookup(var.worker_groups[count.index], "name", count.index)}-eks_asg", "propagate_at_launch", true),
|
||||
map("key", "kubernetes.io/cluster/${aws_eks_cluster.this.name}", "value", "owned", "propagate_at_launch", true),
|
||||
map("key", "k8s.io/cluster-autoscaler/${lookup(var.worker_groups[count.index], "autoscaling_enabled", count.index) == 1 ? "enabled" : "disabled" }", "value", "true", "propagate_at_launch", false),
|
||||
map("key", "k8s.io/cluster-autoscaler/${lookup(var.worker_groups[count.index], "autoscaling_enabled", lookup(local.workers_group_defaults, "autoscaling_enabled")) == 1 ? "enabled" : "disabled" }", "value", "true", "propagate_at_launch", false),
|
||||
),
|
||||
local.asg_tags)
|
||||
}"]
|
||||
|
||||
Reference in New Issue
Block a user