client-go: update generated

Kubernetes-commit: 1d5ad2264cbebe2ce33e288451c2757fa16a1956
This commit is contained in:
Antonio Ojea 2022-03-17 16:03:10 +01:00 committed by Kubernetes Publisher
parent 69f0c9d288
commit 7b89639d54

View File

@ -61,6 +61,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
func NewForConfig(c *rest.Config) (*Clientset, error) { func NewForConfig(c *rest.Config) (*Clientset, error) {
configShallowCopy := *c configShallowCopy := *c
if configShallowCopy.UserAgent == "" {
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
}
// share the transport between all clients // share the transport between all clients
httpClient, err := rest.HTTPClientFor(&configShallowCopy) httpClient, err := rest.HTTPClientFor(&configShallowCopy)
if err != nil { if err != nil {