grpc: set localhost Authority to unix client calls

Signed-off-by: Klaus Ma <klausm@nvidia.com>
This commit is contained in:
Klaus Ma 2024-02-23 14:51:39 +08:00
parent 003f4c5de4
commit b8074c9b67
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ func NewRemoteImageService(endpoint string, connectionTimeout time.Duration, tp
var dialOpts []grpc.DialOption
dialOpts = append(dialOpts,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithAuthority("localhost"),
grpc.WithContextDialer(dialer),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)))
if utilfeature.DefaultFeatureGate.Enabled(features.KubeletTracing) {

View File

@ -88,6 +88,7 @@ func NewRemoteRuntimeService(endpoint string, connectionTimeout time.Duration, t
var dialOpts []grpc.DialOption
dialOpts = append(dialOpts,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithAuthority("localhost"),
grpc.WithContextDialer(dialer),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)))
if utilfeature.DefaultFeatureGate.Enabled(features.KubeletTracing) {