Upgrade go version and code-generator in snapshotter client

This commit is contained in:
Raunak Pradip Shah
2022-09-19 14:23:36 +05:30
parent 6dd7d02a17
commit 485a2386db
4 changed files with 86 additions and 71 deletions

View File

@@ -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 {