Skip to content

Commit

Permalink
update: ack-eks-controller to v1.4.5 (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroniscode authored Sep 6, 2024
1 parent 8de6bb7 commit 3b52897
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions pkg/application/ack/eks_controller/eks_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
// Helm: https://github.com/aws-controllers-k8s/eks-controller/tree/main/helm
// Chart: https://gallery.ecr.aws/aws-controllers-k8s/eks-chart
// Repo: https://gallery.ecr.aws/aws-controllers-k8s/eks-controller
// Version: Latest is v1.0.2 (as of 6/11/23)
// Version: Latest is v1.4.5 (as of 9/5/24)

func NewApp() *application.Application {
app := &application.Application{
return &application.Application{
Command: cmd.Command{
Parent: "ack",
Name: "eks-controller",
Expand All @@ -32,7 +32,6 @@ func NewApp() *application.Application {
CommonOptions: resource.CommonOptions{
Name: "ack-eks-controller-irsa",
},
// https://github.com/aws-controllers-k8s/eks-controller/blob/main/config/iam/recommended-inline-policy
PolicyType: irsa.PolicyDocument,
PolicyDocTemplate: &template.TextTemplate{
Template: policyDocTemplate,
Expand All @@ -44,10 +43,10 @@ func NewApp() *application.Application {
Namespace: "ack-system",
ServiceAccount: "ack-eks-controller",
DefaultVersion: &application.LatestPrevious{
LatestChart: "1.0.2",
Latest: "1.0.2",
PreviousChart: "v0.1.7",
Previous: "v0.1.7",
LatestChart: "1.4.5",
Latest: "1.4.5",
PreviousChart: "1.0.2",
Previous: "1.0.2",
},
},

Expand All @@ -59,9 +58,9 @@ func NewApp() *application.Application {
},
},
}
return app
}

// https://github.com/aws-controllers-k8s/eks-controller/blob/main/config/iam/recommended-inline-policy
const policyDocTemplate = `
Version: '2012-10-17'
Statement:
Expand Down
2 changes: 1 addition & 1 deletion pkg/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (r *Resource) NewCreateCmd() *cobra.Command {

if len(r.CreateArgs) > 0 && r.Common().CreateArgumentOptional {
use += " " + "[" + r.Args[0] + "]"
} else if len(r.Args) > 0 {
} else if len(r.CreateArgs) > 0 {
use += " " + strings.Join(r.CreateArgs, " ")
}

Expand Down

0 comments on commit 3b52897

Please sign in to comment.