File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
pkg/application/autoscaling/karpenter Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
1515// GitHub: https://github.com/awslabs/karpenter
1616// Helm: https://github.com/awslabs/karpenter/tree/main/charts/karpenter
1717// Repo: https://gallery.ecr.aws/karpenter/controller
18- // Version: Latest is v0.34 .2 (as of 3/8 /24)
18+ // Version: Latest is v0.35 .2 (as of 3/20 /24)
1919
2020func NewApp () * application.Application {
2121 options , flags := newOptions ()
@@ -81,17 +81,27 @@ func NewApp() *application.Application {
8181const irsaPolicyDocument = `
8282Version: "2012-10-17"
8383Statement:
84- - Sid: AllowScopedEC2InstanceActions
84+ - Sid: AllowScopedEC2InstanceAccessActions
8585 Effect: Allow
8686 Resource:
8787 - arn:{{ .Partition }}:ec2:{{ .Region }}::image/*
8888 - arn:{{ .Partition }}:ec2:{{ .Region }}::snapshot/*
8989 - arn:{{ .Partition }}:ec2:{{ .Region }}:*:security-group/*
9090 - arn:{{ .Partition }}:ec2:{{ .Region }}:*:subnet/*
91- - arn:{{ .Partition }}:ec2:{{ .Region }}:*:launch-template/*
9291 Action:
9392 - ec2:RunInstances
9493 - ec2:CreateFleet
94+ - Sid: AllowScopedEC2LaunchTemplateAccessActions
95+ Effect: Allow
96+ Resource: arn:{{ .Partition }}:ec2:{{ .Region }}:*:launch-template/*
97+ Action:
98+ - ec2:RunInstances
99+ - ec2:CreateFleet
100+ Condition:
101+ StringEquals:
102+ aws:ResourceTag/kubernetes.io/cluster/{{ .ClusterName }}: owned
103+ StringLike:
104+ aws:ResourceTag/karpenter.sh/nodepool: "*"
95105- Sid: AllowScopedEC2InstanceActionsWithTags
96106 Effect: Allow
97107 Resource:
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ func newOptions() (options *KarpenterOptions, flags cmd.Flags) {
2525 Namespace : "karpenter" ,
2626 ServiceAccount : "karpenter" ,
2727 DefaultVersion : & application.LatestPrevious {
28- LatestChart : "v0.34 .2" ,
29- Latest : "v0.34 .2" ,
30- PreviousChart : "v0.33 .2" ,
31- Previous : "v0.33 .2" ,
28+ LatestChart : "0.35 .2" ,
29+ Latest : "0.35 .2" ,
30+ PreviousChart : "v0.34 .2" ,
31+ Previous : "v0.34 .2" ,
3232 },
3333 },
3434 AMIFamily : "AL2" ,
You can’t perform that action at this time.
0 commit comments