mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-05-13 02:11:39 +08:00
client-go: update generated
Kubernetes-commit: f628706339c120c19d28ccfa7b1a580516be1d1a
This commit is contained in:
parent
13594af1d5
commit
b5d8875482
@ -61,6 +61,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||
configShallowCopy := *c
|
||||
|
||||
if configShallowCopy.UserAgent == "" {
|
||||
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||
}
|
||||
|
||||
// share the transport between all clients
|
||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user