From 38b970aaa6d6a16b62ed4f8b980c38c011757155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Fri, 10 Nov 2023 14:34:36 +0100 Subject: [PATCH] Fix malformed cluster-autoscaler policy (#225) * fix malformed cluster-autoscaler policy * fix malformed cluster-autoscaler policy --- CHANGELOG.md | 4 ++++ controllers/common_test.go | 2 +- pkg/iam/cluster_autoscaler_template.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b4ba68a..498f9221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fix malformed cluster-autoscaler policy. + ## [0.13.0] - 2023-11-10 ### Added diff --git a/controllers/common_test.go b/controllers/common_test.go index 6ce771d6..1e247587 100644 --- a/controllers/common_test.go +++ b/controllers/common_test.go @@ -570,7 +570,7 @@ var clusterAutoscalerRoleInfo = RoleInfo{ "autoscaling:DescribeScalingActivities", "autoscaling:DescribeTags", "ec2:DescribeInstanceTypes", - "ec2:DescribeLaunchTemplateVersions", + "ec2:DescribeLaunchTemplateVersions" ], "Resource": "*" }, diff --git a/pkg/iam/cluster_autoscaler_template.go b/pkg/iam/cluster_autoscaler_template.go index 84d89bc8..84b83229 100644 --- a/pkg/iam/cluster_autoscaler_template.go +++ b/pkg/iam/cluster_autoscaler_template.go @@ -12,7 +12,7 @@ const clusterAutoscalerPolicyTemplate = `{ "autoscaling:DescribeScalingActivities", "autoscaling:DescribeTags", "ec2:DescribeInstanceTypes", - "ec2:DescribeLaunchTemplateVersions", + "ec2:DescribeLaunchTemplateVersions" ], "Resource": "*" },