Skip to content

Commit 4a70259

Browse files
authored
Set controller user-agent to vpc-resource-controller/git-version (#455)
* update user-agent string. * Use AppName instead of ControllerName.
1 parent 2285973 commit 4a70259

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ func main() {
204204
// Set the API Server QPS and Burst
205205
kubeConfig.QPS = config.DefaultAPIServerQPS
206206
kubeConfig.Burst = config.DefaultAPIServerBurst
207+
kubeConfig.UserAgent = fmt.Sprintf("%s/%s", ec2API.AppName, version.GitVersion)
207208

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

0 commit comments

Comments
 (0)