Skip to content

Commit

Permalink
chore: Add UserAgent k8s-ttl-controller/1.0 to Kubernetes client conf…
Browse files Browse the repository at this point in the history
…iguration
  • Loading branch information
TwiN committed Oct 9, 2022
1 parent 5b7b6da commit 0e8aebb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func CreateClients() (kubernetes.Interface, dynamic.Interface, error) {
cfg = clientConfig
}
cfg.WarningHandler = rest.NoWarnings{}
cfg.UserAgent = "k8s-ttl-controller/1.0"
kubernetesClient, err := kubernetes.NewForConfig(cfg)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit 0e8aebb

Please sign in to comment.