fix out of date codegen images
Signed-off-by: Margo Crawford <margaretc@vmware.com>
This commit is contained in:
parent
157b5a7079
commit
479b6c421d
@ -72,6 +72,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 {
|
||||||
|
@ -64,6 +64,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 {
|
||||||
|
@ -48,6 +48,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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user