From 99d100a353973b154815da7be604ce0164dd4f0f Mon Sep 17 00:00:00 2001 From: Erik McClenney Date: Fri, 29 Sep 2017 12:09:10 -0700 Subject: [PATCH] Fix user-agent append string component order. --- pkg/cloudprovider/providers/gce/gce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudprovider/providers/gce/gce.go b/pkg/cloudprovider/providers/gce/gce.go index 61a4f40ff5e..5750c045979 100644 --- a/pkg/cloudprovider/providers/gce/gce.go +++ b/pkg/cloudprovider/providers/gce/gce.go @@ -308,7 +308,7 @@ func CreateGCECloud(config *CloudConfig) (*GCECloud, error) { version := strings.TrimLeft(strings.Split(strings.Split(version.Get().GitVersion, "-")[0], "+")[0], "v") // Create a user-agent header append string to supply to the Google API clients, to identify Kubernetes as the origin of the GCP API calls. - userAgent := fmt.Sprintf("(%s %s) Kubernetes/%s", runtime.GOOS, runtime.GOARCH, version) + userAgent := fmt.Sprintf("Kubernetes/%s (%s %s)", version, runtime.GOOS, runtime.GOARCH) client, err := newOauthClient(config.TokenSource) if err != nil {