Skip to content

Commit

Permalink
Merge pull request #1271 from linki/google-context
Browse files Browse the repository at this point in the history
Use non-deprecated initializer with context
  • Loading branch information
k8s-ci-robot committed Nov 14, 2019
2 parents 792c1ff + 7ec2654 commit 30fc20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provider/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"golang.org/x/oauth2/google"

googleapi "google.golang.org/api/googleapi"
"google.golang.org/api/option"

"github.com/kubernetes-sigs/external-dns/endpoint"
"github.com/kubernetes-sigs/external-dns/plan"
Expand Down Expand Up @@ -129,7 +130,7 @@ func NewGoogleProvider(project string, domainFilter DomainFilter, zoneIDFilter Z
},
})

dnsClient, err := dns.New(gcloud)
dnsClient, err := dns.NewService(context.TODO(), option.WithHTTPClient(gcloud))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 30fc20f

Please sign in to comment.