diff --git a/cloud-controller-manager/civo/loadbalancer.go b/cloud-controller-manager/civo/loadbalancer.go index c82201c..d0ade07 100644 --- a/cloud-controller-manager/civo/loadbalancer.go +++ b/cloud-controller-manager/civo/loadbalancer.go @@ -133,6 +133,7 @@ func (l *loadbalancer) updateLBConfig(civolb *civogo.LoadBalancer, service *v1.S lbuc := civogo.LoadBalancerUpdateConfig{ ExternalTrafficPolicy: string(service.Spec.ExternalTrafficPolicy), Region: Region, + UserGivenName: civolb.UserGivenName, } if enableProxyProtocol := getEnableProxyProtocol(service); enableProxyProtocol != "" { @@ -382,6 +383,7 @@ func createLoadBalancer(ctx context.Context, clusterName string, service *v1.Ser } lbc := civogo.LoadBalancerConfig{ Name: getLoadBalancerName(cluster.Name, service), + UserGivenName: service.Name, ClusterID: ClusterID, NetworkID: cluster.NetworkID, ExternalTrafficPolicy: string(service.Spec.ExternalTrafficPolicy), diff --git a/go.mod b/go.mod index cc82142..fe5b6de 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/civo/civo-cloud-controller-manager go 1.20 require ( - github.com/civo/civogo v0.3.41 + github.com/civo/civogo v0.3.60 github.com/joho/godotenv v1.4.0 github.com/onsi/gomega v1.27.7 k8s.io/api v0.27.2 diff --git a/go.sum b/go.sum index aa08f3d..d9c6a4e 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/civo/civogo v0.3.41 h1:/LkE/BYvsUFKwDWZ41xT2dFHGEdfr5hoWwlhPQFHxPI= -github.com/civo/civogo v0.3.41/go.mod h1:54lv/FOf7gh6wE9ZwVdw4yBehk8V1CvU9aWa4v6dvW0= +github.com/civo/civogo v0.3.60 h1:hPZqJvGRgvOxYdqT5BFTfWtfLw/zz/qKzRKf0gvK5B8= +github.com/civo/civogo v0.3.60/go.mod h1:54lv/FOf7gh6wE9ZwVdw4yBehk8V1CvU9aWa4v6dvW0= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 h1:/inchEIKaYC1Akx+H+gqO04wryn5h75LSazbRlnya1k= github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=