diff --git a/cluster-autoscaler/cloudprovider/azure/azure_util.go b/cluster-autoscaler/cloudprovider/azure/azure_util.go index 50bf67050d75..a912f286bcdb 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_util.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_util.go @@ -23,6 +23,7 @@ import ( "io/ioutil" "net/http" "net/url" + "os" "regexp" "sort" "strconv" @@ -228,7 +229,8 @@ func (util *AzUtil) DeleteVirtualMachine(rg string, name string) error { } func getUserAgentExtension() string { - return fmt.Sprintf("cluster-autoscaler/v%s", version.ClusterAutoscalerVersion) + suffix := os.Getenv("AZURE_CLUSTER_AUTOSCALER_USER_AGENT_SUFFIX") + return fmt.Sprintf("cluster-autoscaler%s/v%s", suffix, version.ClusterAutoscalerVersion) } func configureUserAgent(client *autorest.Client) {