From 113dc842c4ed4d504a4390c8d6baf4b3d0dac3cb Mon Sep 17 00:00:00 2001 From: hanenMizouni Date: Tue, 19 Nov 2024 15:41:32 +0000 Subject: [PATCH] upgrade sdk go Signed-off-by: hanenMizouni --- controllers/osccluster_loadbalancer_controller.go | 2 +- controllers/osccluster_loadbalancer_controller_unit_test.go | 6 +++--- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/controllers/osccluster_loadbalancer_controller.go b/controllers/osccluster_loadbalancer_controller.go index 623d91118..ba0f0e858 100644 --- a/controllers/osccluster_loadbalancer_controller.go +++ b/controllers/osccluster_loadbalancer_controller.go @@ -266,7 +266,7 @@ func reconcileDeleteLoadBalancer(ctx context.Context, clusterScope *scope.Cluste } loadBalancerTagKey := osc.ResourceLoadBalancerTag{ - Key: &nameTag.Key, + Key: nameTag.Key, } err = loadBalancerSvc.DeleteLoadBalancerTag(loadBalancerSpec, loadBalancerTagKey) if err != nil { diff --git a/controllers/osccluster_loadbalancer_controller_unit_test.go b/controllers/osccluster_loadbalancer_controller_unit_test.go index fd2134406..e8c0daf4d 100644 --- a/controllers/osccluster_loadbalancer_controller_unit_test.go +++ b/controllers/osccluster_loadbalancer_controller_unit_test.go @@ -1190,7 +1190,7 @@ func TestReconcileDeleteLoadBalancerDelete(t *testing.T) { } if lbtc.expDeleteLoadBalancerTagFound { loadBalancerTagKey := osc.ResourceLoadBalancerTag{ - Key: tag.Key, + Key: *tag.Key, } mockOscLoadBalancerInterface. EXPECT(). @@ -1338,7 +1338,7 @@ func TestReconcileDeleteLoadBalancerDeleteTag(t *testing.T) { } if lbtc.expDeleteLoadBalancerTagFound { loadBalancerTagKey := osc.ResourceLoadBalancerTag{ - Key: tag.Key, + Key: *tag.Key, } mockOscLoadBalancerInterface. EXPECT(). @@ -1450,7 +1450,7 @@ func TestReconcileDeleteLoadBalancerDeleteWithoutSpec(t *testing.T) { } if lbtc.expDeleteLoadBalancerTagFound { loadBalancerTagKey := osc.ResourceLoadBalancerTag{ - Key: tag.Key, + Key: *tag.Key, } mockOscLoadBalancerInterface. EXPECT(). diff --git a/go.mod b/go.mod index cf8f31410..9d2722c80 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/golang/mock v1.6.0 github.com/onsi/ginkgo/v2 v2.19.1 github.com/onsi/gomega v1.34.0 - github.com/outscale/osc-sdk-go/v2 v2.21.0 + github.com/outscale/osc-sdk-go/v2 v2.24.0 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.9.0 golang.org/x/exp v0.0.0-20231006140011-7918f672742d diff --git a/go.sum b/go.sum index 8bf028887..3c56e3682 100644 --- a/go.sum +++ b/go.sum @@ -201,8 +201,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8 github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM= github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/outscale/osc-sdk-go/v2 v2.21.0 h1:8MqhexV+ALG76CvY8EpuQlr0+hC5VFrWQY4fHqdT358= -github.com/outscale/osc-sdk-go/v2 v2.21.0/go.mod h1:kzhtUErCzKYl87bZ+kDMphDafmnwbsyFJY9iHF7NgNE= +github.com/outscale/osc-sdk-go/v2 v2.24.0 h1:4M0gJgYRKJQhIo5oZbiEbfuBv/Ls6iHaUyrEiBAbjYM= +github.com/outscale/osc-sdk-go/v2 v2.24.0/go.mod h1:kzhtUErCzKYl87bZ+kDMphDafmnwbsyFJY9iHF7NgNE= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=