Merge pull request #123463 from k82cn/cri_grpc_rs

grpc: set localhost Authority to unix client calls
This commit is contained in:
Kubernetes Prow Robot 2024-04-29 05:15:32 -07:00 committed by GitHub
commit da890f071b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

@ -87,6 +87,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) {