Merge pull request #109778 from mythi/grpc-go-update

grpc: move to use grpc.WithTransportCredentials()
This commit is contained in:
Kubernetes Prow Robot
2022-07-26 12:45:09 -07:00
committed by GitHub
11 changed files with 44 additions and 12 deletions

View File

@@ -24,6 +24,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials/insecure"
grpchealth "google.golang.org/grpc/health/grpc_health_v1"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
@@ -55,7 +56,7 @@ func (p grpcProber) Probe(host, service string, port int, timeout time.Duration)
opts := []grpc.DialOption{
grpc.WithUserAgent(fmt.Sprintf("kube-probe/%s.%s", v.Major, v.Minor)),
grpc.WithBlock(),
grpc.WithInsecure(), //credentials are currently not supported
grpc.WithTransportCredentials(insecure.NewCredentials()), //credentials are currently not supported
}
ctx, cancel := context.WithTimeout(context.Background(), timeout)