Update deps (#724)

* update github.com/containerd/containerd v1.5.7 -> v1.5.9

* update github.com/lib/pq v1.10.3 -> v1.10.4

* update github.com/prometheus/client_golang v1.11.0 -> v1.12.0

* update github.com/rs/zerolog v1.25.0 -> v1.26.1

* update golang.org/x/crypto 2021-12-15 -> 2022-01-28
This commit is contained in:
6543
2022-01-29 16:04:50 +01:00
committed by GitHub
parent 95ce87fa1b
commit b6e47a3f4a
198 changed files with 6240 additions and 1806 deletions

View File

@@ -28,6 +28,7 @@ import (
"github.com/urfave/cli/v2"
"google.golang.org/grpc"
grpccredentials "google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/keepalive"
"google.golang.org/grpc/metadata"
@@ -93,11 +94,11 @@ func loop(c *cli.Context) error {
// TODO authenticate to grpc server
// grpc.Dial(target, ))
transport := grpc.WithInsecure()
var transport grpc.DialOption
if c.Bool("secure-grpc") {
transport = grpc.WithTransportCredentials(grpccredentials.NewTLS(&tls.Config{InsecureSkipVerify: c.Bool("skip-insecure-grpc")}))
} else {
transport = grpc.WithTransportCredentials(insecure.NewCredentials())
}
conn, err := grpc.Dial(