Skip to content

Commit

Permalink
Merge pull request #2570 from nilo19/qi-cherry-pick-2555-release-1.15
Browse files Browse the repository at this point in the history
Cherry pick #2555 to 1.15: use version from cluster autoscaler package instead of client-go for azure autorest
  • Loading branch information
k8s-ci-robot authored Nov 28, 2019
2 parents 511322c + 7741572 commit fdb425a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cluster-autoscaler/cloudprovider/azure/azure_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/to"
"golang.org/x/crypto/pkcs12"
"k8s.io/klog"

"k8s.io/autoscaler/cluster-autoscaler/cloudprovider"
"k8s.io/client-go/pkg/version"
"k8s.io/autoscaler/cluster-autoscaler/version"
"k8s.io/klog"
)

const (
Expand Down Expand Up @@ -230,8 +230,7 @@ func decodePkcs12(pkcs []byte, password string) (*x509.Certificate, *rsa.Private
// example:
// Azure-SDK-for-Go/7.0.1-beta arm-network/2016-09-01; cluster-autoscaler/v1.7.0-alpha.2.711+a2fadef8170bb0-dirty;
func configureUserAgent(client *autorest.Client) {
k8sVersion := version.Get().GitVersion
client.UserAgent = fmt.Sprintf("%s; cluster-autoscaler/%s", client.UserAgent, k8sVersion)
client.UserAgent = fmt.Sprintf("%s; cluster-autoscaler/%s", client.UserAgent, version.ClusterAutoscalerVersion)
}

// normalizeForK8sVMASScalingUp takes a template and removes elements that are unwanted in a K8s VMAS scale up/down case
Expand Down

0 comments on commit fdb425a

Please sign in to comment.