Skip to content

Commit

Permalink
Set custom service account names for controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
nckturner committed Jun 25, 2021
1 parent 7d6f102 commit d9dc769
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cmd/aws-cloud-controller-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ func main() {
}

controllerInitializers := app.DefaultInitFuncConstructors
if constructor, ok := controllerInitializers["cloud-node"]; ok {
constructor.ClientName = "aws-external-cloud-node-controller"
controllerInitializers["cloud-node"] = constructor
}
if constructor, ok := controllerInitializers["cloud-node-lifecycle"]; ok {
constructor.ClientName = "aws-external-cloud-node-lifecycle-controller"
controllerInitializers["cloud-node-lifecycle"] = constructor
}
if constructor, ok := controllerInitializers["service"]; ok {
constructor.ClientName = "aws-external-service-controller"
controllerInitializers["service"] = constructor
}
if constructor, ok := controllerInitializers["route"]; ok {
constructor.ClientName = "aws-external-route-controller"
controllerInitializers["route"] = constructor
}
fss := cliflag.NamedFlagSets{}
command := app.NewCloudControllerManagerCommand(opts, cloudInitializer, controllerInitializers, fss, wait.NeverStop)

Expand Down

0 comments on commit d9dc769

Please sign in to comment.