Browse Source

fix: pin to the right version for azure keyvault (#3949)

* fix: pin to the right version for azure keyvault

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

* update the fake and the test

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

---------

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Gergely Brautigam 1 year ago
parent
commit
2e7cd7be3e

+ 1 - 1
pkg/provider/azure/keyvault/fake/fake.go

@@ -17,7 +17,7 @@ package fake
 import (
 import (
 	"context"
 	"context"
 
 
-	"github.com/Azure/azure-sdk-for-go/profiles/latest/keyvault/keyvault"
+	"github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault"
 )
 )
 
 
 type AzureMockClient struct {
 type AzureMockClient struct {

+ 1 - 1
pkg/provider/azure/keyvault/keyvault.go

@@ -27,7 +27,7 @@ import (
 	"regexp"
 	"regexp"
 	"strings"
 	"strings"
 
 
-	"github.com/Azure/azure-sdk-for-go/profiles/latest/keyvault/keyvault"
+	"github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault"
 	"github.com/Azure/go-autorest/autorest"
 	"github.com/Azure/go-autorest/autorest"
 	"github.com/Azure/go-autorest/autorest/adal"
 	"github.com/Azure/go-autorest/autorest/adal"
 	"github.com/Azure/go-autorest/autorest/azure"
 	"github.com/Azure/go-autorest/autorest/azure"

+ 1 - 1
pkg/provider/azure/keyvault/keyvault_test.go

@@ -23,7 +23,7 @@ import (
 	"reflect"
 	"reflect"
 	"testing"
 	"testing"
 
 
-	"github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault"
+	"github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault"
 	"github.com/Azure/go-autorest/autorest"
 	"github.com/Azure/go-autorest/autorest"
 	corev1 "k8s.io/api/core/v1"
 	corev1 "k8s.io/api/core/v1"
 	pointer "k8s.io/utils/ptr"
 	pointer "k8s.io/utils/ptr"