From d0e215669a3eed84ae170bb378bb8a5f7b571c41 Mon Sep 17 00:00:00 2001 From: Dean Illfeld Date: Thu, 4 Jul 2019 10:48:31 +1000 Subject: [PATCH 1/2] correct autoscaling enabled tag logic --- kiam_workers.tf | 2 +- workers.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kiam_workers.tf b/kiam_workers.tf index 2c4848a..9cb1671 100644 --- a/kiam_workers.tf +++ b/kiam_workers.tf @@ -54,7 +54,7 @@ resource "aws_autoscaling_group" "kiam_workers" { "propagate_at_launch" = "true" }, { - "key" = "k8s.io/cluster-autoscaler/${var.kiam_autoscaling_enabled == 1 ? "enabled" : "disabled"}" + "key" = "k8s.io/cluster-autoscaler/${var.kiam_autoscaling_enabled == true ? "enabled" : "disabled"}" "value" = "true" "propagate_at_launch" = "false" }, diff --git a/workers.tf b/workers.tf index 9310022..c1bc14a 100644 --- a/workers.tf +++ b/workers.tf @@ -54,7 +54,7 @@ resource "aws_autoscaling_group" "workers" { "propagate_at_launch" = "true" }, { - "key" = "k8s.io/cluster-autoscaler/${lookup(var.workers[count.index], "autoscaling_enabled", true) == 1 ? "enabled" : "disabled"}" + "key" = "k8s.io/cluster-autoscaler/${lookup(var.workers[count.index], "autoscaling_enabled", true) == true ? "enabled" : "disabled"}" "value" = "true" "propagate_at_launch" = "false" }, From 6af63de922e9527a62ca688b74605341c8d6fe52 Mon Sep 17 00:00:00 2001 From: Dean Illfeld Date: Thu, 4 Jul 2019 11:17:16 +1000 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2b87b7..0afd35f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.6.1] - 2019-07-04 +### Fixed +- Resolved issue that prevented cluster-autoscaler from autoscaling workers. + ## [0.6.0] - 2019-06-09 ### Breaking - Terraform 0.12 is now required