Skip to content

Commit

Permalink
add user-agent defaulting for discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Mar 10, 2016
1 parent aca3783 commit 7fdbea8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/client/typed/discovery/discovery_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ func setDiscoveryDefaults(config *restclient.Config) error {
config.APIPath = ""
config.GroupVersion = nil
config.Codec = runtime.NoopEncoder{api.Codecs.UniversalDecoder()}
if len(config.UserAgent) == 0 {
config.UserAgent = restclient.DefaultKubernetesUserAgent()
}
return nil
}

Expand Down

0 comments on commit 7fdbea8

Please sign in to comment.