diff --git a/cmd/sync/aws.go b/cmd/sync/aws.go index 77d8516d..7404da7a 100644 --- a/cmd/sync/aws.go +++ b/cmd/sync/aws.go @@ -14,7 +14,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/autoscaling" "github.com/aws/aws-sdk-go-v2/service/ec2" "github.com/aws/aws-sdk-go-v2/service/ec2/types" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" ) // AWSClient allows you to get the list of IP addresses of instances of an Auto Scaling group. It implements the CloudProvider interface. diff --git a/cmd/sync/azure.go b/cmd/sync/azure.go index a65b9c8e..bbbf241d 100644 --- a/cmd/sync/azure.go +++ b/cmd/sync/azure.go @@ -8,7 +8,7 @@ import ( "github.com/Azure/azure-sdk-for-go/profiles/latest/compute/mgmt/compute" "github.com/Azure/azure-sdk-for-go/profiles/latest/network/mgmt/network" "github.com/Azure/go-autorest/autorest/azure/auth" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" ) // AzureClient allows you to get the list of IP addresses of VirtualMachines of a VirtualMachine Scale Set. It implements the CloudProvider interface. diff --git a/cmd/sync/config.go b/cmd/sync/config.go index d6935e31..17754560 100644 --- a/cmd/sync/config.go +++ b/cmd/sync/config.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" ) // commonConfig stores the configuration parameters common to all providers. diff --git a/go.mod b/go.mod index f5cb7084..89260474 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.4 github.com/aws/aws-sdk-go-v2/service/ec2 v1.175.1 github.com/nginxinc/nginx-plus-go-client v1.3.0 - gopkg.in/yaml.v2 v2.4.0 + gopkg.in/yaml.v3 v3.0.1 ) require ( diff --git a/go.sum b/go.sum index fd722629..54547545 100644 --- a/go.sum +++ b/go.sum @@ -120,6 +120,7 @@ golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=