diff --git a/pkg/application/karpenter/karpenter.go b/pkg/application/karpenter/karpenter.go index 9cd6021..9b0fd26 100644 --- a/pkg/application/karpenter/karpenter.go +++ b/pkg/application/karpenter/karpenter.go @@ -15,7 +15,7 @@ import ( // GitHub: https://github.com/awslabs/karpenter // Helm: https://github.com/awslabs/karpenter/tree/main/charts/karpenter // Repo: https://gallery.ecr.aws/karpenter/controller -// Version: Latest is v0.37.0 (as of 6/6/24) +// Version: Latest is v1.0.5 (as of 10/2/24) func NewApp() *application.Application { options, flags := newOptions() @@ -173,7 +173,6 @@ Statement: Effect: Allow Resource: "*" Action: - - ec2:DescribeAvailabilityZones - ec2:DescribeImages - ec2:DescribeInstances - ec2:DescribeInstanceTypeOfferings @@ -208,7 +207,9 @@ Statement: Action: iam:PassRole Condition: StringEquals: - iam:PassedToService: ec2.amazonaws.com + iam:PassedToService: + - ec2.amazonaws.com + - ec2.amazonaws.com.cn - Sid: AllowScopedInstanceProfileCreationActions Effect: Allow Resource: arn:{{ .Partition }}:iam::{{ .Account }}:instance-profile/* diff --git a/pkg/application/karpenter/options.go b/pkg/application/karpenter/options.go index 8a4219b..40495ac 100644 --- a/pkg/application/karpenter/options.go +++ b/pkg/application/karpenter/options.go @@ -28,8 +28,8 @@ func newOptions() (options *KarpenterOptions, flags cmd.Flags) { Namespace: "karpenter", ServiceAccount: "karpenter", DefaultVersion: &application.LatestPrevious{ - LatestChart: "1.0.0", - Latest: "1.0.0", + LatestChart: "1.0.5", + Latest: "1.0.5", PreviousChart: "1.0.0", Previous: "1.0.0", },