mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #22746 from deads2k/fix-discover-config
Auto commit by PR queue bot
This commit is contained in:
commit
2458871b52
@ -212,6 +212,9 @@ func setDiscoveryDefaults(config *restclient.Config) error {
|
|||||||
config.APIPath = ""
|
config.APIPath = ""
|
||||||
config.GroupVersion = nil
|
config.GroupVersion = nil
|
||||||
config.Codec = runtime.NoopEncoder{api.Codecs.UniversalDecoder()}
|
config.Codec = runtime.NoopEncoder{api.Codecs.UniversalDecoder()}
|
||||||
|
if len(config.UserAgent) == 0 {
|
||||||
|
config.UserAgent = restclient.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user