Skip to content

Commit

Permalink
Merge pull request kubernetes#22746 from deads2k/fix-discover-config
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Mar 14, 2016
2 parents aa5da13 + 7fdbea8 commit 2458871
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 2458871

Please sign in to comment.