From 2677d00f98c271d7bf5d906595cc5a97cecdc48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Wed, 8 Nov 2023 15:37:22 +0100 Subject: [PATCH] fix tests --- pkg/iam/cluster_autoscaler_template.go | 52 +++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/pkg/iam/cluster_autoscaler_template.go b/pkg/iam/cluster_autoscaler_template.go index a5535e8e..d1b1239d 100644 --- a/pkg/iam/cluster_autoscaler_template.go +++ b/pkg/iam/cluster_autoscaler_template.go @@ -1,31 +1,31 @@ package iam const clusterAutoscalerPolicyTemplate = `{ - "Version": "2012-10-17", - "Statement": [ - { - "Action": [ - "autoscaling:DescribeAutoScalingGroups", - "autoscaling:DescribeAutoScalingInstances", - "autoscaling:DescribeLaunchConfigurations", - "autoscaling:DescribeScalingActivities", - "autoscaling:DescribeTags", - "ec2:DescribeInstanceTypes", - "ec2:DescribeLaunchTemplateVersions", - ], - "Resource": "*", - "Effect": "Allow" - }, - { - "Action": [ - "autoscaling:SetDesiredCapacity", - "autoscaling:TerminateInstanceInAutoScalingGroup", - "ec2:DescribeImages", - "ec2:GetInstanceTypesFromInstanceRequirements", + "Version": "2012-10-17", + "Statement": [ + { + "Action": [ + "autoscaling:DescribeAutoScalingGroups", + "autoscaling:DescribeAutoScalingInstances", + "autoscaling:DescribeLaunchConfigurations", + "autoscaling:DescribeScalingActivities", + "autoscaling:DescribeTags", + "ec2:DescribeInstanceTypes", + "ec2:DescribeLaunchTemplateVersions", + ], + "Resource": "*", + "Effect": "Allow" + }, + { + "Action": [ + "autoscaling:SetDesiredCapacity", + "autoscaling:TerminateInstanceInAutoScalingGroup", + "ec2:DescribeImages", + "ec2:GetInstanceTypesFromInstanceRequirements", "eks:DescribeNodegroup" - ], - "Resource": "*", - "Effect": "Allow" - } - ] + ], + "Resource": "*", + "Effect": "Allow" + } + ] }`