Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b224e85e
Commit
b224e85e
authored
May 04, 2017
by
Cole Mickens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
azure: improve user agent string
parent
3a259d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
azure.go
pkg/cloudprovider/providers/azure/azure.go
+5
-1
No files found.
pkg/cloudprovider/providers/azure/azure.go
View file @
b224e85e
...
@@ -214,7 +214,11 @@ func (az *Cloud) ProviderName() string {
...
@@ -214,7 +214,11 @@ func (az *Cloud) ProviderName() string {
return
CloudProviderName
return
CloudProviderName
}
}
// configureUserAgent configures the autorest client with a user agent that
// includes "kubernetes" and the full kubernetes git version string
// example:
// Azure-SDK-for-Go/7.0.1-beta arm-network/2016-09-01; kubernetes-cloudprovider/v1.7.0-alpha.2.711+a2fadef8170bb0-dirty;
func
configureUserAgent
(
client
*
autorest
.
Client
)
{
func
configureUserAgent
(
client
*
autorest
.
Client
)
{
k8sVersion
:=
version
.
Get
()
.
GitVersion
k8sVersion
:=
version
.
Get
()
.
GitVersion
client
.
UserAgent
=
fmt
.
Sprintf
(
"%s; %s"
,
client
.
UserAgent
,
k8sVersion
)
client
.
UserAgent
=
fmt
.
Sprintf
(
"%s;
kubernetes-cloudprovider/
%s"
,
client
.
UserAgent
,
k8sVersion
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment