Skip to content

Commit

Permalink
Set controller user-agent to vpc-resource-controller/git-version (#455)
Browse files Browse the repository at this point in the history
* update user-agent string.

* Use AppName instead of ControllerName.
  • Loading branch information
orsenthil authored Aug 21, 2024
1 parent 2285973 commit 4a70259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func main() {
// Set the API Server QPS and Burst
kubeConfig.QPS = config.DefaultAPIServerQPS
kubeConfig.Burst = config.DefaultAPIServerBurst
kubeConfig.UserAgent = fmt.Sprintf("%s/%s", ec2API.AppName, version.GitVersion)

setupLog.Info("starting the controller with leadership setting",
"leader mode enabled", enableLeaderElection,
Expand Down

0 comments on commit 4a70259

Please sign in to comment.