mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Merge pull request #113582 from wzshiming/fix/grpc-probe-log
Fix grpc probe log
This commit is contained in:
commit
b3082c5e5b
@ -171,10 +171,13 @@ func (pb *prober) runProbe(ctx context.Context, probeType probeType, p *v1.Probe
|
||||
}
|
||||
|
||||
if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.GRPCContainerProbe) && p.GRPC != nil {
|
||||
host := &(status.PodIP)
|
||||
service := p.GRPC.Service
|
||||
host := status.PodIP
|
||||
service := ""
|
||||
if p.GRPC.Service != nil {
|
||||
service = *p.GRPC.Service
|
||||
}
|
||||
klog.V(4).InfoS("GRPC-Probe", "host", host, "service", service, "port", p.GRPC.Port, "timeout", timeout)
|
||||
return pb.grpc.Probe(*host, *service, int(p.GRPC.Port), timeout)
|
||||
return pb.grpc.Probe(host, service, int(p.GRPC.Port), timeout)
|
||||
}
|
||||
|
||||
klog.InfoS("Failed to find probe builder for container", "containerName", container.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user