From 5f344cd3ad61c678e786d62c516e6666b1b66120 Mon Sep 17 00:00:00 2001 From: William Van Hevelingen Date: Mon, 31 Jan 2022 23:43:04 -0800 Subject: [PATCH] chore(deps): bump google.golang.org/grpc from v1.42.0 to v1.43.0 (#1579) Signed-off-by: William Van Hevelingen --- eventsources/sources/generic/start.go | 3 ++- go.mod | 2 +- go.sum | 3 ++- sensors/triggers/custom-trigger/custom-trigger.go | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/eventsources/sources/generic/start.go b/eventsources/sources/generic/start.go index ea3b783260..e50b6f2435 100644 --- a/eventsources/sources/generic/start.go +++ b/eventsources/sources/generic/start.go @@ -10,6 +10,7 @@ import ( "go.uber.org/zap" "google.golang.org/grpc" "google.golang.org/grpc/connectivity" + "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/metadata" "github.com/argoproj/argo-events/common" @@ -123,7 +124,7 @@ func (el *EventListener) connect() (Eventing_StartEventSourceClient, error) { var opt []grpc.DialOption opt = append(opt, grpc.WithBlock()) if el.GenericEventSource.Insecure { - opt = append(opt, grpc.WithInsecure()) + opt = append(opt, grpc.WithTransportCredentials(insecure.NewCredentials())) } conn, err := grpc.DialContext(context.Background(), el.GenericEventSource.URL, opt...) if err != nil { diff --git a/go.mod b/go.mod index 51e65be544..197a177925 100644 --- a/go.mod +++ b/go.mod @@ -71,7 +71,7 @@ require ( go.uber.org/zap v1.20.0 golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 google.golang.org/api v0.65.0 - google.golang.org/grpc v1.42.0 + google.golang.org/grpc v1.43.0 gopkg.in/jcmturner/gokrb5.v5 v5.3.0 k8s.io/api v0.22.2 k8s.io/apimachinery v0.22.2 diff --git a/go.sum b/go.sum index b4d8138de9..d7b49cd739 100644 --- a/go.sum +++ b/go.sum @@ -1699,8 +1699,9 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.42.0 h1:XT2/MFpuPFsEX2fWh3YQtHkZ+WYZFQRfaUgLZYj/p6A= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.43.0 h1:Eeu7bZtDZ2DpRCsLhUlcrLnvYaMK1Gz86a+hMVvELmM= +google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/sensors/triggers/custom-trigger/custom-trigger.go b/sensors/triggers/custom-trigger/custom-trigger.go index 2644f88e6a..35caa7215d 100644 --- a/sensors/triggers/custom-trigger/custom-trigger.go +++ b/sensors/triggers/custom-trigger/custom-trigger.go @@ -25,6 +25,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/connectivity" "google.golang.org/grpc/credentials" + "google.golang.org/grpc/credentials/insecure" "k8s.io/apimachinery/pkg/util/wait" "github.com/argoproj/argo-events/common" @@ -71,7 +72,7 @@ func NewCustomTrigger(sensor *v1alpha1.Sensor, trigger *v1alpha1.Trigger, logger opt := []grpc.DialOption{ grpc.WithBlock(), - grpc.WithInsecure(), + grpc.WithTransportCredentials(insecure.NewCredentials()), } if ct.Secure {